Home Forums HashOne can you please provide me code for section-team.php or add missing anchor link

  • This topic has 1 reply, 2 voices, and was last updated 7 years ago by Hash.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2585
    allona
    Participant

    can you please provide me code for section-team.php or add missing anchor link in below code where i mentioned MISSING ANCHOR CODE: by mistakenly i deleted anchor tag and now team section is messed up

    please reply me asap

    <?php
    /**
    *
    * @package Total
    */

    if(get_theme_mod(‘total_team_section_disable’) != ‘on’ ){ ?>
    <section id=”ht-team-section” class=”ht-section”>
    <div class=”ht-container”>
    <?php
    $total_team_title = get_theme_mod(‘total_team_title’);
    $total_team_sub_title = get_theme_mod(‘total_team_sub_title’);
    ?>
    <?php if( $total_team_title || $total_team_sub_title ){ ?>
    <div class=”ht-section-title-tagline”>
    <?php if($total_team_title){ ?>
    <h2 class=”ht-section-title”><?php echo esc_html($total_team_title); ?></h2>
    <?php } ?>

    <?php if($total_team_sub_title){ ?>
    <div class=”ht-section-tagline”><?php echo esc_html($total_team_sub_title); ?></div>
    <?php } ?>
    </div>
    <?php } ?>

    <div class=”ht-team-member-wrap ht-clearfix”>
    <?php
    for( $i = 1; $i < 5; $i++ ){
    $total_team_page_id = get_theme_mod(‘total_team_page’.$i);
    $total_team_page_icon = get_theme_mod(‘total_team_page_icon’.$i);

    if($total_team_page_id){
    $args = array( ‘page_id’ => absint($total_team_page_id) );
    $query = new WP_Query($args);
    if($query->have_posts()):
    while($query->have_posts()) : $query->the_post();
    $total_image = wp_get_attachment_image_src(get_post_thumbnail_id(),’total-team-thumb’);
    $total_team_designation =
    get_theme_mod(‘total_team_designation’.$i);
    $total_team_facebook = get_theme_mod(‘total_team_facebook’.$i);
    $total_team_twitter = get_theme_mod(‘total_team_twitter’.$i);
    $total_team_google_plus = get_theme_mod(‘total_team_google_plus’.$i);
    ?>
    <div class=”ht-team-member”>

    <div class=”ht-team-member-image”>
    <?php if( has_post_thumbnail() ){
    $image_url = $total_image[0];
    }else{
    $image_url = get_template_directory_uri().’/images/team-thumb.png’;
    } ?>

    ” alt=”<?php the_title(); ?>” />
    <div class=”ht-title-wrap”>
    <h6><?php the_title(); ?></h6>
    </div>

    Missing anchor link
    <div class=”ht-team-member-excerpt-wrap”>
    <div class=”ht-team-member-span”>
    <h6><?php the_title(); ?></h6>

    <?php if($total_team_designation){ ?>
    <div class=”ht-team-designation”><?php echo esc_html($total_team_designation); ?></div>
    <?php }

    if(has_excerpt()){
    echo get_the_excerpt();
    }else{
    echo total_excerpt( get_the_content() , 100 );
    }
    ?>
    <!—- <div class=”ht-team-detail”><?php _e(‘Detail’, ‘total’) ?></div> —>
    </div>
    </div>

    </div>

    <?php if( $total_team_facebook || $total_team_twitter || $total_team_google_plus ){ ?>
    <div class=”ht-team-social-id”>
    <?php if($total_team_facebook){ ?>
    “><i class=”fa fa-facebook”></i>
    <?php } ?>

    <?php if($total_team_twitter){ ?>
    “><i class=”fa fa-twitter”></i>
    <?php } ?>

    <?php if($total_team_google_plus){ ?>
    “><i class=”fa fa-google-plus”></i>
    <?php } ?>
    </div>
    <?php } ?>
    </div>

    <?php
    endwhile;
    endif;
    wp_reset_postdata();
    }
    }
    ?>
    </div>
    </div>
    </section>
    <?php }

    #2648
    Hash
    Keymaster
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.