">Whishlist</a> <?php } ?> </div> <div class="collection_desc clearfix"> <a href="<?php the_permalink(); ?> " class="collection_title"> <h3><?php the_title(); ?> </h3> <p class="short_desc"><?php echo accesspress_letter_count(get_the_excerpt(), 20); ?> </p> </a> <div class="price-cart"> <?php /** * woocommerce_after_shop_loop_item_title hook * * @hooked woocommerce_template_loop_rating - 5 * @hooked woocommerce_template_loop_price - 10 */ do_action('woocommerce_after_shop_loop_item_title'); /** * woocommerce_after_shop_loop_item hook *
/ <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> </p> </div><!-- .entry-meta --> <?php } ?> </header><!-- .entry-header --> <div class="entry-content"> <div class="desc"> <?php if ($blog_post_layout == 'blog_layout4') { echo get_the_content(); } else { echo accesspress_letter_count(get_the_content(), '200'); } ?> </div> <a href="<?php the_permalink(); ?> " class="bttn read-more"> <?php echo __('Read More', 'accesspress-store'); ?> </a> <?php wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'accesspress-store'), 'after' => '</div>')); ?> </div><!-- .entry-content -->
function accesspress_slidercb() { $accesspress_show_slider = get_theme_mod('show_slider'); $accesspress_show_caption = get_theme_mod('show_caption'); if ($accesspress_show_slider == 1) { ?> <section id="main-slider"> <div class="bx-slider"> <?php for ($i = 1; $i <= 5; $i++) { $slider_post = get_theme_mod('slider_' . $i . '_post'); $slider_button_text = get_theme_mod('slider' . $i . '_button_text'); $slider_button_link = get_theme_mod('slider' . $i . '_button_link'); if (!empty($slider_post)) { ?> <div class="slides"> <?php $args = array('post__in' => array($slider_post)); $query1 = new WP_Query($args); while ($query1->have_posts()) { $query1->the_post(); $image = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'full', true); ?> <img src="<?php echo esc_url($image[0]); ?> " alt="<?php echo esc_attr(the_title()); ?> "/> <?php if ($accesspress_show_caption == '1') { ?> <div class="slider-caption"> <div class="ak-container"> <div class="caption-content-wrapper"> <h2 class="caption-title"><?php echo esc_attr(the_title()); ?> </h2> <div class="caption-content"> <?php echo accesspress_letter_count(get_the_content(), '165'); ?> </div> </div> <?php if ($slider_button_text) { ?> <a class="caption-read-more1" href="<?php echo esc_url($slider_button_link); ?> "><?php echo esc_attr($slider_button_text); ?> </a> <?php } ?> </div> </div> <?php } ?> <?php } wp_reset_postdata(); ?> </div> <?php } ?> <?php } ?> </div> <?php } ?> </section> <?php }
function accesspress_mag_homepage_excerpt() { global $post; $excerpt_type = of_get_option('home_excerpt_type', ' '); $excerpt_length = of_get_option('home_excerpt_lenght', '30'); $excerpt_content = get_the_content($post->ID); if ($excerpt_type == 'letters' && !empty($excerpt_type)) { $excerpt_content = accesspress_letter_count($excerpt_content, $excerpt_length); } else { $excerpt_content = accesspress_word_count($excerpt_content, $excerpt_length); } echo '<p>' . esc_html($excerpt_content) . '</p>'; }