| Server IP : 172.67.75.225 / Your IP : 216.73.216.185 Web Server : nginx/1.27.1 System : Linux us-1 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64 User : vinodai ( 3134) PHP Version : 7.4.33 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/v1396/wwwindicidolscom/public_html/wp-content/themes/shakti/skins/ |
Upload File : |
<?php
/**
* The template to display Admin notices
*
* @package SHAKTI
* @since SHAKTI 1.0.64
*/
$shakti_skins_url = get_admin_url( null, 'admin.php?page=trx_addons_theme_panel#trx_addons_theme_panel_section_skins' );
$shakti_skins_args = get_query_var( 'shakti_skins_notice_args' );
?>
<div class="shakti_admin_notice shakti_skins_notice notice notice-info is-dismissible" data-notice="skins">
<?php
// Theme image
$shakti_theme_img = shakti_get_file_url( 'screenshot.jpg' );
if ( '' != $shakti_theme_img ) {
?>
<div class="shakti_notice_image"><img src="<?php echo esc_url( $shakti_theme_img ); ?>" alt="<?php esc_attr_e( 'Theme screenshot', 'shakti' ); ?>"></div>
<?php
}
// Title
?>
<h3 class="shakti_notice_title">
<?php esc_html_e( 'New skins available', 'shakti' ); ?>
</h3>
<?php
// Description
$shakti_total = $shakti_skins_args['update']; // Store value to the separate variable to avoid warnings from ThemeCheck plugin!
$shakti_skins_msg = $shakti_total > 0
// Translators: Add new skins number
? '<strong>' . sprintf( _n( '%d new version', '%d new versions', $shakti_total, 'shakti' ), $shakti_total ) . '</strong>'
: '';
$shakti_total = $shakti_skins_args['free'];
$shakti_skins_msg .= $shakti_total > 0
? ( ! empty( $shakti_skins_msg ) ? ' ' . esc_html__( 'and', 'shakti' ) . ' ' : '' )
// Translators: Add new skins number
. '<strong>' . sprintf( _n( '%d free skin', '%d free skins', $shakti_total, 'shakti' ), $shakti_total ) . '</strong>'
: '';
$shakti_total = $shakti_skins_args['pay'];
$shakti_skins_msg .= $shakti_skins_args['pay'] > 0
? ( ! empty( $shakti_skins_msg ) ? ' ' . esc_html__( 'and', 'shakti' ) . ' ' : '' )
// Translators: Add new skins number
. '<strong>' . sprintf( _n( '%d paid skin', '%d paid skins', $shakti_total, 'shakti' ), $shakti_total ) . '</strong>'
: '';
?>
<div class="shakti_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", 'shakti' ), $shakti_skins_msg ) );
?>
</p>
</div>
<?php
// Buttons
?>
<div class="shakti_notice_buttons">
<?php
// Link to the theme dashboard page
?>
<a href="<?php echo esc_url( $shakti_skins_url ); ?>" class="button button-primary"><i class="dashicons dashicons-update"></i>
<?php
// Translators: Add theme name
esc_html_e( 'Go to Skins manager', 'shakti' );
?>
</a>
</div>
</div>