Beispiel #1
0
function wptouch_get_theme_delete_link_url()
{
    return esc_url(add_query_arg(array('admin_command' => 'delete_theme', 'theme_name' => urlencode(wptouch_get_theme_title()), 'theme_location' => urlencode(wptouch_get_theme_location()), 'admin_menu_nonce' => wptouch_admin_menu_get_nonce())));
}
			<?php 
echo sprintf(__('by %s', 'wptouch-pro'), wptouch_get_theme_author());
?>
		</h5>

		<p class="desc"><?php 
wptouch_the_theme_description();
?>
</p>

		<p class="info">
		<?php 
if (!wptouch_is_theme_in_cloud()) {
    ?>
		<?php 
    echo sprintf(__('Theme location: %s', 'wptouch-pro'), wptouch_get_theme_location());
    ?>
			<i class="wptouch-tooltip icon-info-sign" title="<?php 
    _e('Relative to your WordPress wp-content directory.', 'wptouch-pro');
    ?>
"></i>
			<br />
		<?php 
}
?>
		</p>
	</div>
	<ul class="item-actions">
		<?php 
if (wptouch_is_theme_in_cloud()) {
    ?>
function wptouch_the_theme_location()
{
    echo wptouch_get_theme_location();
}
Beispiel #4
0
function wptouch_get_theme_preview_images()
{
    require_once WPTOUCH_DIR . '/core/file-operations.php';
    return wptouch_get_files_in_directory(WP_CONTENT_DIR . wptouch_get_theme_location() . '/preview', '.jpg', false);
}
				<?php 
        if (wptouch_theme_has_features()) {
            ?>
					<p class="wptouch-theme-features"><?php 
            echo sprintf(__('Features: %s', 'wptouch-pro'), implode(wptouch_get_theme_features(), ', '));
            ?>
</p>
				<?php 
        }
        ?>
		
				<?php 
        if (wptouch_is_theme_custom()) {
            ?>
					<p class="location"><?php 
            echo sprintf(__('Theme Location (relative to wp-content):<br />%s', 'wptouch-pro'), wptouch_get_theme_location());
            ?>
</p>
				<?php 
        }
        ?>
			</div>
			<br class="clearer" />	
		</div>
	<?php 
    }
} else {
    ?>
	<?php 
    _e("There are currently no themes installed.", "wptouch-pro");
}