all-in-one-event-calendar/public/admin/themes.php

53 lines
1.7 KiB
PHP
Raw Normal View History

2017-03-16 16:59:53 +01:00
<?php if( $activated ) : ?>
2017-11-09 17:36:04 +01:00
<div id="message2" class="updated">
<p>
<?php printf( __( 'New theme activated. <a href="%s">Visit site</a>' ), home_url( '/' ) ); ?>
</p>
</div>
2017-03-16 16:59:53 +01:00
<?php elseif( $deleted ) : ?>
2017-11-09 17:36:04 +01:00
<div id="message3" class="updated">
<p>
<?php _e( 'Theme deleted.', AI1EC_PLUGIN_NAME ) ?>
</p>
</div>
2017-03-16 16:59:53 +01:00
<?php endif; ?>
<div class="wrap">
2017-11-09 17:36:04 +01:00
<h2><?php echo esc_html( $page_title ); ?></h2>
<h3><?php _e( 'Current Calendar Theme', AI1EC_PLUGIN_NAME ); ?></h3>
<div id="current-theme"<?php echo ( $ct->screenshot ) ? ' class="has-screenshot"' : '' ?>>
<?php if ( $ct->screenshot ) : ?>
<img src="<?php echo $ct->theme_root_uri . '/' . $ct->stylesheet . '/' . $ct->screenshot; ?>" alt="<?php esc_attr_e('Current theme preview', AI1EC_PLUGIN_NAME); ?>" />
<?php endif; ?>
<h4><?php
/* translators: 1: theme title, 2: theme version, 3: theme author */
printf(__('%1$s %2$s by %3$s', AI1EC_PLUGIN_NAME ), $ct->title, $ct->version, $ct->author) ; ?></h4>
<p class="theme-description"><?php echo $ct->description; ?></p>
<div class="theme-options">
<?php if ( $ct->tags ) : ?>
<p><?php _e( 'Tags:', AI1EC_PLUGIN_NAME ); ?> <?php echo join(', ', $ct->tags); ?></p>
<?php endif; ?>
</div>
<?php theme_update_available($ct); ?>
2017-03-16 16:59:53 +01:00
2017-11-09 17:36:04 +01:00
</div>
2017-03-16 16:59:53 +01:00
2017-11-09 17:36:04 +01:00
<br class="clear" />
<?php
if (
! current_user_can( 'switch_themes' ) &&
! current_user_can( 'switch_ai1ec_themes' )
) {
echo '</div>';
return false;
}
?>
2017-03-16 16:59:53 +01:00
2017-11-09 17:36:04 +01:00
<h3><?php _e( 'Available Calendar Themes', AI1EC_PLUGIN_NAME ); ?></h3>
2017-03-16 16:59:53 +01:00
2017-11-09 17:36:04 +01:00
<?php $wp_list_table->display(); ?>
2017-03-16 16:59:53 +01:00
2017-11-09 17:36:04 +01:00
<br class="clear" />
2017-03-16 16:59:53 +01:00
2017-11-09 17:36:04 +01:00
</div>