comment_type ) { case 'pingback' : case 'trackback' : // Display trackbacks differently than normal comments. ?>
  • id="comment-">

    ', '' ); ?>

  • id="li-comment-">
    - sprintf( __( '%s Reply', 'adney' ), ' ' ) , 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    comment_approved ) { //Comment moderation ?>
    %link ', '%title', true ); $next = get_next_post_link( '%link ', '%title', true ); // Only add markup if there's somewhere to navigate to. if ( $previous || $next ) { if($previous && !$next){ $navigation = _navigation_markup( $previous , 'post-navigation' ); }elseif(!$previous && $next){ $navigation = _navigation_markup( $next, 'post-navigation' ); }else{ $navigation = _navigation_markup( $previous .'/'. $next, 'post-navigation' ); } } echo $navigation; } } function adney_check_plugin_active(){ if( class_exists( 'Xylus_Toolkit' ) ){ return true; }else{ return false; } } /** * Filter the theme page templates. * * @param array $page_templates Page templates. * @param WP_Theme $wp_theme WP_Theme instance. * @param WP_Post $post The post being edited, provided for context, or null. * @return array (Maybe) modified page templates array. */ function adney_filter_theme_page_templates( $page_templates, $wp_theme, $post ) { if ( !adney_check_plugin_active() ) { if ( isset( $page_templates['template-portfolio.php'] ) ) { unset( $page_templates['template-portfolio.php'] ); } } return $page_templates; } add_filter( 'theme_page_templates', 'adney_filter_theme_page_templates', 20, 3 );