Viewing File: /home/maglabs/multicerame/wp-content/themes/dom/skins/roofing/templates/admin-notice.php
<?php
/**
* The template to display Admin notices
*
* @package DOM
* @since DOM 1.0.1
*/
$dom_theme_slug = get_option( 'template' );
$dom_theme_obj = wp_get_theme( $dom_theme_slug );
?>
<div class="dom_admin_notice dom_welcome_notice notice notice-info is-dismissible" data-notice="admin">
<?php
// Theme image
$dom_theme_img = dom_get_file_url( 'screenshot.jpg' );
if ( '' != $dom_theme_img ) {
?>
<div class="dom_notice_image"><img src="<?php echo esc_url( $dom_theme_img ); ?>" alt="<?php esc_attr_e( 'Theme screenshot', 'dom' ); ?>"></div>
<?php
}
// Title
?>
<h3 class="dom_notice_title">
<?php
echo esc_html(
sprintf(
// Translators: Add theme name and version to the 'Welcome' message
__( 'Welcome to %1$s v.%2$s', 'dom' ),
$dom_theme_obj->get( 'Name' ) . ( DOM_THEME_FREE ? ' ' . __( 'Free', 'dom' ) : '' ),
$dom_theme_obj->get( 'Version' )
)
);
?>
</h3>
<?php
// Description
?>
<div class="dom_notice_text">
<p class="dom_notice_text_description">
<?php
echo str_replace( '. ', '.<br>', wp_kses_data( $dom_theme_obj->description ) );
?>
</p>
<p class="dom_notice_text_info">
<?php
echo wp_kses_data( __( 'Attention! Plugin "ThemeREX Addons" is required! Please, install and activate it!', 'dom' ) );
?>
</p>
</div>
<?php
// Buttons
?>
<div class="dom_notice_buttons">
<?php
// Link to the page 'About Theme'
?>
<a href="<?php echo esc_url( admin_url() . 'themes.php?page=dom_about' ); ?>" class="button button-primary"><i class="dashicons dashicons-nametag"></i>
<?php
echo esc_html__( 'Install plugin "ThemeREX Addons"', 'dom' );
?>
</a>
</div>
</div>
Back to Directory
File Manager