You are here

slider-nojquery.tpl.php in Content Analysis 7

Same filename and directory in other branches
  1. 8 theme/slider-nojquery.tpl.php

Default theme implementation to display a slider if jquery_ui is not installed

Available variables:

  • $element: The element array containing #id, #name,...

File

theme/slider-nojquery.tpl.php
View source
<?php

/**
 * @file
 * Default theme implementation to display a slider if jquery_ui is not installed
 *
 * Available variables:
 * - $element: The element array containing #id, #name,...
 */
?>
<div>
    <strong><?php

echo $element["#title"];
?>:</strong>
</div>
<div>
    <div class="description"
         style="margin-bottom:10px;"><?php

echo $element["#description"];
?></div>
  <?php

if ($element['#type'] == 'seo_slider_at_least') {
  ?>
      &ge;&nbsp;<input type="text" size="<?php

  echo $element['#size'];
  ?>"
                       name='<?php

  echo $element["#name"];
  ?>'
                       id='<?php

  echo $element["#id"];
  ?>_value'
                       value='<?php

  echo $element["#default"][0];
  ?>'/>&nbsp;%
  <?php

}
else {
  ?>
      &#8712;&nbsp;[<input type="text" size="<?php

  echo $element['#size'];
  ?>"
                           name='<?php

  echo $element["#name"];
  ?>[]'
                           id='<?php

  echo $element["#id"];
  ?>_lower_value'
                           value='<?php

  echo $element["#default"][0];
  ?>'/>&nbsp;%
                                                                           ,
      <input type="text" size="<?php

  echo $element['#size'];
  ?>"
             name='<?php

  echo $element["#name"];
  ?>[]'
             id='<?php

  echo $element["#id"];
  ?>_upper_value'
             value='<?php

  echo $element["#default"][1];
  ?>'/>&nbsp;%
      ]
  <?php

}
?>
</div>