/**
  * Displays a help block about images smartload for single posts prepended to the content
  * hook : the_content
  * @since Customizr 3.4+
  */
 function tc_maybe_display_img_smartload_help($the_content)
 {
     if (!($this->tc_page_display_controller() && in_the_loop() && TC_placeholders::tc_is_img_smartload_help_on($the_content))) {
         return $the_content;
     }
     return TC_placeholders::tc_print_smartload_help_block() . $the_content;
 }
   /**
    * hook : __after_fp
    * @since v3.4+
    */
   function tc_maybe_display_dismiss_notice()
   {
       if (!TC_placeholders::tc_is_fp_notice_on()) {
           return;
       }
       $_customizer_lnk = TC_utils::tc_get_customizer_url(array('section' => 'frontpage_sec'));
       ?>
 <div class="tc-placeholder-wrap tc-fp-notice">
   <?php 
       printf('<p><strong>%1$s</strong></p>', sprintf(__("Edit those featured pages %s, or %s (you'll be able to add yours later).", "customizr"), sprintf('<a href="%3$s" title="%1$s">%2$s</a>', __("Edit those featured pages", "customizr"), __("now", "customizr"), $_customizer_lnk), sprintf('<a href="#" class="tc-inline-remove" title="%1$s">%2$s</a>', __("Remove the featured pages", "customizr"), __("remove them", "customizr"))));
       printf('<a class="tc-dismiss-notice" href="#" title="%1$s">%1$s x</a>', __('dismiss notice', 'customizr'));
       ?>
 </div>
 <?php 
   }
   /**
    * Displays the placeholder view if conditions are met in TC_placeholders::tc_is_second_menu_placeholder_on()
    * fired in tc_menu_display(), hook : __navbar
    * @since Customizr 3.4
    */
   function tc_maybe_display_second_menu_placeholder()
   {
       if (!TC_placeholders::tc_is_second_menu_placeholder_on()) {
           return;
       }
       ?>
 <div class="nav-collapse collapse tc-placeholder-wrap tc-menu-placeholder">
   <?php 
       printf('<p><strong>%1$s<br/>%2$s</strong></p>', __("You can display your main menu or a second menu here horizontally.", "customizr"), sprintf(__("%s or read the %s.", "customizr"), sprintf('<a href="%1$s" title="%2$s">%3$s</a>', TC_utils::tc_get_customizer_url(array("section" => "nav")), __("Manage menus in the header", "customizr"), __("Manage your menus in the header now", "customizr")), sprintf('<a href="%1$s" title="%2$s" target="blank">%2$s</a><span class="tc-external"></span>', esc_url('http://docs.presscustomizr.com/article/101-customizr-theme-options-header-settings/#navigation'), __("documentation", "customizr"))));
       printf('<a class="tc-dismiss-notice" href="#" title="%1$s">%1$s x</a>', __('dismiss notice', 'customizr'));
       ?>
 </div>
 <?php 
   }
   /**
    * When do we display this placeholder ?
    * -User logged in
    * -Admin
    * -User did not dismiss the notice
    * @param : string position left or right
    * @since Customizr 3.3
    */
   private function tc_display_footer_placeholder()
   {
       if (!TC_placeholders::tc_is_widget_placeholder_enabled('footer')) {
           return;
       }
       ?>
 <aside class="tc-placeholder-wrap tc-widget-placeholder">
   <?php 
       printf('<span class="tc-admin-notice">%1$s</span>', __('This block is visible for admin users only.', 'customizr'));
       printf('<h4>%1$s</h4>', __('The footer has no widgets', 'customizr'));
       printf('<p><strong>%1$s</strong></p>', sprintf(__("Add widgets to the footer %s or %s.", "customizr"), sprintf('<a href="%1$s" title="%2$s">%3$s</a>', TC_utils::tc_get_customizer_url(array('panel' => 'widgets')), __("Add widgets", "customizr"), __("now", "customizr")), sprintf('<a class="tc-inline-dismiss-notice" data-position="footer" href="#" title="%1$s">%1$s</a>', __('dismiss this notice', 'customizr'))));
       printf('<a class="tc-dismiss-notice" data-position="footer" href="#" title="%1$s">%1$s x</a>', __('dismiss notice', 'customizr'));
       ?>
 </aside>
 <?php 
   }
 /**
  * Displays a help block about images smartload for list of posts before the actual list
  * hook : __before_loop
  * @since Customizr 3.4+
  */
 function tc_maybe_display_img_smartload_help($the_content)
 {
     if (!($this->tc_post_list_controller() && TC_placeholders::tc_is_img_smartload_help_on($text = '', $min_img_num = 0))) {
         return;
     }
     TC_placeholders::tc_get_smartload_help_block($echo = true);
 }
   /**
    * Displays the placeholder view if conditions are met in TC_placeholders::tc_is_second_menu_placeholder_on()
    * fired in tc_menu_display(), hook : __navbar
    * @since Customizr 3.4
    */
   function tc_maybe_display_second_menu_placeholder()
   {
       if (!TC_placeholders::tc_is_second_menu_placeholder_on()) {
           return;
       }
       ?>
 <div class="nav-collapse collapse tc-placeholder-wrap tc-menu-placeholder">
   <?php 
       printf('<p><strong>%1$s %2$s</strong></p>', __("You can display another menu here.", "customizr"), sprintf(__("Setup this menu %s or read the %s.", "customizr"), sprintf('<a href="%1$s" title="%2$s">%3$s</a>', TC_utils::tc_get_customizer_url(array("section" => "nav")), __("Add a menu", "customizr"), __("now", "customizr")), sprintf('<a href="%1$s" title="%2$s" target="blank">%2$s</a><span class="tc-external"></span>', esc_url('doc.presscustomizr.com/customizr/header-options/#navigation'), __("documentation", "customizr"))));
       printf('<a class="tc-dismiss-notice" href="#" title="%1$s">%1$s x</a>', __('dismiss notice', 'customizr'));
       ?>
 </div>
 <?php 
   }
     /**
      * hook : __after_carousel_inner
      * @since v3.4+
      */
     function tc_maybe_display_dismiss_notice()
     {
         if (!TC_placeholders::tc_is_slider_notice_on()) {
             return;
         }
         $_customizer_lnk = TC_utils::tc_get_customizer_url(array('control' => 'tc_front_slider', 'section' => 'frontpage_sec'));
         ?>
 <div class="tc-placeholder-wrap tc-slider-notice">
   <?php 
         printf('<p><strong>%1$s</strong></p>', sprintf(__("Select your own slider %s, or %s (you'll be able to add one back later).", "customizr"), sprintf('<a href="%3$s" title="%1$s">%2$s</a>', __("Select your own slider", "customizr"), __("now", "customizr"), $_customizer_lnk), sprintf('<a href="#" class="tc-inline-remove" title="%1$s">%2$s</a>', __("Remove the home page slider", "customizr"), __("remove this demo slider", "customizr"))));
         printf('<a class="tc-dismiss-notice" href="#" title="%1$s">%1$s x</a>', __('dismiss notice', 'customizr'));
         ?>
 </div>
 <?php 
     }
 /**
  * When do we display this placeholder ?
  * User logged in
  * + Admin
  * + User did not dismissed the notice
  * @param : string position left or right
  * @since Customizr 3.3
  */
 private function tc_display_sidebar_placeholder($position)
 {
     if (!TC_placeholders::tc_is_widget_placeholder_enabled('sidebar')) {
         return;
     }
     ?>
 <aside class="tc-placeholder-wrap tc-widget-placeholder">
   <?php 
     printf('<span class="tc-admin-notice">%1$s</span>', __('This block is visible for admin users only.', 'customizr'));
     printf('<h4>%1$s</h4>', sprintf(__('The %s sidebar has no widgets.', 'customizr'), $position));
     printf('<p><strong>%1$s</strong></p>', sprintf(__("Add widgets to this sidebar %s or %s.", "customizr"), sprintf('<a href="%1$s" title="%2$s">%3$s</a>', TC_utils::tc_get_customizer_url(array('panel' => 'widgets')), __("Add widgets", "customizr"), __("now", "customizr")), sprintf('<a class="tc-inline-dismiss-notice" data-position="sidebar" href="#" title="%1$s">%1$s</a>', __('dismiss this notice', 'customizr'))));
     printf('<p><i>%1s <a href="http:%2$s" title="%3$s" target="blank">%4$s</a></i></p>', __('You can also remove this sidebar by changing the current page layout.', 'customizr'), '//docs.presscustomizr.com/customizr/content-options/#pages-and-posts-layout', __('Changing the layout in the Customizr theme', 'customizr'), __('See the theme documentation.', 'customizr'));
     printf('<a class="tc-dismiss-notice" data-position="sidebar" href="#" title="%1$s">%1$s x</a>', __('dismiss notice', 'customizr'));
     ?>
 </aside>
 <?php 
 }
   /**
    * 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 
   }