WordPress.org

Ready to get started?Download WordPress

Forums

admin theme selector bug - further details - themes.php (1 post)

  1. mail@paulbryan.name
    Member
    Posted 6 years ago #

    This message is related to the other post about the problem I am having with the theme selector page.

    Here is the relevant portion of the themes.php file which is generating the above markup, if someone would like to see the entire themes.php file please let me know. Thanks in advance. Paul

    <h2><?php _e('Available Themes'); ?></h2>
    
    	<?php if ( 1 < count($themes) ) { ?>
        <?php
    		$style = '';
    
    		$theme_names = array_keys($themes);
    		natcasesort($theme_names);
    
    		foreach ($theme_names as $theme_name) {
    			if ( $theme_name == $ct->name )
    				continue;
    					$template = $themes[$theme_name]['Template'];
    					$stylesheet = $themes[$theme_name]['Stylesheet'];
    					$title = $themes[$theme_name]['Title'];
    					$version = $themes[$theme_name]['Version'];
    					$description = $themes[$theme_name]['Description'];
    					$author = $themes[$theme_name]['Author'];
    					$screenshot = $themes[$theme_name]['Screenshot'];
    					$stylesheet_dir = $themes[$theme_name]['Stylesheet Dir'];
    					$tags = $themes[$theme_name]['Tags'];
    					$activate_link = wp_nonce_url("themes.php?action=activate&amp;template=".urlencode($template)."&amp;stylesheet=".urlencode($stylesheet), 'switch-theme_' . $template);
    	?>
        <div class="available-theme">
            <h3><a href="<?php echo $activate_link; ?>"><?php echo $title; ?></a></h3>
    
    		<a href="<?php echo $activate_link; ?>" class="screenshot"><?php if ( $screenshot ) : ?><img src="<?php echo get_option('siteurl') . '/' . $stylesheet_dir . '/' . $screenshot; ?>" alt="" /><?php endif; ?></a>
            <p><?php echo $description; ?></p>
    
    		<?php if ( $tags ) : ?>
            <p>
                <?php _e('Tags:'); ?>
                <?php echo join(', ', $tags); ?></p>
            <?php endif; ?>
        </div>
        <?php } // end foreach theme_names ?>
        <?php } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 6 years ago by mail@paulbryan.name
  • This topic is not resolved
  • WordPress version: 2.5.1

Tags

No tags yet.