403Webshell
Server IP : 184.75.252.78  /  Your IP : 216.73.217.174
Web Server : LiteSpeed
System : Linux dia.sitehostingserver.com 3.10.0-962.3.2.lve1.5.88.el7.x86_64 #1 SMP Fri Sep 26 14:06:42 UTC 2025 x86_64
User : kikeda ( 1072)
PHP Version : 8.2.31
Disable Function : popen,imap_mail,exec,passthru,system,shell_exec,proc_open,pcntl_exec,eval,allow_url_fopen,allow_url_include,mail,proc_get_status,get_cfg_var,disk_free_space,disk_total_space,diskfreespace,getmygid,getmyinode,getmypid,geymyuid,proc_nice,proc_terminate,proc_close,apache_child_terminate,chown,lchgrp,lchown,link,readlink,exif_read_data,read_exif_data,exif_thumbnail,highlight_file,show_source,php_strip_whitespace,get_meta_tags,dl,leak,pfsockopen,event_new,pcntl_signal,pcntl_alarm,register_tick_function,apache_setenv,define_syslog_variables,escapeshellarg,escapeshellcmd,ini_alter,ini_restore,inject_code,openlog,syslog,xmlrpc_entity_decode,phpAds_remoteInfo,phpAds_XmlRpc,phpAds_xmlrpcDecode,phpAds_xmlrpcEncode,chgrp,php_eval,safe_dir,root,ftok,egy_perl,symlink,wscript
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/kikeda/public_html/ballerleather.com/wp-content/themes/magzimum/inc/hook/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/kikeda/public_html/ballerleather.com/wp-content/themes/magzimum/inc/hook/breaking.php
<?php

// Check breaking status
add_filter( 'magzimum_filter_breaking_status', 'magzimum_check_breaking_status' );

/**
 * Check status of breaking news.
 *
 * @since Magzimum 1.0
 *
 */
if( ! function_exists( 'magzimum_check_breaking_status' ) ):

  function magzimum_check_breaking_status( $input ){

    global $post, $wp_query;

    // Breaking status
    $breaking_status = magzimum_get_option( 'breaking_status' );

    // Initial
    $status = false;

    switch ( $breaking_status ) {

      case 'entire-site':
        $status = true;
        break;

      case 'home-page-only':
        if ( is_front_page() ) {
          $status = true;
        }
        break;

      case 'home-blog-page':
        if ( is_front_page() || is_home() ) {
          $status = true;
        }
        break;

      case 'disabled':
      default:
        $status = false;
        break;

    }

    $input = $status;

    return $input;

  }

endif;


add_action( 'magzimum_action_before_content', 'magzimum_add_breaking_news', 4 );


if ( ! function_exists( 'magzimum_add_breaking_news' ) ) :
  /**
   * Add breaking news
   *
   * @since Magzimum 1.0
   *
   */
  function magzimum_add_breaking_news() {

    $flag_apply_breaking = apply_filters( 'magzimum_filter_breaking_status', false );
    if ( true != $flag_apply_breaking ) {
      return false;
    }
    ?>
    <div id="breaking-news-wrap">
      <div class="container">
        <div class="breaking-news-inner">
          <?php magzimum_render_breaking_news(); ?>
        </div><!-- .breaking-news-inner -->
      </div><!-- .container -->
    </div><!-- #breaking-news-wrap -->
    <?php

  }

endif;

if ( ! function_exists( 'magzimum_render_breaking_news' ) ) :
  /**
   * Render breaking news
   *
   * @since Magzimum 1.0
   *
   */
  function magzimum_render_breaking_news() {


    $breaking_title    = magzimum_get_option( 'breaking_title' );
    $breaking_number   = magzimum_get_option( 'breaking_number' );
    $breaking_category = magzimum_get_option( 'breaking_category' );
    $breaking_show_date = magzimum_get_option( 'breaking_show_date' );
    $breaking_transition_delay = magzimum_get_option( 'breaking_transition_delay' );
    $breaking_delay = $breaking_transition_delay * 1000;

    $qargs = array(
      'posts_per_page' => esc_attr( $breaking_number ),
      'no_found_rows'  => true,
    );

    if ( absint( $breaking_category ) > 0  ) {
      $qargs['category'] = esc_attr( $breaking_category );
    }

    // Fetch posts
    $all_posts = get_posts( $qargs );

    ?>
    <div class="breaking-title"><?php echo esc_html( $breaking_title ); ?></div><!-- .breaking-title -->
    <div id="breaking-ticker" data-delay="<?php echo esc_attr( $breaking_delay ); ?>">
      <div class="innerWrap">
        <?php if ( ! empty( $all_posts ) ): ?>
          <?php foreach ( $all_posts as $key => $breaking ): ?>
            <div class="list">
              <a href="<?php echo esc_url(  get_permalink( $breaking->ID ) ); ?>">
                <?php echo esc_html( $breaking->post_title ); ?>
              </a>
              <?php if ( true == $breaking_show_date ): ?>
                <span class="date">(<?php echo date( get_option( 'date_format' ), strtotime( $breaking->post_date ) ); ?>)</span>
              <?php endif; ?>
            </div>
          <?php endforeach; ?>
        <?php endif; ?>
      </div>
    </div>
    <?php
    wp_reset_postdata();

  }
endif;


Youez - 2016 - github.com/yon3zu
LinuXploit