/[drupal]/contributions/modules/switchtheme/switchtheme.module
ViewVC logotype

Diff of /contributions/modules/switchtheme/switchtheme.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2.2.7, Sun Nov 2 13:33:07 2008 UTC revision 1.2.2.8, Sun Aug 2 23:42:20 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: switchtheme.module,v 1.2.2.6 2008/11/02 12:44:50 sun Exp $  // $Id: switchtheme.module,v 1.2.2.7 2008/11/02 13:33:07 sun Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 109  function switchtheme_display_random_bloc Line 109  function switchtheme_display_random_bloc
109    shuffle($themes);    shuffle($themes);
110    foreach ($themes as $key => $theme) {    foreach ($themes as $key => $theme) {
111      $theme->screenshot = dirname($theme->filename) .'/screenshot.png';      $theme->screenshot = dirname($theme->filename) .'/screenshot.png';
112      if (file_exists($theme->screenshot)) {      if ($theme->status && file_exists($theme->screenshot)) {
113        // Return the first theme with a screenshot.        // Return the first theme with a screenshot.
114        $output = l("<img src=\"". base_path() ."$theme->screenshot\" alt=\"preview of $theme->name\" />", $_GET['q'], NULL, 'theme='.$theme->name, NULL, FALSE, TRUE);        $output = l("<img src=\"". base_path() ."$theme->screenshot\" alt=\"preview of $theme->name\" />", $_GET['q'], NULL, 'theme='.$theme->name, NULL, FALSE, TRUE);
115        return $output;        return $output;

Legend:
Removed from v.1.2.2.7  
changed lines
  Added in v.1.2.2.8

  ViewVC Help
Powered by ViewVC 1.1.2