This file contains hidden or 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
| <?php | |
| /* | |
| Plugin Name: Plugin Boilerplate | |
| Version: 0.1-alpha | |
| Description: This is how I like to make sense of the WordPress plugin architecture | |
| Author: Adam Davis | |
| Author URI: http://admataz.com | |
| Plugin URI: http://admataz.com | |
| Text Domain: admataz-plugin-boilerplate | |
| Domain Path: /languages |
This file contains hidden or 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
| /** | |
| * ----------------------------- | |
| * Articles List (Home Page) | |
| * ----------------------------- | |
| */ | |
| ;(function($){ | |
| $.fn.articlesList = function() { | |
| var articleslist = this; |
This file contains hidden or 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
| <? | |
| /* | |
| * Detect whether the current query is ajax | |
| * | |
| * TODO: check if this works across browsers and ajax libraries | |
| */ | |
| function is_xhr() | |
| { | |
| if(isset($_SERVER['HTTP_X_REQUESTED_WITH']) && | |
| strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') |
This file contains hidden or 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
| <? | |
| /** | |
| * override global config settings with local settings - add to the bottom of the global config file | |
| * Server Specfic variables from unversion included file - if it exists | |
| */ | |
| $abspath = dirname(__FILE__); | |
| if(file_exists($abspath.'/settings.local.php')){ | |
| include $abspath.'/settings.local.php'; |
NewerOlder