Exemple #1
0
?>
</a>
			
			<?php 
$styleTitle = __('Add Style', 'premise');
$styleUrl = add_query_arg(array('page' => 'premise-style-settings'), admin_url('admin.php'));
if (isset($_GET['page']) && 'premise-style-settings' == $_GET['page'] && isset($_GET['premise-design-key']) && $this->isValidStyleKey($_GET['premise-design-key'])) {
    $styleUrl = add_query_arg(array('premise-design-key' => $_GET['premise-design-key']), $styleUrl);
    $styleTitle = __('Edit Style', 'premise');
}
?>
			<a href="<?php 
echo esc_url($styleUrl);
?>
" class="nav-tab <?php 
premise_active_admin_tab('premise-style-settings');
?>
"><?php 
echo esc_html($styleTitle);
?>
</a>
		</h2>
		<?php 
if (!empty($messages)) {
    foreach ($messages['updates'] as $key => $update) {
        ?>
<div id="premise-settings-updated-message-<?php 
        echo $key;
        ?>
" class="updated fade"><p><strong><?php 
        esc_html_e($update, 'premise');
Exemple #2
0
</a>
			<a href="<?php 
echo esc_url(admin_url('admin.php?page=premise-styles'));
?>
" class="nav-tab <?php 
premise_active_admin_tab('premise-styles');
?>
"><?php 
_e('Styles', 'premise');
?>
</a>
			<a href="<?php 
echo esc_url(admin_url('admin.php?page=premise-buttons'));
?>
" class="nav-tab <?php 
premise_active_admin_tab('premise-buttons');
?>
"><?php 
_e('Buttons', 'premise');
?>
</a>
			
		</h2>
		<?php 
if (!empty($messages)) {
    foreach ($messages['updates'] as $key => $update) {
        ?>
<div id="premise-settings-updated-message-<?php 
        echo $key;
        ?>
" class="updated fade"><p><strong><?php