PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
webon-core
/
inc
/
blog
/
templates
/
single
/
author-info
<?php if ( ! function_exists( 'webon_core_include_blog_single_author_info_template' ) ) { /** * Function which includes additional module on single posts page */ function webon_core_include_blog_single_author_info_template() { if ( is_single() ) { include_once WEBON_CORE_INC_PATH . '/blog/templates/single/author-info/templates/author-info.php'; } } add_action( 'webon_action_after_blog_post_item', 'webon_core_include_blog_single_author_info_template', 15 ); // permission 15 is set to define template position } if ( ! function_exists( 'webon_core_get_author_social_networks' ) ) { /** * Function which includes author info templates on single posts page */ function webon_core_get_author_social_networks( $user_id ) { $icons = array(); $social_networks = array( 'facebook', 'twitter', 'linkedin', 'instagram', 'pinterest' ); foreach ( $social_networks as $network ) { $network_meta = get_the_author_meta( 'qodef_user_' . $network, $user_id ); if ( ! empty( $network_meta ) ) { $$network = array( 'url' => $network_meta, 'icon' => 'social_' . $network, 'class' => 'qodef-user-social-' . $network ); $icons[ $network ] = $$network; } } return $icons; } } if ( ! function_exists( 'webon_core_get_author_role' ) ) { /** * Function which includes author info templates on single posts page */ function webon_core_get_author_role() { global $authordata; $author_roles = $authordata->roles; $role = array_shift($author_roles); $wp_roles = wp_roles(); $role_name = $wp_roles->role_names[$role]; return $role_name; } }
[+]
..
[+]
templates
[-] include.php
[edit]
[+]
assets
[-] helper.php
[edit]
[+]
dashboard