Убрать кнопки share и комментарии facebook
-
Всем привет. Подскажите, пожалуйста, нашел single-portfolio.php страницу, на которой хотел бы убрать кнопки share и комментарии facebook.
Нашел даже куски кода в этом файле, но удаляя их, сайт начинает висеть. Судя по всему удаляю что-то с оператором нужным или со скобкой. Помогите плз
Страница: http://directmodels.ru/model/selina-korol/
<?php get_header(); $disable_back_to_page = get_theme_mod('disable_back_to_page') ? get_theme_mod('disable_back_to_page') : '0'; $pf_back_to_page_text = get_theme_mod('pf_back_to_page_text') ? get_theme_mod('pf_back_to_page_text') : ''; $disable_single_page_title = get_theme_mod('disable_single_page_title') ? get_theme_mod('disable_single_page_title') : '0'; $select_slider_auto_play=get_post_meta(get_the_id(),'select_slider_auto_play',true) ? get_post_meta(get_the_id(),'select_slider_auto_play',true) : 'true'; $portfolio_form_page_id = get_theme_mod('portfolio_form_page_id') ? get_theme_mod('portfolio_form_page_id') : ''; $sidebar_layout=get_post_meta(get_the_id(),'kaya_pagesidebar',true) ? get_post_meta(get_the_id(),'kaya_pagesidebar',true) : 'full'; $pf_gallery_images= rwmb_meta( 'portfolio_image_gallery', 'type=image&size=full' ); $pf_tab1_title_name=get_post_meta(get_the_id(),'pf_tab1_title_name',true) ? get_post_meta(get_the_id(),'pf_tab1_title_name',true) : 'PORTFOLIO'; $pf_videos_tab_name=get_post_meta(get_the_id(),'pf_videos_tab_name',true) ? get_post_meta(get_the_id(),'pf_videos_tab_name',true) : 'VIDEOS'; $select_pf_video_type=get_post_meta(get_the_id(),'select_pf_video_type',true) ? get_post_meta(get_the_id(),'select_pf_video_type',true) : 'pf_video_urls'; $pf_video_urls=get_post_meta(get_the_id(),'pf_video_urls',true) ? get_post_meta(get_the_id(),'pf_video_urls',true) : ''; $pf_custom_video_urls=get_post_meta(get_the_id(),'pf_custom_video_urls',true) ? get_post_meta(get_the_id(),'pf_custom_video_urls',true) : ''; //$pf_model_short_biography=get_post_meta(get_the_id(),'pf_model_short_biography',true) ? get_post_meta(get_the_id(),'pf_model_short_biography',true) : ''; $pf_short_desc_tab_title=get_post_meta(get_the_id(),'pf_short_desc_tab_title',true) ? get_post_meta(get_the_id(),'pf_short_desc_tab_title',true) : 'BIOGRAPHY'; $pf_model_additional_info=get_post_meta(get_the_id(),'pf_model_additional_info',true) ? get_post_meta(get_the_id(),'pf_model_additional_info',true) : ''; $pf_model_experience=get_post_meta(get_the_id(),'pf_model_experience',true) ? get_post_meta(get_the_id(),'pf_model_experience',true) : ''; $pf_model_talents=get_post_meta(get_the_id(),'pf_model_talents',true) ? get_post_meta(get_the_id(),'pf_model_talents',true) : ''; //Tab2 $upload_pf_tab2_images = rwmb_meta( 'upload_pf_tab2_images', 'type=image&size=full' ); $pf_gallery_tab2_images = get_post_meta(get_the_id(),'pf_gallery_tab2_images', true); $pf_tab2_title_name=get_post_meta(get_the_id(),'pf_tab2_title_name',true) ? get_post_meta(get_the_id(),'pf_tab2_title_name',true) : 'POLAROID'; $pf_tab2_images_height=get_post_meta(get_the_id(),'pf_tab2_images_height',true) ? get_post_meta(get_the_id(),'pf_tab2_images_height',true) : '500'; $pf_tab2_images_width=get_post_meta(get_the_id(),'pf_tab2_images_width',true) ? get_post_meta(get_the_id(),'pf_tab2_images_width',true) : '500'; $pf_tab2_images_columns=get_post_meta(get_the_id(),'pf_tab2_images_columns',true) ? get_post_meta(get_the_id(),'pf_tab2_images_columns',true) : '4'; $enable_pf_gallery_tab2_images = ( $pf_gallery_tab2_images != '1' ) ? '': 'gallery_horizontal'; $pf_tab2_custom_text=get_post_meta(get_the_id(),'pf_tab2_custom_text',true) ? get_post_meta(get_the_id(),'pf_tab2_custom_text',true) : ''; $pf_tab2_gutter_disable=get_post_meta(get_the_id(),'pf_tab2_gutter_disable',true) ? get_post_meta(get_the_id(),'pf_tab2_gutter_disable',true) : '0'; $pf_tab2_gallery_gutter_disable = ( $pf_tab2_gutter_disable == '0' ) ? 'pf_gutter' : ''; //Tab3 $upload_pf_tab3_images = rwmb_meta( 'upload_pf_tab3_images', 'type=image&size=full' ); $pf_gallery_tab3_images = get_post_meta(get_the_id(),'pf_gallery_tab3_images', true); $pf_tab3_title_name=get_post_meta(get_the_id(),'pf_tab3_title_name',true) ? get_post_meta(get_the_id(),'pf_tab3_title_name',true) : 'TAB3 TITLE'; $pf_tab3_images_height=get_post_meta(get_the_id(),'pf_tab3_images_height',true) ? get_post_meta(get_the_id(),'pf_tab3_images_height',true) : '500'; $pf_tab3_images_width=get_post_meta(get_the_id(),'pf_tab3_images_width',true) ? get_post_meta(get_the_id(),'pf_tab3_images_width',true) : '500'; $pf_tab3_images_columns=get_post_meta(get_the_id(),'pf_tab3_images_columns',true) ? get_post_meta(get_the_id(),'pf_tab3_images_columns',true) : '4'; $enable_pf_gallery_tab3_images = ( $pf_gallery_tab3_images != '1' ) ? '': 'gallery_horizontal'; $pf_tab3_custom_text=get_post_meta(get_the_id(),'pf_tab3_custom_text',true) ? get_post_meta(get_the_id(),'pf_tab3_custom_text',true) : ''; $pf_tab3_gutter_disable=get_post_meta(get_the_id(),'pf_tab3_gutter_disable',true) ? get_post_meta(get_the_id(),'pf_tab3_gutter_disable',true) : '0'; $pf_tab3_gallery_gutter_disable = ( $pf_tab3_gutter_disable == '0' ) ? 'pf_gutter' : ''; //Tab4 $upload_pf_tab4_images = rwmb_meta( 'upload_pf_tab4_images', 'type=image&size=full' ); $pf_gallery_tab4_images = get_post_meta(get_the_id(),'pf_gallery_tab4_images', true); $pf_tab4_title_name=get_post_meta(get_the_id(),'pf_tab4_title_name',true) ? get_post_meta(get_the_id(),'pf_tab4_title_name',true) : 'TAB4 TITLE'; $pf_tab4_images_height=get_post_meta(get_the_id(),'pf_tab4_images_height',true) ? get_post_meta(get_the_id(),'pf_tab4_images_height',true) : '500'; $pf_tab4_images_width=get_post_meta(get_the_id(),'pf_tab4_images_width',true) ? get_post_meta(get_the_id(),'pf_tab4_images_width',true) : '500'; $pf_tab4_images_columns=get_post_meta(get_the_id(),'pf_tab4_images_columns',true) ? get_post_meta(get_the_id(),'pf_tab4_images_columns',true) : '4'; $enable_pf_gallery_tab4_images = ( $pf_gallery_tab4_images != '1' ) ? '': 'gallery_horizontal'; $pf_tab4_custom_text=get_post_meta(get_the_id(),'pf_tab4_custom_text',true) ? get_post_meta(get_the_id(),'pf_tab4_custom_text',true) : ''; $pf_tab4_gutter_disable=get_post_meta(get_the_id(),'pf_tab4_gutter_disable',true) ? get_post_meta(get_the_id(),'pf_tab4_gutter_disable',true) : '0'; $pf_tab4_gallery_gutter_disable = ( $pf_tab4_gutter_disable == '0' ) ? 'pf_gutter' : ''; //Tab5 $upload_pf_tab5_images = rwmb_meta( 'upload_pf_tab5_images', 'type=image&size=full' ); $pf_gallery_tab5_images = get_post_meta(get_the_id(),'pf_gallery_tab5_images', true); $pf_tab5_title_name=get_post_meta(get_the_id(),'pf_tab5_title_name',true) ? get_post_meta(get_the_id(),'pf_tab5_title_name',true) : 'TAB5 TITLE'; $pf_tab5_images_height=get_post_meta(get_the_id(),'pf_tab4_images_height',true) ? get_post_meta(get_the_id(),'pf_tab5_images_height',true) : '500'; $pf_tab5_images_width=get_post_meta(get_the_id(),'pf_tab5_images_width',true) ? get_post_meta(get_the_id(),'pf_tab5_images_width',true) : '500'; $pf_tab5_images_columns=get_post_meta(get_the_id(),'pf_tab4_images_columns',true) ? get_post_meta(get_the_id(),'pf_tab5_images_columns',true) : '4'; $enable_pf_gallery_tab5_images = ( $pf_gallery_tab5_images != '1' ) ? '': 'gallery_horizontal'; $pf_tab5_custom_text=get_post_meta(get_the_id(),'pf_tab5_custom_text',true) ? get_post_meta(get_the_id(),'pf_tab5_custom_text',true) : ''; $pf_tab5_gutter_disable=get_post_meta(get_the_id(),'pf_tab5_gutter_disable',true) ? get_post_meta(get_the_id(),'pf_tab5_gutter_disable',true) : '0'; $pf_tab5_gallery_gutter_disable = ( $pf_tab5_gutter_disable == '0' ) ? 'pf_gutter' : ''; //end $select_video_pf_columns=get_post_meta(get_the_id(),'select_video_pf_columns',true) ? get_post_meta(get_the_id(),'select_video_pf_columns',true) : '2'; $select_image_pf_columns=get_post_meta(get_the_id(),'select_image_pf_columns',true) ? get_post_meta(get_the_id(),'select_image_pf_columns',true) : '4'; $pf_gallery_gutter_disable=get_post_meta(get_the_id(),'pf_gallery_gutter_disable',true) ? get_post_meta(get_the_id(),'pf_gallery_gutter_disable',true) : '0'; $pf_video_gutter_disable=get_post_meta(get_the_id(),'pf_video_gutter_disable',true) ? get_post_meta(get_the_id(),'pf_video_gutter_disable',true) : '0'; $pf_project_title=get_post_meta(get_the_ID(),'pf_project_title' ,true); $disable_pf_project_information=get_post_meta(get_the_ID(),'disable_pf_project_information' ,true); $pf_project_information=get_post_meta(get_the_ID(),'pf_project_information' ,true); $relatedpost=get_post_meta(get_the_ID(),'relatedpost' ,true); $portfolio_project_skills=get_post_meta(get_the_ID(),'portfolio_project_skills' ,false); $pf_categories = get_the_terms(get_the_ID(), 'portfolio_category'); $pf_gallery_slider = get_post_meta(get_the_ID(), 'pf_gallery_slider',true) ? get_post_meta(get_the_ID(), 'pf_gallery_slider',true) : '0' ; $enable_pf_gallery_tab1_images = ( $pf_gallery_slider != '1' ) ? '': 'gallery_horizontal'; $pf_gallery_img_width = get_post_meta(get_the_ID(), 'pf_gallery_img_width',true) ? get_post_meta(get_the_ID(), 'pf_gallery_img_width',true) : '500' ; $pf_gallery_img_height = get_post_meta(get_the_ID(), 'pf_gallery_img_height',true) ? get_post_meta(get_the_ID(), 'pf_gallery_img_height',true) : '500' ; $model_details = array('name' => 'name','age'=>'age','gender' => 'gender','country' => 'country','height' => 'height','physique' => 'physique', 'bust'=>'bust','waist' => 'waist','hips' => 'hips','hair-color'=>'hair_color', 'eye-color' => 'eye_color', 'shoe-size' => 'shoe_size', 'dress-size' => 'dress_size'); switch( $sidebar_layout ){ case 'leftsidebar': $sidebar_class="two_third_last"; break; case 'rightsidebar': $sidebar_class="two_third"; break; case 'full': $sidebar_class="fullwidth"; break; } $slider_margin = ( $pf_gallery_gutter_disable == '0' ) ? '20' : '0'; $gallery_gutter_disable = ( $pf_gallery_gutter_disable == '0' ) ? 'pf_gutter' : ''; $video_gutter_disable = ( $pf_video_gutter_disable == '0' ) ? 'pf_gutter' : ''; $aside_class=($sidebar_layout== "leftsidebar" ) ? 'one_third' : 'one_third_last'; $pf_enable_facebook_comments = get_theme_mod('pf_enable_facebook_comments') ? get_theme_mod('pf_enable_facebook_comments') : '0'; $pf_select_comment_colors = get_theme_mod('pf_select_comment_colors') ? get_theme_mod('pf_select_comment_colors') : 'light';// comments color // Disable Social Media Icons $pf_disable_facebook_icon = get_theme_mod('pf_disable_facebook_icon') ? get_theme_mod('pf_disable_facebook_icon') : '0'; $pf_disable_twitter_icon = get_theme_mod('pf_disable_twitter_icon') ? get_theme_mod('pf_disable_twitter_icon') : '0'; $pf_disable_google_plus_icon = get_theme_mod('pf_disable_google_plus_icon') ? get_theme_mod('pf_disable_google_plus_icon') : '0'; $pf_disable_pinterest_icon = get_theme_mod('pf_disable_pinterest_icon') ? get_theme_mod('pf_disable_pinterest_icon') : '0'; $pf_disable_stumbleupon_icon = get_theme_mod('pf_disable_stumbleupon_icon') ? get_theme_mod('pf_disable_stumbleupon_icon') : '0'; $pf_disable_digg_icon = get_theme_mod('pf_disable_digg_icon') ? get_theme_mod('pf_disable_digg_icon') : '0'; $pf_disable_linkedin_icon = get_theme_mod('pf_disable_linkedin_icon') ? get_theme_mod('pf_disable_linkedin_icon') : '0'; $pf_disable_email_icon = get_theme_mod('pf_disable_email_icon') ? get_theme_mod('pf_disable_email_icon') : '0'; $kaya_portfolio_activation_msg = get_theme_mod('kaya_portfolio_activation_msg') ? get_theme_mod('kaya_portfolio_activation_msg') : __('Thankyou for registration. Your Profile Will be activate with in 24 hours', 'gilda'); $change_your_email_address_text = get_theme_mod('change_your_email_address_text') ? get_theme_mod('change_your_email_address_text') : 'Your Email Address'; $change_your_name_text = get_theme_mod('change_your_name_text') ? get_theme_mod('change_your_name_text') : 'Your Name'; $change_send_email_text = get_theme_mod('change_send_email_text') ? get_theme_mod('change_send_email_text') : 'Send to Email Address'; $change_form_submit_button_text = get_theme_mod('change_form_submit_button_text') ? get_theme_mod('change_form_submit_button_text') : 'SUBMIT'; ?> <!-- Start Middle Section --> <?php if( $disable_single_page_title != '1' ){ // disable page title echo kaya_subheader_data(); } ?> <div id="mid_container_wrapper" class="mid_container_wrapper_section"> <div id="mid_container" class="container"> <div class="entry-content"> <div class="<?php echo $sidebar_class; ?>"> <div class="pf_single_page_content_wrapper"> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php global $wp_query, $current_user, $post; $post_array_data = $wp_query->get_queried_object(); echo observePostViews(get_the_ID()); if( $post->post_status == 'pending' ){ echo '<h5 style="text-align:center; margin-bottom:30px;">'.$kaya_portfolio_activation_msg.'</h5>'; } /* portfolio Gallery */ echo '<img src="'.get_template_directory_uri().'/images/ajax-loader.GIF" class="tab_content_wrapper_loader" />'; echo '<div class="pf_videos_gallery_tabs_wrapper">'; if(!empty($pf_video_urls) || !empty($pf_custom_video_urls) || !empty($pf_gallery_images) || !empty($upload_pf_tab2_images) || !empty($pf_tab2_custom_text) || !empty($upload_pf_tab3_images) || !empty($pf_tab3_custom_text) || !empty($upload_pf_tab4_images) || !empty($pf_tab4_custom_text) || !empty($upload_pf_tab5_images) || !empty($pf_tab5_custom_text) || !empty($pf_model_additional_info) || !empty($pf_custom_video_urls[0]) || !empty($pf_custom_video_urls[1]) || !empty($pf_custom_video_urls[2]) || !empty($pf_custom_video_urls[3]) || !empty($pf_custom_video_urls[4]) || !empty($pf_custom_video_urls[5]) || !empty($pf_custom_video_urls[6]) ){ if( ( !empty($pf_custom_video_urls) && !empty($pf_gallery_images) ) || ( !empty($pf_model_additional_info ) && !empty($pf_gallery_images) ) || ( !empty($pf_model_additional_info) && !empty($pf_custom_video_urls) )|| ( !empty($pf_model_additional_info) && !empty($pf_model_experience) ) || ( !empty($pf_model_additional_info) && !empty($pf_model_talents) ) || ( !empty($pf_model_experience) && !empty($pf_model_additional_info) ) || ( !empty($pf_model_experience) && !empty($pf_model_talents) ) || ( !empty($pf_model_talents) && !empty($pf_model_additional_info) ) || ( !empty($pf_model_talents) && !empty($pf_model_experience) ) || ( !empty($pf_gallery_images) && !empty($upload_pf_tab3_images) ) || ( !empty($pf_gallery_images) && !empty($upload_pf_tab4_images) ) || ( !empty($pf_gallery_images) && !empty($upload_pf_tab5_images) ) || ( ( !empty($upload_pf_tab2_images) || !empty($pf_tab2_custom_text) ) && ( !empty($upload_pf_tab3_images) || !empty($pf_tab3_custom_text) ) ) || ( ( !empty($upload_pf_tab2_images) || !empty($pf_tab2_custom_text) ) && ( !empty($upload_pf_tab4_images) || !empty($pf_tab4_custom_text) ) ) || ( ( !empty($upload_pf_tab2_images) || !empty($pf_tab2_custom_text) ) && ( !empty($upload_pf_tab5_images) || !empty($pf_tab5_custom_text) ) ) //Tab2 || ( ( !empty($upload_pf_tab3_images) || !empty($pf_tab3_custom_text) ) && !empty($pf_gallery_images) ) || ( ( !empty($upload_pf_tab3_images) || !empty($pf_tab3_custom_text) ) && ( !empty($upload_pf_tab2_images) || !empty($pf_tab2_custom_text) ) ) || ( ( !empty($upload_pf_tab3_images) || !empty($pf_tab3_custom_text) ) && ( !empty($upload_pf_tab3_images) || !empty($pf_tab3_custom_text) ) ) || ( ( !empty($upload_pf_tab3_images) || !empty($pf_tab3_custom_text) ) && ( !empty($upload_pf_tab4_images) || !empty($pf_tab4_custom_text) ) ) || ( ( !empty($upload_pf_tab3_images) || !empty($pf_tab3_custom_text) ) && ( !empty($upload_pf_tab5_images) || !empty($pf_tab5_custom_text) ) ) // Tab3 || ( ( !empty($upload_pf_tab4_images) || !empty($pf_tab4_custom_text) ) && !empty($pf_gallery_images) ) || ( ( !empty($upload_pf_tab4_images) || !empty($pf_tab4_custom_text) ) && ( !empty($upload_pf_tab2_images) || !empty($pf_tab2_custom_text) ) ) || ( ( !empty($upload_pf_tab4_images) || !empty($pf_tab4_custom_text) ) && ( !empty($upload_pf_tab3_images) || !empty($pf_tab3_custom_text) ) ) || ( ( !empty($upload_pf_tab4_images) || !empty($pf_tab4_custom_text) ) && ( !empty($upload_pf_tab4_images) || !empty($pf_tab4_custom_text) ) ) || ( ( !empty($upload_pf_tab4_images) || !empty($pf_tab4_custom_text) ) && ( !empty($upload_pf_tab5_images) || !empty($pf_tab5_custom_text) ) ) // Tab4 || ( ( !empty($upload_pf_tab5_images) || !empty($pf_tab5_custom_text) ) && !empty($pf_gallery_images) ) || ( ( !empty($upload_pf_tab5_images) || !empty($pf_tab5_custom_text) ) && ( !empty($upload_pf_tab2_images) || !empty($pf_tab2_custom_text) ) ) || ( ( !empty($upload_pf_tab5_images) || !empty($pf_tab5_custom_text) ) && ( !empty($upload_pf_tab3_images) || !empty($pf_tab3_custom_text) ) ) || ( ( !empty($upload_pf_tab5_images) || !empty($pf_tab5_custom_text) ) && ( !empty($upload_pf_tab4_images) || !empty($pf_tab4_custom_text) ) ) || ( ( !empty($upload_pf_tab5_images) || !empty($pf_tab5_custom_text) ) && ( !empty($upload_pf_tab5_images) || !empty($pf_tab5_custom_text) ) ) // Tab5 || ( ( !empty($pf_gallery_images) || !empty($pf_tab1_custom_text) || !empty($upload_pf_tab2_images) || !empty($pf_tab2_custom_text) || !empty($upload_pf_tab3_images) || !empty($pf_tab3_custom_text) || !empty($upload_pf_tab4_images) || !empty($pf_tab4_custom_text) || !empty($upload_pf_tab5_images) || !empty($pf_tab5_custom_text) ) && ( ( !empty($pf_model_short_biography) || !empty($pf_model_experience) || !empty($pf_model_talents) ) ) ) ){ echo '<div class="pf_tab_list">'; echo '<ul>'; if( !empty($pf_gallery_images) ){ echo '<li><a href="#image_gallery">'.trim($pf_tab1_title_name).' </a></li>'; } if( !empty($upload_pf_tab2_images) || !empty($pf_tab2_custom_text) ){ echo '<li class="pf_tabs_style"><a href="#pf_tab2">'.esc_attr( $pf_tab2_title_name ).'</a></li>'; } if( !empty($upload_pf_tab3_images) || !empty($pf_tab3_custom_text) ){ echo '<li class="pf_tabs_style"><a href="#pf_tab3">'.esc_attr( $pf_tab3_title_name ).'</a></li>'; } if( !empty($upload_pf_tab4_images) || !empty($pf_tab4_custom_text) ){ echo '<li class="pf_tabs_style"><a href="#pf_tab4">'.esc_attr( $pf_tab4_title_name ).'</a></li>'; } if( !empty($upload_pf_tab5_images) || !empty($pf_tab5_custom_text) ){ echo '<li class="pf_tabs_style"><a href="#pf_tab5">'.esc_attr( $pf_tab5_title_name ).'</a></li>'; } if( !empty($pf_custom_video_urls) ){ echo '<li><a href="#video_gallery">'.trim($pf_videos_tab_name).'</a></li>'; } if( !empty($pf_model_additional_info) || !empty($pf_model_talents) || !empty($pf_model_experience) ){ echo '<li><a href="#model_additional_info">'.trim($pf_short_desc_tab_title).'</a></li>'; } //echo '<li class="pf_tabs_style"><a href="#model_additional_info">'.trim($pf_short_desc_tab_title).'</a></li>'; echo '</ul>'; echo '</div>'; } if( !empty($pf_gallery_images) ){ echo '<div class="portfolio_images_wrapper pf_tab_content '.$gallery_gutter_disable.' '.$enable_pf_gallery_tab1_images.' pf_image_column_'.$select_image_pf_columns.'" id="image_gallery" data-slider="'.$pf_gallery_slider.'" data-margin="'.$slider_margin.'" data-columns="'.$select_image_pf_columns.'" data-auto-play="'.$select_slider_auto_play.'">'; if( $pf_gallery_slider == '1' ){ foreach ($pf_gallery_images as $pf_gallery_image) { echo '<a rel="prettyPhoto[gallery]" href='.$pf_gallery_image['url'].'><img src="'.kaya_thumb($pf_gallery_image['url'], $pf_gallery_img_width, $pf_gallery_img_height, 't').'" alt="'.$pf_gallery_image['name'].'"/></a>'; } }else{ echo '<ul>'; foreach ($pf_gallery_images as $pf_gallery_image) { echo '<li>'; echo '<a rel="prettyPhoto[gallery]" href='.$pf_gallery_image['url'].'><img src="'.kaya_thumb($pf_gallery_image['url'], '600', '600', 't').'" alt="'.$pf_gallery_image['name'].'"/></a>'; echo '</li>'; } echo '</ul>'; } echo '</div>'; } if( !empty($upload_pf_tab2_images) || !empty($pf_tab2_custom_text) ){ // Tab2 echo '<div class="pf_tab_content" id="pf_tab2">'; echo '<div class="portfolio_images_wrapper '.$pf_tab2_gallery_gutter_disable.' '.$enable_pf_gallery_tab2_images.' pf_image_column_'.$pf_tab2_images_columns.'" data-slider="'.$pf_gallery_slider.'" data-margin="'.$slider_margin.'" data-columns="'.$pf_tab2_images_columns.'" data-auto-play="'.$select_slider_auto_play.'">'; if( !empty($upload_pf_tab2_images) ){ if( $pf_gallery_tab2_images == '1' ){ foreach ($upload_pf_tab2_images as $pf_gallery_image) { echo '<a rel="prettyPhoto[gallery]" href='.$pf_gallery_image['url'].'><img src="'.kaya_thumb($pf_gallery_image['url'], $pf_tab2_images_width, $pf_tab2_images_width, 't').'" alt="'.$pf_gallery_image['name'].'"/></a>'; } }else{ echo '<ul>'; foreach ($upload_pf_tab2_images as $pf_gallery_image) { echo '<li>'; echo '<a rel="prettyPhoto[gallery]" href='.$pf_gallery_image['url'].'><img src="'.kaya_thumb($pf_gallery_image['url'], $pf_tab2_images_width, $pf_tab2_images_width, 't').'" alt="'.$pf_gallery_image['name'].'"/></a>'; echo '</li>'; } echo '</ul>'; } } echo '</div>'; if( trim(!empty($pf_tab2_custom_text)) ){ echo '<div class="clear"> </div>'; echo trim(do_shortcode($pf_tab2_custom_text)); } echo '</div>'; } //Tab3 if( !empty($upload_pf_tab3_images) || !empty($pf_tab3_custom_text) ){ // Tab2 echo '<div class="pf_tab_content" id="pf_tab3">'; echo '<div class="portfolio_images_wrapper '.$pf_tab3_gallery_gutter_disable.' '.$enable_pf_gallery_tab3_images.' pf_image_column_'.$pf_tab3_images_columns.'" data-slider="'.$pf_gallery_slider.'" data-margin="'.$slider_margin.'" data-columns="'.$pf_tab3_images_columns.'" data-auto-play="'.$select_slider_auto_play.'">'; if( !empty($upload_pf_tab3_images) ){ if( $pf_gallery_tab3_images == '1' ){ foreach ($upload_pf_tab3_images as $pf_gallery_image) { echo '<a rel="prettyPhoto[gallery]" href='.$pf_gallery_image['url'].'><img src="'.kaya_thumb($pf_gallery_image['url'], $pf_tab3_images_width, $pf_tab3_images_width, 't').'" alt="'.$pf_gallery_image['name'].'"/></a>'; } }else{ echo '<ul>'; foreach ($upload_pf_tab3_images as $pf_gallery_image) { echo '<li>'; echo '<a rel="prettyPhoto[gallery]" href='.$pf_gallery_image['url'].'><img src="'.kaya_thumb($pf_gallery_image['url'], $pf_tab3_images_width, $pf_tab3_images_width, 't').'" alt="'.$pf_gallery_image['name'].'"/></a>'; echo '</li>'; } echo '</ul>'; } } echo '</div>'; if( trim(!empty($pf_tab3_custom_text)) ){ echo '<div class="clear"> </div>'; echo trim(do_shortcode($pf_tab3_custom_text)); } echo '</div>'; } //Tab4 if( !empty($upload_pf_tab4_images) || !empty($pf_tab4_custom_text) ){ // Tab4 echo '<div class="pf_tab_content" id="pf_tab4">'; echo '<div class="portfolio_images_wrapper '.$pf_tab4_gallery_gutter_disable.' '.$enable_pf_gallery_tab4_images.' pf_image_column_'.$pf_tab4_images_columns.'" data-slider="'.$pf_gallery_slider.'" data-margin="'.$slider_margin.'" data-columns="'.$pf_tab4_images_columns.'" data-auto-play="'.$select_slider_auto_play.'">'; if( !empty($upload_pf_tab4_images) ){ if( $pf_gallery_tab4_images == '1' ){ foreach ($upload_pf_tab4_images as $pf_gallery_image) { echo '<a rel="prettyPhoto[gallery]" href='.$pf_gallery_image['url'].'><img src="'.kaya_thumb($pf_gallery_image['url'], $pf_tab4_images_width, $pf_tab4_images_width, 't').'" alt="'.$pf_gallery_image['name'].'"/></a>'; } }else{ echo '<ul>'; foreach ($upload_pf_tab4_images as $pf_gallery_image) { echo '<li>'; echo '<a rel="prettyPhoto[gallery]" href='.$pf_gallery_image['url'].'><img src="'.kaya_thumb($pf_gallery_image['url'], $pf_tab4_images_width, $pf_tab4_images_width, 't').'" alt="'.$pf_gallery_image['name'].'"/></a>'; echo '</li>'; } echo '</ul>'; } } echo '</div>'; if( trim(!empty($pf_tab4_custom_text)) ){ echo '<div class="clear"> </div>'; echo trim(do_shortcode($pf_tab4_custom_text)); } echo '</div>'; } //Tab5 if( !empty($upload_pf_tab5_images) || !empty($pf_tab5_custom_text) ){ // Tab5 echo '<div class="pf_tab_content" id="pf_tab5">'; echo '<div class="portfolio_images_wrapper '.$pf_tab5_gallery_gutter_disable.' '.$enable_pf_gallery_tab5_images.' pf_image_column_'.$pf_tab5_images_columns.'" data-slider="'.$pf_gallery_slider.'" data-margin="'.$slider_margin.'" data-columns="'.$pf_tab5_images_columns.'" data-auto-play="'.$select_slider_auto_play.'">'; if( !empty($upload_pf_tab5_images) ){ if( $pf_gallery_tab5_images == '1' ){ foreach ($upload_pf_tab5_images as $pf_gallery_image) { echo '<a rel="prettyPhoto[gallery]" href='.$pf_gallery_image['url'].'><img src="'.kaya_thumb($pf_gallery_image['url'], $pf_tab5_images_width, $pf_tab5_images_width, 't').'" alt="'.$pf_gallery_image['name'].'"/></a>'; } }else{ echo '<ul>'; foreach ($upload_pf_tab5_images as $pf_gallery_image) { echo '<li>'; echo '<a rel="prettyPhoto[gallery]" href='.$pf_gallery_image['url'].'><img src="'.kaya_thumb($pf_gallery_image['url'], $pf_tab5_images_width, $pf_tab5_images_width, 't').'" alt="'.$pf_gallery_image['name'].'"/></a>'; echo '</li>'; } echo '</ul>'; } } echo '</div>'; if( trim(!empty($pf_tab5_custom_text)) ){ echo '<div class="clear"> </div>'; echo trim(do_shortcode($pf_tab5_custom_text)); } echo '</div>'; } // if(!empty($pf_custom_video_urls)){ echo '<div class="portfolio_video_wrapper pf_tab_content '.$video_gutter_disable.' pf_video_column_'.$select_video_pf_columns.'" id="video_gallery">'; echo '<ul>'; if( $select_pf_video_type == 'pf_video_url' ){ foreach ($pf_video_urls as $pf_video_url) { echo '<li><iframe width="100%" height="315" src="'.trim($pf_video_url).'?rel=0;showinfo=0;" frameborder="0" allowfullscreen></iframe></li>'; } }else{ foreach ($pf_custom_video_urls as $pf_custom_video_url) { if( !empty($pf_custom_video_url) ){ echo '<li>'.trim($pf_custom_video_url).'</li>'; } } } echo '</ul>'; echo '</div>'; } if( !empty($pf_model_additional_info) || !empty($pf_model_talents) || !empty($pf_model_experience) ){ echo '<div class="pf_additional_info pf_tab_content" id="model_additional_info">'; if( ( !empty($pf_model_additional_info) && !empty($pf_model_experience) && !empty($pf_model_talents) ) ){ $class="one_third"; }elseif( ( !empty($pf_model_additional_info) && !empty($pf_model_experience) ) || ( !empty($pf_model_additional_info) && !empty($pf_model_talents) ) || ( !empty($pf_model_experience) && !empty($pf_model_additional_info) ) || ( !empty($pf_model_experience) && !empty($pf_model_talents) ) || ( !empty($pf_model_talents) && !empty($pf_model_additional_info) ) || ( !empty($pf_model_talents) && !empty($pf_model_experience) ) ) { $class="one_half"; } elseif( ( !empty($pf_model_additional_info) || !empty($pf_model_experience) || !empty($pf_model_talents) ) ){ $class="fullwidth"; } if( trim(!empty($pf_model_additional_info)) ): echo '<div class="'.$class.'">'; echo '<div class="description">'; echo do_shortcode($pf_model_additional_info); echo '</div>'; echo '</div>'; endif; if( !empty($pf_model_experience) ): echo '<div class="'.$class.'">'; echo '<div class="description">'; echo do_shortcode($pf_model_experience); echo '</div>'; echo '</div>'; endif; if( !empty($pf_model_talents) ): echo '<div class="'.$class.'">'; echo '<div class="description">'; echo do_shortcode($pf_model_talents); echo '</div>'; echo '</div>'; endif; } echo '</div>'; echo '<div class="clear"> </div>'; } $custom_pf_options = get_option('pf_custom_options'); $prefix = 'pf_model_'; unset($custom_pf_options['pf_meta_label_name'][0]); $count = count($custom_pf_options['pf_meta_label_name'])-1; if( $count > 0 ){ echo '<div class="pf_model_info_wrapper"><ul>'; for ($i=0; $i < count($custom_pf_options['pf_meta_label_name']); $i++) { if( ( !empty($custom_pf_options['pf_meta_label_name'][$i]) ) && ( $custom_pf_options['pf_meta_label_name'][$i] != 'Array') && ( $custom_pf_options['pf_meta_label_name'][$i] != '') && ( !is_array($custom_pf_options['pf_meta_label_name'][$i]) )){ $options_data_id = $prefix.str_replace(array(' ', ',','-', '/', '___'), '_', trim(strtolower($custom_pf_options['pf_meta_label_uid'][$i]))); if( $custom_pf_options['pf_meta_field_name'][$i] == 'checkbox' ){ $meta_data = get_post_meta(get_the_ID(), $options_data_id , false); }else{ $meta_data = get_post_meta(get_the_ID(), $options_data_id , true); } if( !empty( $meta_data) ){ if( $custom_pf_options['pf_meta_field_name'][$i] == 'date' ){ $option_value = gilda_kaya_dob_cal($meta_data, $custom_pf_options['pf_meta_field_date_format'][$i]); }elseif( $custom_pf_options['pf_meta_field_name'][$i] == 'checkbox' ){ $option_value = implode(',', $meta_data); }else{ $option_value = str_replace('.', "'", $meta_data); } if(is_user_logged_in ()){ echo '<li><strong>'.trim($custom_pf_options['pf_meta_label_name'][$i]).' : </strong><span>'.$option_value.'</span></li>'; }else{ $secure_class = ( $custom_pf_options['pf_secure_data'][$i] != 'true' ) ? 'blur_text' : ''; echo '<li><strong>'.trim($custom_pf_options['pf_meta_label_name'][$i]).' : </strong><span class="'.$secure_class.'">'.$option_value.'</span></li>'; } } } } echo '</ul></div>'; } // Back to page if( $disable_back_to_page != '1' ){ $pf_back_to_page = trim(!empty($pf_back_to_page_text)) ? $pf_back_to_page_text : '<i class="fa fa-th"> </i>'; echo '<span class="pf_back_to_page"><a href="javascript: history.go(-1)" title="'.esc_html__('Back to page','julia').'">'.$pf_back_to_page.'</a></span>'; } ?> <?php endwhile; endif; echo '</div>'; //content wrapper wp_reset_query(); if( $pf_enable_facebook_comments == '1' ){ ?> <div class="facebook_comment_section"> <div class="fb-comments" data-href="<?php the_permalink() ?>" data-num-posts="5" data-width="100%" data-colorscheme="<?php echo $pf_select_comment_colors; ?>" data-mobile="false"></div> </div> <?php } //wp_reset_query(); // Commtent Section $comment_status = get_post_meta($post->ID,'comment_status', false); if( $comment_status != "1") { } ?> </div> <!-- Sidebar Section --> <?php if( $sidebar_layout !='full' ){ ?> <aside class="<?php echo $aside_class; ?>"> <!--Start Sidebar Section --> <?php get_sidebar(); ?> </aside> <!--End Sidebar Section --> <?php } // Related Post Section if($relatedpost=='1') { //kaya_relatedpost($post->ID); } //Social Share Icons if( ( $pf_disable_facebook_icon != '1' ) || ( $pf_disable_twitter_icon != '1' ) || ( $pf_disable_google_plus_icon != '1' ) || ( $pf_disable_linkedin_icon != '1' ) || ( $pf_disable_pinterest_icon != '1' ) || ( $pf_disable_stumbleupon_icon != '1' ) || ( $pf_disable_digg_icon != '1' ) || ( $pf_disable_email_icon != '1' ) ){ ?> <div class="pf_social_share_icons"> <span class="share_on_msg"><?php _e('Share','gilda') ?></span> <ul> <li class="social_share_on"><a href="#"><i class="fa fa-share-alt"></i></a></li> <?php if( $pf_disable_facebook_icon != '1' ){ ?> <li class="social_sharing_icons"><a href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" title="<?php _e('Share on Facebook', 'gilda'); ?>"><i class="fa fa-facebook"></i></a></li> <?php } if( $pf_disable_twitter_icon != '1' ){ ?> <li class="social_sharing_icons"><a href="http://twitter.com/home/?status=<?php the_title(); ?> - <?php the_permalink(); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" title="<?php _e('Tweet this!','gilda'); ?>"><i class="fa fa-twitter"></i></a></li> <?php } if( $pf_disable_google_plus_icon != '1' ){ ?> <li class="social_sharing_icons"><a href="https://plus.google.com/share?url=<?php the_permalink(); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><i class="fa fa-google-plus"></i></a></li> <?php } if( $pf_disable_linkedin_icon != '1' ){ ?> <li class="social_sharing_icons"><a href="http://www.linkedin.com/shareArticle?mini=true&title=<?php the_title(); ?>&url=<?php the_permalink(); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" title="<?php _e('Share on LinkedIn','gilda'); ?>"><i class="fa fa-linkedin"></i></a></li> <?php } if( $pf_disable_pinterest_icon != '1' ){ ?> <li class="social_sharing_icons"><a href="http://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&media=<?php $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); echo $url; ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;"><i class="fa fa-pinterest-p"></i></a></li> <?php } if( $pf_disable_stumbleupon_icon != '1' ){ ?> <li class="social_sharing_icons"><a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" title="<?php _e('Stumble it','gilda'); ?>"><i class="fa fa-stumbleupon"></i></a></li> <?php } if( $pf_disable_digg_icon != '1' ){ ?> <li class="social_sharing_icons"><a href="http://digg.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" title="<?php _e('Digg this!','gilda'); ?>"><i class="fa fa-digg"></i></a></li> <?php } if($pf_disable_email_icon != '1'){ ?> <li class="social_sharing_icons user_email_form"><a href="#"><i class="fa fa-envelope"></i></a></li> <div class="user_send_email_post"> <div class="success_result" style="display:none;"></div> <input type="hidden" name="user_post_link" id="user_post_link" value="<?php echo get_permalink(); ?>" /> <p><input type="text" name="user_email" id="user_email" value="" placeholder="<?php echo trim($change_your_email_address_text); ?>" /></p> <p><input type="text" name="user_name" id="user_name" value="" placeholder="<?php echo trim($change_your_name_text); ?>" /></p> <p><input type="text" name="receiver_email" id="receiver_email" value="" placeholder="<?php echo trim($change_send_email_text); ?>" /></p> <input type="submit" id="send_mail_to_post" class="user_profile_button" value= "<?php echo trim($change_form_submit_button_text); ?>" /><img class="mail_form_load_img" style="display:none" src="<?php echo get_template_directory_uri(); ?>/images/ajax-loader.GIF" class="" /> </div> <?php } ?> </ul> </div> <?php } ?> </div> <?php get_footer(); ?>
Просмотр 2 ответов — с 1 по 2 (всего 2)
Просмотр 2 ответов — с 1 по 2 (всего 2)
- Тема «Убрать кнопки share и комментарии facebook» закрыта для новых ответов.