PluginProbe
MaxGalleria / 2.6
MaxGalleria v2.6
6.5.3 trunk 2.0.0 2.0.1 2.1.0 2.2.0 2.2.1 2.2.2 2.3 2.4 2.5 2.6 2.6.1 3.0.0 3.0.1 3.0.2 3.0.3 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 All 135 releases
maxgalleria / meta / meta-description.php

meta-description.php in MaxGalleria 2.6, at meta/meta-description.php

47 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 global $post;
3 $options = new MaxGalleryOptions($post->ID);
4
5 $description_positions = array(
6 __('Above Gallery', 'maxgalleria') => 'above',
7 __('Below Gallery', 'maxgalleria') => 'below'
8 );
9 ?>
10
11 <div class="meta-options">
12 <table>
13 <tr>
14 <td width="80">
15 <label for="<?php echo $options->description_enabled_key ?>"><?php _e('Enabled:', 'maxgalleria') ?></label>
16 </td>
17 <td>
18 <input type="checkbox" id="<?php echo $options->description_enabled_key ?>" name="<?php echo $options->description_enabled_key ?>" <?php echo (($options->get_description_enabled() == 'on') ? 'checked' : '') ?> />
19 </td>
20 </tr>
21 <tr>
22 <td width="80">
23 <?php _e('Location:', 'maxgalleria') ?>
24 </td>
25 <td>
26 <select id="<?php echo $options->description_position_key ?>" name="<?php echo $options->description_position_key ?>">
27 <?php foreach ($description_positions as $name => $value) { ?>
28 <?php $selected = ($options->get_description_position() == $value) ? 'selected="selected"' : ''; ?>
29 <option value="<?php echo $value ?>" <?php echo $selected ?>><?php echo $name ?></option>
30 <?php } ?>
31 </select>
32 </td>
33 </tr>
34 <tr>
35 <td colspan="2" style="padding-top: 10px;">
36 <label for="<?php echo $options->description_text_key ?>"><?php _e('Text:', 'maxgalleria') ?></label>
37 <div style="vertical-align: middle; display: inline-block; color: #808080; font-style: italic; margin-left: 20px;"><?php _e('HTML is allowed', 'maxgalleria') ?></div>
38 </td>
39 </tr>
40 <tr>
41 <td colspan="2">
42 <textarea id="<?php echo $options->description_text_key ?>" name="<?php echo $options->description_text_key ?>"><?php echo $options->get_description_text() ?></textarea>
43 </td>
44 </tr>
45 </table>
46 </div>
47