';
$rett .= '';
$rett .= ' ' . esc_html( get_theme_mod( 'mythemes-home-label' , __( 'Home' , 'cannyon' ) ) ) . '';
$rett .= '';
$rett .= '';
return $rett;
}
static function categories( $c_id )
{
$rett = '';
$c = get_category( $c_id );
if( isset( $c -> category_parent ) && $c -> category_parent > 0 ){
$rett .= self::categories( $c -> category_parent );
}
$category_link = get_category_link( $c -> term_id );
if( is_wp_error( $category_link ) ){
return '';
}
if( is_category( $c -> term_id ) ){
$rett .= '
' . esc_html( $c -> name ) . '';
}
else{
$rett .= '';
$rett .= '' . esc_html( $c -> name ) . '';
$rett .= '';
}
return $rett;
}
static function pages( $p )
{
$rett = '';
if( isset( $p -> post_parent ) && $p -> post_parent > 0 ){
$parent = get_post( $p -> post_parent );
$rett .= self::pages( $parent );
}
if( !is_page( $p -> ID ) ){
$rett .= '';
$rett .= '' . mythemes_post::title( $p -> ID, true ) . '';
$rett .= '';
}
return $rett;
}
static function count( $query )
{
$label = _n( 'One Article' , '%s Articles' , absint( $query -> found_posts ) , 'cannyon' );
return '' . sprintf( $label , number_format_i18n( absint( $query -> found_posts ) ) ) . '';
}
}
} /* END IF CLASS EXISTS */
?>