function widget($args, $widgetData)
 {
     extract($args);
     //=======> Our variables from the widget settings.
     $documentate_widget_search_title = $widgetData['txtKbeSearchHeading'];
     //=======> widget body
     echo $before_widget;
     echo '<div class="documentate_widget">';
     if ($documentate_widget_search_title) {
         echo '<h2>' . $documentate_widget_search_title . '</h2>';
     }
     get_document_search_form();
     echo "</div>";
     echo $after_widget;
 }
Example #2
0
<?php

/**
 * Search Section
 *
 * @author      helgatheviking
 * @package 	Documentate/Templates
 * @version     0.1-beta
 */
if (!defined('ABSPATH')) {
    exit;
    // Exit if accessed directly
}
if (documentate_get_option('search_setting') == 'show') {
    ?>
	<div class="documentate-search">
		<?php 
    get_document_search_form();
    ?>
	</div>
	<?php 
}