name\=\"\b[a-zA-Z0-9_]*"
- More complex usage using a tagged expression to move contents of the anchor to after it
Search with \<a name="">([a-zA-Z0-9_]*)\<\/a\> to replace with \</a><a name="">\<\/a\>$2
name\=\"\b[a-zA-Z0-9_]*"
Search with \<a name="">([a-zA-Z0-9_]*)\<\/a\> to replace with \</a><a name="">\<\/a\>$2
| #nav ul.menu li a { | |
| display:block; | |
| text-indent: -999em; | |
| width:55px; | |
| height:46px; | |
| background-image:url('../images/menu.png'); | |
| background-repeat: no-repeat; | |
| } | |
| #nav ul.menu li.item-435 a{ | |
| background-position: -170px 0.9px; |
| In your template: | |
| ------------------- | |
| <?php defined('_JEXEC') or die; | |
| // Menu Item ID | |
| $itemId = JRequest::getInt('Itemid', 0); ?> | |
| <body class="<?php echo 'item-' . $itemId;?>"> | |
| ... | |
| </body> |
| <?php | |
| $itemId = JRequest::getInt('Itemid', 0); | |
| if ($itemId) { | |
| $currentAlias = JSite::getMenu()->getActive()->alias; | |
| $altText = str_replace("-"," ",$currentAlias); | |
| $fileTypes = array('png','jpg','jpeg','gif'); | |
| foreach ($fileTypes as $fileType) { | |
| $headerImage = JPATH_BASE . '/images/banners/' . $currentAlias . '.' . $fileType; | |
| if(JFile::exists($headerImage)) { | |
| list($width, $height, $type, $attr) = getimagesize($headerImage); |
| AddDefaultCharSet utf-8 | |
| DefaultLanguage en-US | |
| # Activate rewrite engine | |
| Options +FollowSymLinks | |
| RewriteEngine on | |
| # Redirect to wwww | |
| RewriteCond %{HTTP_HOST} ^example.com [NC] | |
| RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L] |
| #!/bin/bash | |
| read -p "Enter IP address: " -e -i 192.168.0.4 IP | |
| echo $IP |
| $(document).ready(function() { | |
| $('dt').prepend('<img class="toggle" src="images/arrow.png" width="9" height="9" /> '); | |
| var hashTag = window.location.hash.substring(1); | |
| $('dd').each(function(i) { | |
| var itemAnchor = $(this).prev('dt').find('a[name]').attr("name"); | |
| if ( itemAnchor == hashTag ) { | |
| $(this).show(); | |
| } | |
| else { | |
| $(this).hide(); |
| git archive --output=file.zip HEAD $(git diff --name-only SHA1 SHA2) |
| Add the following to your /com_content/category/blog.php template override just before <?php $this->item = &$item; echo $this->loadTemplate('item'); ?> of the class="leading" item. | |
| <?php if ($this->pagination->get('pages.current') == 1) echo '<h1>Absolute First Article</h1>' ?> |