Current File : /home/mdkeenpw/www/wp-content/themes/globallogistics/skins/default/templates/admin-notice.php |
<?php
/**
* The template to display Admin notices
*
* @package GLOBALLOGISTICS
* @since GLOBALLOGISTICS 1.0.1
*/
$globallogistics_theme_slug = get_option( 'template' );
$globallogistics_theme_obj = wp_get_theme( $globallogistics_theme_slug );
?>
<div class="globallogistics_admin_notice globallogistics_welcome_notice notice notice-info is-dismissible" data-notice="admin">
<?php
// Theme image
$globallogistics_theme_img = globallogistics_get_file_url( 'screenshot.jpg' );
if ( '' != $globallogistics_theme_img ) {
?>
<div class="globallogistics_notice_image"><img src="<?php echo esc_url( $globallogistics_theme_img ); ?>" alt="<?php esc_attr_e( 'Theme screenshot', 'globallogistics' ); ?>"></div>
<?php
}
// Title
?>
<h3 class="globallogistics_notice_title">
<?php
echo esc_html(
sprintf(
// Translators: Add theme name and version to the 'Welcome' message
__( 'Welcome to %1$s v.%2$s', 'globallogistics' ),
$globallogistics_theme_obj->get( 'Name' ) . ( GLOBALLOGISTICS_THEME_FREE ? ' ' . __( 'Free', 'globallogistics' ) : '' ),
$globallogistics_theme_obj->get( 'Version' )
)
);
?>
</h3>
<?php
// Description
?>
<div class="globallogistics_notice_text">
<p class="globallogistics_notice_text_description">
<?php
echo str_replace( '. ', '.<br>', wp_kses_data( $globallogistics_theme_obj->description ) );
?>
</p>
<p class="globallogistics_notice_text_info">
<?php
echo wp_kses_data( __( 'Attention! Plugin "ThemeREX Addons" is required! Please, install and activate it!', 'globallogistics' ) );
?>
</p>
</div>
<?php
// Buttons
?>
<div class="globallogistics_notice_buttons">
<?php
// Link to the page 'About Theme'
?>
<a href="<?php echo esc_url( admin_url() . 'themes.php?page=globallogistics_about' ); ?>" class="button button-primary"><i class="dashicons dashicons-nametag"></i>
<?php
echo esc_html__( 'Install plugin "ThemeREX Addons"', 'globallogistics' );
?>
</a>
</div>
</div>