403Webshell
Server IP : 66.29.132.124  /  Your IP : 18.226.187.60
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/tacafoundation.org/wp-content/plugins/charite-core/inc/widgets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/tacafoundation.org/wp-content/plugins/charite-core/inc/widgets/search.php
<?php
// Control core classes for avoid errors
if (class_exists('CSF')) {

  //
  // Recent widget
  //
  CSF::createWidget('search_widget', array(
    'title'       => esc_html__('Charite Search Widget', 'charite-core'),
    'classname'   => 'widget_catagory',
    'description' => esc_html__('Add Search Widget', 'charite-core'),
    'fields'      => array(
      array(
        'id'      => 'title', //title
        'type'    => 'text',
        'title'   => esc_html__('Search Causes', 'charite-core'),
        'default' => esc_html__('Search Causes', 'charite-core')
      ),
    )
  ));

  //
  // Front-end display of widget example 1
  // Attention: This function named considering above widget base id.
  //
  if (!function_exists('search_widget')) {
    function search_widget($args, $instance)
    {

      echo $args['before_widget'];
?>
      <div class="widget widget_search">
        <?php if (!empty($instance['title'])) {
          echo $args['before_title'] . apply_filters('widget_title', $instance['title']) . $args['after_title'];
        } ?>
        <form class="search-form" action="/" method="get">
          <div class="form-group">
            <input type="text" name="s" id="search" placeholder="<?php echo esc_attr__("Search key word", 'charite-core') ?>" value="<?php the_search_query(); ?>" />
          </div>
          <button class="submit-btn" type="submit"><i class="flaticon-magnifying-glass"></i></button>
        </form>
      </div>
<?php
      echo $args['after_widget'];
    }
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit