You are here

pagestyle-image.tpl.php in Page Style 7

Same filename and directory in other branches
  1. 6 pagestyle-image.tpl.php

Image theme implementation for rendering a block.

Available variables:

  • $dest: The drupal function drupal_get_destination().
  • $block_title: Block title: "Page Style" or "Theme".
  • $list_inline: Display the ul list "inline" or not.
  • $current_inline: Display the current page style "inline" or not.
  • $subtitle: The subtitle.
  • $subtitle_text: "Page Style"/"Theme" or inline "Page Style: "/"Theme: ".
  • $display_links: Show or hide ("display_hidden") the text in the links.
  • $black_white: The pagestyle Black/White "black_white".
  • $white_black: The pagestyle White/Black "white_black".
  • $yellow_blue: The pagestyle Yellow/Blue "yellow_blue".
  • $standard: The pagestyle Standard "standard".
  • $current_pagestyle: The current page style.
  • $display_current_pagestyle: Show or hide ("display_hidden") the text of the current page style.
  • $display_current_pagestyle_text: Show or hide ("display_hidden");
  • $current_pagestyle_text: The current pagestyle text "Current Style" or "Current Theme".
  • $pagestyle: The current page style (default Standard).

File

pagestyle-image.tpl.php
View source
<?php

/**
 * @file
 * Image theme implementation for rendering a block.
 *
 * Available variables:
 * - $dest: The drupal function drupal_get_destination().
 * - $block_title: Block title: "Page Style" or "Theme".
 * - $list_inline: Display the ul list "inline" or not.
 * - $current_inline: Display the current page style "inline" or not.
 * - $subtitle: The subtitle.
 * - $subtitle_text: "Page Style"/"Theme" or inline "Page Style: "/"Theme: ".
 * - $display_links: Show or hide ("display_hidden") the text in the links.
 * - $black_white: The pagestyle Black/White "black_white".
 * - $white_black: The pagestyle White/Black "white_black".
 * - $yellow_blue: The pagestyle Yellow/Blue "yellow_blue".
 * - $standard: The pagestyle Standard "standard".
 * - $current_pagestyle: The current page style.
 * - $display_current_pagestyle: Show or hide ("display_hidden") the text of the current page style.
 * - $display_current_pagestyle_text: Show or hide ("display_hidden");
 * - $current_pagestyle_text: The current pagestyle text "Current Style" or "Current Theme".
 * - $pagestyle: The current page style (default Standard).
 *
 * @see template_preprocess_pagestyle_image()
 */
if ($subtitle) {
  ?>
<h3 class="<?php

  print $list_inline;
  ?>"><?php

  print $subtitle_text;
  ?></h3>
<?php

}
?>
<ul class="pagestyle_<?php

print $list_inline . ' ' . $current_inline;
?>">
  <?php

if ($black_white) {
  ?>
  <li class="ps_black_white"><?php

  print l('<img src="' . base_path() . drupal_get_path("module", "pagestyle") . '/images/black_white_16.gif" width="16px" height="16px" alt="' . t('Black') . '/' . t('White') . '" class="ps_black_white ps_rollover" />', 'pagestyle/black_white', array(
    'attributes' => array(
      'title' => $block_title . ': ' . t('Black') . '/' . t('White'),
      'class' => 'ps_black_white text_display_hidden ps_rollover',
      'rel' => 'nofollow',
    ),
    'query' => $dest,
    'html' => TRUE,
  ));
  ?></li>
  <?php

}
?>
  <?php

if ($white_black) {
  ?>
  <li class="ps_white_black"><?php

  print l('<img src="' . base_path() . drupal_get_path("module", "pagestyle") . '/images/white_black_16.gif" width="16px" height="16px" alt="' . t('White') . '/' . t('Black') . '" class="ps_white_black ps_rollover" />', 'pagestyle/white_black', array(
    'attributes' => array(
      'title' => $block_title . ': ' . t('White') . '/' . t('Black'),
      'class' => 'ps_white_black text_display_hidden ps_rollover',
      'rel' => 'nofollow',
    ),
    'query' => $dest,
    'html' => TRUE,
  ));
  ?></li>
  <?php

}
?>
  <?php

if ($yellow_blue) {
  ?>
  <li class="ps_yellow_blue"><?php

  print l('<img src="' . base_path() . drupal_get_path("module", "pagestyle") . '/images/yellow_blue_16.gif" width="16px" height="16px" alt="' . t('Yellow') . '/' . t('Blue') . '" class="ps_yellow_blue ps_rollover" />', 'pagestyle/yellow_blue', array(
    'attributes' => array(
      'title' => $block_title . ': ' . t('Yellow') . '/' . t('Blue'),
      'class' => 'ps_yellow_blue text_display_hidden ps_rollover',
      'rel' => 'nofollow',
    ),
    'query' => $dest,
    'html' => TRUE,
  ));
  ?></li>
  <?php

}
?>
  <?php

if ($standard) {
  ?>
  <li class="ps_standard"><?php

  print l('<img src="' . base_path() . drupal_get_path("module", "pagestyle") . '/images/standard_16.gif" width="16px" height="16px" alt="' . t('Standard') . '" class="ps_standard ps_rollover" />', 'pagestyle/standard', array(
    'attributes' => array(
      'title' => $block_title . ': ' . t('Standard'),
      'class' => 'ps_standard text_display_hidden ps_rollover',
      'rel' => 'nofollow',
    ),
    'query' => $dest,
    'html' => TRUE,
  ));
  ?></li>
  <?php

}
?>
</ul>
<?php

if ($current_pagestyle) {
  ?>
<p class="pagestyle_current <?php

  print $current_inline . ' ' . $display_current_pagestyle . ' current_text_' . $display_current_pagestyle_text;
  ?>"><span class="<?php

  print $display_current_pagestyle_text;
  ?>"><?php

  print $current_pagestyle_text;
  ?>: </span><span id="pagestyle_current" title="<?php

  print $current_pagestyle_text . ': ' . $pagestyle;
  ?>"><?php

  print $pagestyle;
  ?></span></p>
<?php

}
?>
<div class="ps_clear"></div>