diff --git a/deployed/extblank/plugins/system/extblank/extblank.php b/deployed/extblank/plugins/system/extblank/extblank.php new file mode 100644 index 00000000..2d85446b --- /dev/null +++ b/deployed/extblank/plugins/system/extblank/extblank.php @@ -0,0 +1,53 @@ +params; + $document = JFactory::getDocument(); + $app = JFactory::getApplication(); + $isadmin = $app->isAdmin(); + $load_in_admin = $params->get('use_backend'); + $load = true; + //var_dump($isadmin); + //var_dump($load_in_admin); + + if($isadmin) + { + if($load_in_admin==0) + $load = false; + } + if($load) + { + if($params->get('include_jquery')) + { + $document->addScript('http://code.jquery.com/jquery-latest.js'); + } + $script = ' + $conv_ = jQuery; + $conv_(document).ready(function() { + $conv_("a[href^=\'http:\']:not([href*=\'" + window.location.host + "\']), a[href^=\'https:\']:not([href*=\'" + window.location.host + "\'])").each(function() { + if($conv_(this).attr("target")!="_parent"){ + $conv_(this).attr("target", "_blank"); + }}); + '.($params->get('replace_hash',0) ? '$conv_("a[href$=\'#\']").each(function(){$conv_(this).attr("href","javascript:void(0);")});' : '').' + });'; + $document->addScriptDeclaration($script); + //echo 'after script';//exit; + } + } + +} diff --git a/deployed/extblank/plugins/system/extblank/extblank.xml b/deployed/extblank/plugins/system/extblank/extblank.xml new file mode 100644 index 00000000..335ab6de --- /dev/null +++ b/deployed/extblank/plugins/system/extblank/extblank.xml @@ -0,0 +1,34 @@ + + +System - Open external links in new window +Convergence Services +Month 2011 +Copyright (C) 2012. All rights reserved. +GNU General Public License +info@convergenceservices.in +www.convergenceservices.in +1.0 +Please Enable the plugin and configure it.]]> + +extblank.php +index.html + + +
+ + + + + + + + + + + + +
+
+
+
+ diff --git a/deployed/extblank/plugins/system/extblank/index.html b/deployed/extblank/plugins/system/extblank/index.html new file mode 100644 index 00000000..2efb97f3 --- /dev/null +++ b/deployed/extblank/plugins/system/extblank/index.html @@ -0,0 +1 @@ +