Exemple #1
0
<?php

/**
 * 728x90 box view for Editorial Interface for Admin pages (only)
 *
 * @package Travel-Search
 * @subpackage Admin Controller for Editorial Interface
 * @author Travelgrove Labs (http://labs.travelgrove.com/)
 * @since 1.0
 */
// no direct loading of this file
if (!defined('TG_SEARCHBOXES_ABSPATH')) {
    exit;
}
require_once TG_SEARCHBOXES_ABSPATH . 'classes/tgSearchboxesRenderer.class.php';
$atts = array('options' => '{"size":"728x90", "ajaxSettings":true}');
$tgSearchboxesRenderer = new tgSearchboxesRenderer($this, $atts);
echo $tgSearchboxesRenderer->renderSearchboxes();
 /**	handle shortcodes via renderer class	*/
 function tg_searchboxes_handle_tg_shortcode($attr)
 {
     /**	init the renderer w/ the params. found in the source, by WP fn.	*/
     $tgSearchboxesRenderer = new tgSearchboxesRenderer($this, $attr);
     // return the generated searchbox
     return $tgSearchboxesRenderer->renderSearchboxes();
 }