= 3) { self::display_results(); } else if (isset($_POST['stext'])) { self::display_noResults(); } } /** * Template for search form * * @return string */ public static function render_search() { // Developer's option - mutate this string to output your template if (self::$render_search) { return self::$render_search; } // Designer's option - make a design a HTML in render_search() function in your theme if (function_exists('render_search')) { return (string)render_search(); } // Default return fusion_get_function('opentable', "{%title%}")."
{%search_text%}
{%search_method%} {%search_button%}
".fusion_get_function('closetable'); } /** * Template for search no results when stext is less than 3 * * @return string */ public static function render_search_no_result() { if (self::$search_no_result) { return self::$search_no_result; } if (function_exists('render_search_no_result')) { return (string)render_search_no_result(); } return fusion_get_function('opentable', '{%title%}')."
{%content%}
\n".fusion_get_function('closetable'); } /** * Template for search result item counting * * @return string */ public static function render_search_count() { if (self::$search_count) { return self::$search_count; } if (function_exists('render_search_count')) { return (string)render_search_count(); } return "
{%search_count%}{%result_text%}
"; } /* * Template for search Simple Items */ public static function render_search_item($new_window = FALSE) { if (function_exists('render_search_item')) { return (string)self::render_search_item($new_window); } return "
  • {%item_image%}
    {%item_title%}
    {%item_description%}
  • "; } /* * Template for search Full Listing Item Type */ public static function render_search_item_list() { if (self::$search_item_list) { return self::$search_item_list; } if (function_exists('render_search_item_list')) { return (string)self::render_search_item_list(); } return "
  • {%item_image%}
    {%item_title%}
    {%item_description%} {%item_search_context%} {%item_search_criteria%}
  • "; } /** * Template for search Image Listing Item Type * * @return string */ public static function render_search_item_image() { if (self::$search_item_image) { return self::$search_item_image; } if (function_exists('render_search_item_image')) { return (string)self::render_search_item_image(); } return "
  • {%item_image%}
  • "; } /** * Template for each search module results * * @return string */ public static function render_search_item_wrapper() { if (self::$search_item_wrapper) { return self::$search_item_wrapper; } if (function_exists('render_search_item_wrapper')) { return (string)render_search_item_wrapper(); } return "

    {%image%} {%search_title%}

    ".THEME_BULLET." {%search_result%}
    "; } }