This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# all php files :: disallow direct access of file | |
# between <?php and ?> | |
defined('_JEXEC') or die; | |
# index.php :: define variable with application | |
# between <?php and ?> | |
$app = JFactory::getApplication(); | |
# index.php :: define variable with document | |
# between <?php and ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a useful trick if you want to wrap two sibling elements in a containing element, for example to fix stupid float bugs in IE7. I had a bit of a time figuring out how to select the right elements (wrapping is easy enough with one element, or one element's children), so I thought I'd share for the Greater Good. | |
From markup like this: | |
<div class='form-container'> | |
... | |
<div class='form-label'>Name (required)</div> | |
<div class='form-field'><input type="text" name="you-name" value="" class="textbox" size="30" maxlength="200" /></div> | |
<div class='form-label'>Email (required)</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### =========================================================================== | |
### Security Enhanced & Highly Optimized .htaccess File for Joomla! | |
### automatically generated by Admin Tools 3.6.8 on 2016-01-15 22:02:05 GMT | |
### Auto-detected Apache version: 2.5 (best guess) | |
### =========================================================================== | |
### | |
### The contents of this file are based on the same author's work "Master | |
### .htaccess", published on http://snipt.net/nikosdion/the-master-htaccess | |
### | |
### Admin Tools is Free Software, distributed under the terms of the GNU |