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
| // Wait until the DOM is fully loaded before executing the jQuery | |
| $(document).ready(function($) { | |
| // Lets open all external links in a new tab | |
| $.extend ($.expr[':'], { | |
| internal: function (e) { | |
| if (e.nodeName.toLowerCase() != 'a') { | |
| return false; | |
| } | |
| var href = $(e).attr("href"); |
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
| /** | |
| * This will add an additional columns called 'Students, Background, Outcome'to the custom post type of 'casestudies'. | |
| * These new columns display the specified custom fields of a post. | |
| */ | |
| add_action("manage_posts_custom_column", "casestudies_custom_columns"); | |
| add_filter("manage_edit-casestudies_columns", "setup_casestudies_admin_columns"); | |
| function setup_casestudies_admin_columns($columns) | |
| { |
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
| // Wait until the DOM is fully loaded before executing the jQuery | |
| $(document).ready(function($) { | |
| // A little fix for the old ios's out there | |
| // swap out #menu-main-navigation for your own id | |
| $("#menu-main-navigation").on("a", "touchstart touchend", function (e) { | |
| window.location = $(this).attr("href");s | |
| }); | |
| }); |
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 | |
| if ($_SERVER[‘REMOTE_ADDR’] == “28.57.742.18”): | |
| phpinfo (); die(); | |
| endif; ?> |
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
| if ( ! function_exists( 'oneltd_comment' ) ) : | |
| /** | |
| * Template for comments and pingbacks. | |
| * | |
| * Used as a callback by wp_list_comments() for displaying the comments. | |
| * | |
| * @since oneltd 1.0 | |
| */ | |
| function oneltd_comment( $comment, $args, $depth ) { | |
| $GLOBALS['comment'] = $comment; |