當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ts_sticky_badge函數代碼示例

本文整理匯總了PHP中ts_sticky_badge函數的典型用法代碼示例。如果您正苦於以下問題:PHP ts_sticky_badge函數的具體用法?PHP ts_sticky_badge怎麽用?PHP ts_sticky_badge使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了ts_sticky_badge函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: absint

                                    <?php 
            }
        }
        ?>
  
                                </div> 
                                <div class="title-date clearfix">
                                    <div class="title-info">                                    
                                        <h<?php 
        echo absint($title_size->h);
        ?>
 class="title-h entry-title <?php 
        echo esc_attr($text_align);
        ?>
"><?php 
        echo ts_sticky_badge();
        ?>
<a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a></h<?php 
        echo absint($title_size->h);
        ?>
>
                                    </div>
                                </div>    
                                                         
                                <?php 
開發者ID:estvmachine,項目名稱:nicowp,代碼行數:31,代碼來源:loop.php

示例2: esc_attr

             }
             echo '<div class="fluid-width-video-wrapper"><div>';
             echo '<iframe id="' . esc_attr($video_service . '-' . $slider->post->ID . '-' . $rand_id) . '" src="' . esc_url($video_src) . '" width="' . absint($w) . '" ' . $img_height . ' data-videoid="' . esc_attr($video_id) . '" class="' . esc_attr($iframe_class) . '" allowFullScreen webkitAllowFullScreen></iframe>';
             echo '</div></div>' . "\n";
         }
         if ($img) {
             echo strip_tags($link_begin, '<a>');
             echo $ts_slider_type == 'flex' && $slider_width_class == 'full' ? '' : strip_tags($img_html, '<a><img>');
             if ((trim($title) || trim($descr)) && $hide_text != '1') {
                 echo '<div class="ts-item-details">' . "\n";
                 echo $ts_slider_type == 'flex' && $w == 1360 ? '<div class="ts-item-details-inner container">' . "\n" : '<div class="ts-item-details-inner">' . "\n";
                 if ($ts_slider_source == 'portfolio') {
                     echo '<h' . absint($title_size) . ' class="portfolio-title title text-' . esc_attr($slider_text_align) . ' color-white">' . esc_html($title) . '</h' . absint($title_size) . '>' . "\n";
                     echo trim($meta) ? '<p class="portfolio-meta color-shortcode white text-' . esc_attr($slider_text_align) . '">' . strip_tags($meta, '<span>') . '</p>' . "\n" : '';
                 } else {
                     echo '<h' . absint($title_size) . ' class="blog-title title text-' . esc_attr($slider_text_align) . ' color-white">' . ts_sticky_badge() . esc_html($title) . '</h' . absint($title_size) . '>' . "\n";
                     echo '<p class="blog-meta text-' . esc_attr($slider_text_align) . '">' . strip_tags($meta, '<span>') . '</p>' . "\n";
                 }
                 echo '</div></div>' . "\n";
             }
             echo strip_tags($link_end, '<a>');
         }
         echo '</li>' . "\n";
     }
 }
 echo '</ul>' . "\n";
 echo '<span class="pause-slider smaller uppercase bg-primary"><i class="fa fa-pause"></i> ' . __('Pause', 'ThemeStockyard') . '</span>' . "\n";
 echo '<span class="play-slider smaller uppercase bg-primary"><i class="fa fa-play"></i> ' . __('Resume', 'ThemeStockyard') . '</span>' . "\n";
 echo '</div>' . "\n";
 echo '<div class="ts-main-flex-nav"></div>' . "\n";
 echo '</div>' . "\n";
開發者ID:sekane81,項目名稱:ratoninquietoweb,代碼行數:31,代碼來源:carousel-flex-slider.php


注:本文中的ts_sticky_badge函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。