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 | |
| My_Class { | |
| private static $instance; | |
| public static function instance() { | |
| if ( isset( self::$instance ) ) | |
| return self::$instance; |
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
| Index: wp-admin/nav-menus.php | |
| =================================================================== | |
| --- wp-admin/nav-menus.php (revision 23446) | |
| +++ wp-admin/nav-menus.php (working copy) | |
| @@ -264,6 +264,8 @@ | |
| // Get existing menu locations assignments | |
| $locations = get_registered_nav_menus(); | |
| $menu_locations = get_nav_menu_locations(); | |
| + if ( empty( $menu_locations ) || ! is_array( $menu_locations ) ) | |
| + $menu_locations = array(); |
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 | |
| // Hide Email from Spam Bots | |
| function cwc_mail_shortcode( $atts , $content = null ) { | |
| if ( ! is_email( $content ) ) | |
| return; | |
| for ( $i = 0; $i < strlen( $content ); $i++ ) | |
| $encodedmail .= "&#" . ord( $content[$i] ) . ';'; | |
| return '<a href="' . esc_url( 'mailto:' . $encodedmail ) . '">Email</a>'; |
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 | |
| $output .= "\n<option id='{$taxonomy}-{$term->term_id}'$class value='". esc_attr( $term->name ) . "'" . selected( in_array( $term->term_id, $selected_cats ), true, false ) . disabled( empty( $args['disabled'] ), false, false ) . ' /> ' . $indent . esc_html( apply_filters('the_category', $term->name )) . '</option>'; |
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
| .gist { | |
| color: #e4322e; | |
| } | |
| .gistdiv { | |
| padding: 0; | |
| margin: 0; | |
| } | |
| .gist .gist-file { |
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
| // line 205 of web.py | |
| self.data['sortable_headers']['sorting_method] = { 'name': sorting_method_name, 'link': link, 'html_class': html_class } |
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 | |
| add_filter( 'tribe_ical_feed_item', 'tribe_ical_add_alarm', 10, 2 ); | |
| function tribe_ical_add_alarm( $item, $eventPost ) { | |
| $alarm = tribe_get_custom_field( 'Alarm', $eventPost->ID ); | |
| if ( !empty( $alarm ) ) { | |
| $item[] = 'BEGIN:VALARM'; | |
| $item[] = 'TRIGGER:-PT' . (int) $alarm . "M"; | |
| $item[] = 'END:VALARM'; | |
| } | |
| return $item; |
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
| tribe_ical_add_alarm |
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 ( is_page() ) { | |
| echo 'this is a page'; | |
| } elseif ( is_single() ) { | |
| echo 'this is a post'; | |
| echo <br>how wonderful!'; |
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 ( !defined( 'MEDIAWIKI' ) ) { | |
| die( 'This file is a MediaWiki extension, it is not a valid entry point' ); | |
| } | |
| $wgExtensionCredits['other'][] = array( | |
| 'path' => __FILE__, | |
| 'name' => 'Google Analytics Integration', | |
| 'version' => '2.0.2', | |
| 'author' => 'Tim Laqua', |