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
<?php | |
/* | |
Plugin Name: List Pages Shortcode Index | |
Plugin URI: https://gist.github.com/benhuson/9c419282d8e05fff6eeb | |
Description: Add-on for the <a href="https://wordpress.org/plugins/list-pages-shortcode/">List Pages Shortcode</a> plugin. | |
Author: Ben Huson | |
Version: 0.1 | |
Author URI: https://github.com/benhuson | |
*/ |
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
<?php | |
/** | |
* Plugin Row Meta | |
* | |
* Adds GitHub and translate links below the plugin description on the plugins page. | |
* Replace references to 'my-plugin' to reflect your plugin folder and file name. | |
* Update the GitHub Repo and Translation links. | |
* | |
* @param array $plugin_meta Plugin meta display array. |
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
/* Nested Ordered List */ | |
ol { | |
counter-reset: ol | |
} | |
li { | |
display: block | |
} |
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
<?php | |
/** | |
* For developers: WordPress debugging mode. | |
* | |
* Change this to true to enable the display of notices during development. | |
* It is strongly recommended that plugin and theme developers use WP_DEBUG | |
* in their development environments. | |
*/ | |
define( 'WP_DEBUG', true ); |
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
# Redirect to fully qualified domain if different | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} !^www.example.com | |
RewriteRule (.*) http://www.example.com%{REQUEST_URI} | |
</IfModule> | |
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
/** | |
* Add ipad IOS7 Classes | |
* Allows us to temporariliy try to fix the slight scroll 100% hack. | |
* http://stackoverflow.com/questions/19012135/ios-7-ipad-safari-landscape-innerheight-outerheight-layout-issue | |
*/ | |
if (navigator.userAgent.match(/iPad;.*CPU.*OS 7_\d/i)) { | |
$('html').addClass('ipad ios7'); | |
} | |
/** |
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
Index: users2csv.php | |
=================================================================== | |
--- users2csv.php (revision 277117) | |
+++ users2csv.php (working copy) | |
@@ -26,7 +26,7 @@ | |
if ( is_admin() ) { | |
- if ($_GET['page'] == "users2csv.php") { | |
+ if ( isset( $_GET['page'] ) && $_GET['page'] == 'users2csv.php' ) { |
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
var ipad_version = 0; | |
window.ondevicemotion = function(event) { | |
if (navigator.platform.indexOf("iPad") != -1) { | |
ipad_version = 1; | |
if (event.acceleration) ipad_version += window.devicePixelRatio; | |
} | |
window.ondevicemotion = null; | |
get_ipad_version(); | |
} |
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
<?php | |
/** | |
* Post Order | |
*/ | |
function product_orderby( $query ) { | |
if ( $query->is_main_query() && ( is_post_type_archive( 'custom_post_type_name' ) ) ) { | |
$query->set( 'order', 'ASC' ); | |
$query->set( 'orderby','menu_order' ); | |
} |
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
jQuery(".clickable-block").click(function(){ | |
window.location = jQuery(this).find('a').attr('href'); | |
return false; | |
}); |