Файловый менеджер - Редактировать - /home/kunzqhe/www/wp-content/plugins/themify-builder-pro/templates/template-post-navigation.php
Ðазад
<?php if (!defined('ABSPATH')) exit; // Exit if accessed directly /** * Template Post Navigation * * Access original fields: $args['mod_settings'] * @author Themify */ $fields_default = array( 'labels' => 'yes', 'prev_label' =>'', 'next_label' =>'', 'arrows' => 'yes', 'prev_arrow' => '', 'next_arrow' => '', 'same_cat' => 'no', 'tax' => 'category', 'css' => '', 'animation_effect' => '' ); $fields_args = wp_parse_args($args['mod_settings'], $fields_default); unset($args['mod_settings']); $fields_default=null; $mod_name=$args['mod_name']; $element_id =$args['module_ID']; $builder_id=$args['builder_id']; $container_class = apply_filters('themify_builder_module_classes', array( 'module', 'module-' . $mod_name, $element_id, $fields_args['css'] ), $mod_name, $element_id, $fields_args ); if(!empty($fields_args['global_styles']) && Themify_Builder::$frontedit_active===false){ $container_class[] = $fields_args['global_styles']; } $container_props = apply_filters('themify_builder_module_container_props', self::parse_animation_effect($fields_args,array( 'class' => implode(' ', $container_class), )), $fields_args, $mod_name, $element_id); $args=null; if(Themify_Builder::$frontedit_active===false){ $container_props['data-lazy']=1; } $same_cat = 'yes' === $fields_args['same_cat']; ?> <!-- Post Navigation module --> <div <?php echo self::get_element_attributes( self::sticky_element_props( $container_props, $fields_args ) ); ?>> <?php $container_props=$container_class=null; do_action('themify_builder_background_styling',$builder_id,array('styling'=>$fields_args,'mod_name'=>$mod_name),$element_id,'module'); $the_query = Tbp_Utils::get_actual_query(); if ($the_query===null || $the_query->have_posts() ){ if($the_query!==null){ $the_query->the_post(); } $text = ''; if ( 'yes' === $fields_args['arrows'] ) { $arrow = '' !== $fields_args['prev_arrow'] ? themify_get_icon( $fields_args['prev_arrow'] ) : '«'; $text = '<span class="tbp_post_navigation_arrow">' . $arrow . '</span>'; } $label ='yes' === $fields_args['labels'] ? $fields_args['prev_label'] : ''; $previous_post_link = get_previous_post_link( '%link', $text . '<span class="tbp_post_navigation_content_wrapper">' . '<span class="tbp_post_navigation_label">' . $label . '</span>' . '<br/>' . '<span class="tbp_post_navigation_title">%title</span></span>', $same_cat, '', $fields_args['tax'] ); echo $previous_post_link; $text = ''; if ( 'yes' === $fields_args['arrows'] ) { $arrow = '' !== $fields_args['next_arrow'] ? themify_get_icon( $fields_args['next_arrow'] ) : '»'; $text = '<span class="tbp_post_navigation_arrow">' . $arrow . '</span>'; } $label ='yes' === $fields_args['labels'] ? $fields_args['next_label'] : ''; $next_post_link = get_next_post_link( '%link', $text . '<span class="tbp_post_navigation_content_wrapper">' . '<span class="tbp_post_navigation_label">' . $label . '</span>' . '<br/>' . '<span class="tbp_post_navigation_title">%title</span></span>', $same_cat, '', $fields_args['tax'] ); echo $next_post_link; if($the_query!==null){ wp_reset_postdata(); } } ?> <?php if ( empty( $previous_post_link ) && empty( $next_post_link ) && ( Tbp_Utils::$isActive===true || Themify_Builder::$frontedit_active===true ) ) : ?> <div class="tbp_empty_module"> <?php echo Themify_Builder_Model::get_module_name($mod_name);?> </div> <?php endif; ?> </div> <!-- /Post Navigation module -->
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка