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
| <a class='toggle right' href='#' title='{$this->lang->words['toggle_shoutbox']}'></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
| <a class='toggle right' href='#' title='{$this->lang->words['toggle_shoutbox']}'>{$this->lang->words['toggle_shoutbox']}</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
| /* | |
| * Fix wordpress not adding custom post types to category archives | |
| */ | |
| function add_custom_types_to_tax( $query ) { | |
| if( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) { | |
| $post_types = get_post_types(); | |
| $query->set( 'post_type', $post_types ); | |
| return $query; | |
| } | |
| } |
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
| $get_themes = get_term(2, 'download_category' ); | |
| echo $get_themes->count; |
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
| <!-- :: Xenthemes Message :: --> | |
| <xen:if is="!{$visitor.user_id} && @xt_message_guest == 1"> | |
| <xen:include template="xt_message_guest" /> | |
| </xen:if> | |
| <xen:if is="{$visitor.user_id} && @xt_message_member == 1"> | |
| <xen:include template="xt_message_member" /> | |
| </xen:if> |
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
| <!-- :: Xenthemes Message :: --> | |
| <xen:if is="{$contentTemplate} == 'forum_list'"> | |
| <xen:if is="!{$visitor.user_id} && @xt_message_guest == 1"> | |
| <xen:include template="xt_message_guest" /> | |
| </xen:if> | |
| <xen:if is="{$visitor.user_id} && @xt_message_member == 1"> | |
| <xen:include template="xt_message_member" /> | |
| </xen:if> | |
| </xen:if> |
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 echo get_the_term_list( get_the_ID(), 'download_tag', 'Tags: ', ', ', '') ?> |
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
| var cookieExpiry = new Date(new Date().getTime() + 365 * 86400000); // 1 year from now | |
| $.setCookie('Name','Value',cookieExpiry); | |
| $.getCookie('Name'); |
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
| $(window).load(function(){ | |
| $('.lazyload').each(function() { | |
| var lazy = $(this); | |
| var src = lazy.attr('data-src'); | |
| lazy.css('background-image', 'url("'+src+'")'); | |
| }); | |
| }); |
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
| function totalTickets() { | |
| global $wpdb; | |
| $wpdb->set_blog_id(2); | |
| $wpdb->set_prefix($wpdb->base_prefix); | |
| $countTickets = count( get_posts( array('post_type'=>'ticket','nopaging' => true))); | |
| $wpdb->set_blog_id(1); |