/** * 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; }
/** * 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); }