function Comment_Count(){ if ( !is_single() && !post_password_required() && ( comments_open() || get_comments_number() ) ) { comments_popup_link( __( 'Sin comentarios', 'mgs_5reinos' ), __( '1 comentario', 'mgs_5reinos' ), __( '% Comentarios', 'mgs_5reinos' ) ); } } function mgs_the_excerpt($charlength) { $excerpt = get_the_excerpt(); $charlength++; if ( mb_strlen( $excerpt ) > $charlength ) { $subex = mb_substr( $excerpt, 0, $charlength - 5 ); $exwords = explode( ' ', $subex ); $excut = - ( mb_strlen( $exwords[ count( $exwords ) - 1 ] ) ); if ( $excut < 0 ) { echo mb_substr( $subex, 0, $excut ); } else { echo $subex; } } else { echo $excerpt; } } ?> function MGS_Menu_Top(){ $detect = new Mobile_Detect(); if( $detect->isMobile() ){ $page_object = get_queried_object(); $page_id = get_queried_object_id(); ?>