Файловый менеджер - Редактировать - /home/infrafs/www/wp-content/themes/trackstore/framework/modules/blog/templates/parts/single/author-info.php
Назад
<?php $author_info_box = esc_attr(trackstore_elated_options()->getOptionValue('blog_author_info')); $author_info_email = esc_attr(trackstore_elated_options()->getOptionValue('blog_author_info_email')); $author_id = esc_attr(get_the_author_meta('ID')); $social_networks = trackstore_elated_core_plugin_installed() ? trackstore_elated_get_user_custom_fields() : false; $display_author_social = trackstore_elated_options()->getOptionValue('blog_single_author_social') === 'no' ? false : true; ?> <?php if($author_info_box === 'yes' && get_the_author_meta('description') !== "") { ?> <div class="eltd-author-description"> <div class="eltd-author-description-inner"> <div class="eltd-author-description-content"> <div class="eltd-author-description-image"> <a itemprop="url" href="<?php echo esc_url(get_author_posts_url($author_id)); ?>" title="<?php the_title_attribute(); ?>" target="_self"> <?php echo trackstore_elated_kses_img(get_avatar(get_the_author_meta( 'ID' ), 78)); ?> </a> </div> <div class="eltd-author-description-text-holder"> <?php if(get_the_author_meta('description') != "") { ?> <div class="eltd-author-text"> <p itemprop="description"><?php echo esc_html(get_the_author_meta('description')); ?></p> </div> <?php } ?> <h4 class="eltd-author-name vcard author"> <a itemprop="url" href="<?php echo esc_url(get_author_posts_url($author_id)); ?>" title="<?php the_title_attribute(); ?>" target="_self"> <span class="fn"> <?php if(get_the_author_meta('first_name') != "" || get_the_author_meta('last_name') != "") { echo esc_html(get_the_author_meta('first_name')) . " " . esc_html(get_the_author_meta('last_name')); } else { echo esc_html(get_the_author_meta('display_name')); } ?> </span> </a> </h4> <?php if($author_info_email === 'yes' && is_email(get_the_author_meta('email'))){ ?> <p itemprop="email" class="eltd-author-email"><?php echo sanitize_email(get_the_author_meta('email')); ?></p> <?php } ?> <?php if($display_author_social) { ?> <?php if(is_array($social_networks) && count($social_networks)){ ?> <div class="eltd-author-social-icons clearfix"> <?php foreach($social_networks as $network){ ?> <a itemprop="url" href="<?php echo esc_url($network['link'])?>" target="_blank"> <?php echo trackstore_elated_icon_collections()->renderIcon($network['class'], 'font_elegant'); ?> </a> <?php }?> </div> <?php } ?> <?php } ?> </div> </div> </div> </div> <?php } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка