| Server IP : 172.67.71.254 / Your IP : 216.73.216.4 Web Server : nginx/1.27.1 System : Linux in-5 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64 User : arabianexpress ( 1872) PHP Version : 8.0.30 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /storage/v9321/buzzbitesv3/public_html/wp-content/themes/bite/skins/ |
Upload File : |
<?php
/**
* The template to display Admin notices
*
* @package BITE
* @since BITE 1.0.64
*/
$bite_skins_url = get_admin_url( null, 'admin.php?page=trx_addons_theme_panel#trx_addons_theme_panel_section_skins' );
$bite_skins_args = get_query_var( 'bite_skins_notice_args' );
?>
<div class="bite_admin_notice bite_skins_notice notice notice-info is-dismissible" data-notice="skins">
<?php
// Theme image
$bite_theme_img = bite_get_file_url( 'screenshot.jpg' );
if ( '' != $bite_theme_img ) {
?>
<div class="bite_notice_image"><img src="<?php echo esc_url( $bite_theme_img ); ?>" alt="<?php esc_attr_e( 'Theme screenshot', 'bite' ); ?>"></div>
<?php
}
// Title
?>
<h3 class="bite_notice_title">
<?php esc_html_e( 'New skins are available', 'bite' ); ?>
</h3>
<?php
// Description
$bite_total = $bite_skins_args['update']; // Store value to the separate variable to avoid warnings from ThemeCheck plugin!
$bite_skins_msg = $bite_total > 0
// Translators: Add new skins number
? '<strong>' . sprintf( _n( '%d new version', '%d new versions', $bite_total, 'bite' ), $bite_total ) . '</strong>'
: '';
$bite_total = $bite_skins_args['free'];
$bite_skins_msg .= $bite_total > 0
? ( ! empty( $bite_skins_msg ) ? ' ' . esc_html__( 'and', 'bite' ) . ' ' : '' )
// Translators: Add new skins number
. '<strong>' . sprintf( _n( '%d free skin', '%d free skins', $bite_total, 'bite' ), $bite_total ) . '</strong>'
: '';
$bite_total = $bite_skins_args['pay'];
$bite_skins_msg .= $bite_skins_args['pay'] > 0
? ( ! empty( $bite_skins_msg ) ? ' ' . esc_html__( 'and', 'bite' ) . ' ' : '' )
// Translators: Add new skins number
. '<strong>' . sprintf( _n( '%d paid skin', '%d paid skins', $bite_total, 'bite' ), $bite_total ) . '</strong>'
: '';
?>
<div class="bite_notice_text">
<p>
<?php
// Translators: Add new skins info
echo wp_kses_data( sprintf( __( "We are pleased to announce that %s are available for your theme", 'bite' ), $bite_skins_msg ) );
?>
</p>
</div>
<?php
// Buttons
?>
<div class="bite_notice_buttons">
<?php
// Link to the theme dashboard page
?>
<a href="<?php echo esc_url( $bite_skins_url ); ?>" class="button button-primary"><i class="dashicons dashicons-update"></i>
<?php
esc_html_e( 'Go to Skins manager', 'bite' );
?>
</a>
<?php
// Dismiss notice for 7 days
?>
<a href="#" role="button" class="button button-secondary bite_notice_button_dismiss" data-notice="skins"><i class="dashicons dashicons-no-alt"></i>
<?php
esc_html_e( 'Dismiss', 'bite' );
?>
</a>
<?php
// Hide notice forever
?>
<a href="#" role="button" class="button button-secondary bite_notice_button_hide" data-notice="skins"><i class="dashicons dashicons-no-alt"></i>
<?php
esc_html_e( 'Never show again', 'bite' );
?>
</a>
</div>
</div>