Ejemplo n.º 1
0
 function display_postfloat($content)
 {
     //
     $links_before = "";
     $links_after = "";
     $display_key = "postfloat";
     $float_onsingle_only = ESSBOptionValuesHelper::options_bool_value($this->options, 'float_onsingle_only');
     if ($float_onsingle_only) {
         if (is_archive() || is_front_page() || is_search() || is_tag() || is_post_type_archive() || is_home()) {
             $display_key = "top";
         }
     }
     $post_types = $this->general_options['display_in_types'];
     if ($this->check_applicability($post_types, $display_key)) {
         $links_before = $this->generate_share_buttons($display_key);
         essb_resource_builder()->add_js(ESSBResourceBuilderSnippets::js_build_generate_postfloat_reveal_code(), true, 'essb-postfloat-code');
     }
     return $links_before . $content;
 }