| 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 |
|