HEX
Server: nginx/1.28.0
System: Linux yisu-68a5f20334161 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: www (1000)
PHP: 8.2.28
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/q.autos58.cn/wp-content/themes/morenews/inc/hooks/blocks/block-banner-tabs.php
<div class="af-main-banner-tabbed-posts aft-posts-tabs-panel">
  <div class="section-wrapper">
    <div class="small-grid-style clearfix">
      <?php
      // wp_enqueue_style('bootstrap');
      // wp_enqueue_script('bootstrap');
      $dir = 'ltr';
      if (is_rtl()) {
        $dir = 'rtl';
      }
      $tab_id = 'aft-main-banner-latest-trending-popular';

      $latest_title = morenews_get_option('main_latest_news_section_title');
      $latest_post_filterby = morenews_get_option('select_banner_latest_post_filterby');
      $latest_category = 0;
      if ($latest_post_filterby == 'tag') {
        $latest_category = morenews_get_option('select_latest_post_tag');
      } elseif ($latest_post_filterby == 'cat') {
        $latest_category = morenews_get_option('select_banner_latest_post_category');
      }

      $popular_title = morenews_get_option('main_popular_news_section_title');
      $popular_post_filterby = morenews_get_option('select_popular_post_filterby');
      $popular_category = 0;
      if ($popular_post_filterby == 'tag') {
        $popular_category = morenews_get_option('select_popular_post_tag');
      } elseif ($popular_post_filterby == 'cat') {
        $popular_category = morenews_get_option('select_popular_post_category');
      }

      $update_title = morenews_get_option('main_update_news_section_title');
      $update_post_filterby = morenews_get_option('select_update_post_filterby');
      $update_category = 0;
      if ($update_post_filterby == 'tag') {
        $update_category = morenews_get_option('select_update_post_tag');
      } elseif ($update_post_filterby == 'cat') {
        $update_category = morenews_get_option('select_update_post_category');
      }

      $number_of_posts = 4;

      $latest_color_class = '';
      if (absint($latest_category) > 0) {
        $color_id = "category_color_" . $latest_category;
        // retrieve the existing value(s) for this meta field. This returns an array
        $term_meta = get_option($color_id);
        $latest_color_class = ($term_meta) ? $term_meta['color_class_term_meta'] : 'category-color-1';
      }

      $popular_color_class = '';
      if (absint($popular_category) > 0) {
        $color_id = "category_color_" . $popular_category;
        // retrieve the existing value(s) for this meta field. This returns an array
        $term_meta = get_option($color_id);
        $popular_color_class = ($term_meta) ? $term_meta['color_class_term_meta'] : 'category-color-1';
      }

      $update_color_class = '';
      if (absint($update_category) > 0) {
        $color_id = "category_color_" . $update_category;
        // retrieve the existing value(s) for this meta field. This returns an array
        $term_meta = get_option($color_id);
        $update_color_class = ($term_meta) ? $term_meta['color_class_term_meta'] : 'category-color-1';
      }

      morenews_render_tabbed_posts($tab_id, $latest_title, $latest_post_filterby, $latest_category, $latest_color_class, $popular_title, $popular_post_filterby, $popular_category, $popular_color_class, $update_title, $update_post_filterby, $update_category, $update_color_class, $number_of_posts);
      ?>
    </div>
  </div>
</div>
<!-- Editors Pick line END -->