Beispiel #1
0
   /**
    * Displays a help block about featured images for single posts
    * hook : __before_content
    * @since Customizr 3.4
    */
   function tc_maybe_display_featured_image_help()
   {
       if (!TC_placeholders::tc_is_thumbnail_help_on()) {
           return;
       }
       ?>
 <div class="tc-placeholder-wrap tc-thumbnail-help">
   <?php 
       printf('<p><strong>%1$s</strong></p><p>%2$s</p><p>%3$s</p>', __("You can display your post's featured image here if you have set one.", "customizr"), sprintf(__("%s to display a featured image here.", "customizr"), sprintf('<strong><a href="%1$s" title="%2$s">%2$s</a></strong>', TC_utils::tc_get_customizer_url(array("section" => "single_posts_sec")), __("Jump to the customizer now", "customizr"))), sprintf(__("Don't know how to set a featured image to a post? Learn how in the %s.", "customizr"), sprintf('<a href="%1$s" title="%2$s" target="_blank">%2$s</a><span class="tc-external"></span>', esc_url('codex.wordpress.org/Post_Thumbnails#Setting_a_Post_Thumbnail'), __("WordPress documentation", "customizr"))));
       printf('<a class="tc-dismiss-notice" href="#" title="%1$s">%1$s x</a>', __('dismiss notice', 'customizr'));
       ?>
 </div>
 <?php 
   }