1<?php $helper = plugin_load('helper', 'confmanager'); ?> 2<div class="table"> 3 <h3><?php echo $helper->getLang('user_defined_values') ?></h3> 4 <table class="inline confmanager_twoLineLeftImage"> 5 <tr> 6 <th><?php echo $helper->getLang('key') ?></th> 7 <th><?php echo $helper->getLang('value') ?></th> 8 <th><?php echo $helper->getLang('actions') ?></th> 9 </tr> 10 <?php foreach($local as $key => $value):?> 11 <?php $image = $this->getImage($key); ?> 12 <tr> 13 <td> 14 <?php if ($image !== ''): ?> 15 <img src="<?php echo hsc($image) ?>" alt="" /> 16 <?php endif ?> 17 <input name="keys[]" value="<?php echo hsc($key) ?>" /> 18 </td> 19 <td> 20 <input 21 type="text" 22 name="values[]" 23 value="<?php echo hsc($value) ?>" 24 class="edit" 25 /> 26 </td> 27 <td> 28 <?php $isDefault = array_key_exists($key, $default) ?> 29 <?php include DOKU_PLUGIN . 'confmanager/tpl/deleteButton.php' ?> 30 31 <?php if($isDefault) : ?> 32 <img class="upload_image_button" 33 src="<?php echo DOKU_PLUGIN_ICONS.'picture_edit_disabled.png' ?>" 34 alt="<?php echo hsc($helper->getLang('edit_icon_action_disabled')) ?>" 35 title="<?php echo hsc($helper->getLang('edit_icon_action_tooltip_disabled')) ?>" /> 36 <?php else : ?> 37 <img class="upload_image_button clickable" 38 src="<?php echo DOKU_PLUGIN_ICONS.'picture_edit.png' ?>" 39 alt="<?php echo hsc($helper->getLang('edit_icon_action')) ?>" 40 title="<?php echo hsc($helper->getLang('edit_icon_action_tooltip')) ?>" /> 41 <?php endif ?> 42 43 44 <?php if($image !== '' && !$isDefault) : ?> 45 <img class="delete_image_button clickable" 46 src="<?php echo DOKU_PLUGIN_ICONS.'picture_delete.png' ?>" 47 alt="<?php echo hsc($helper->getLang('delete_icon_action')) ?>" 48 title="<?php echo hsc($helper->getLang('delete_icon_action_tooltip')) ?>" /> 49 <?php else : ?> 50 <img src="<?php echo DOKU_PLUGIN_ICONS.'picture_delete_disabled.png' ?>" 51 alt="<?php echo hsc($helper->getLang('delete_icon_action_disabled')) ?>" 52 title="<?php echo hsc($helper->getLang('delete_icon_action_tooltip_disabled')) ?>" /> 53 <?php endif ?> 54 </td> 55 </tr> 56 <?php endforeach ?> 57 <tr> 58 <td> 59 <input class="newItem" type="text" name="newKey[]"> 60 </td> 61 <td> 62 <input class="newItem submitOnTab" type="text" name="newValue[]" /> 63 </td> 64 <td/> 65 </tr> 66 </table> 67 <?php $this->helper->tplSaveButton() ?> 68</div> 69 <h3 class="clickable hoverFeedback" title="<?php echo $helper->getLang('toggle_defaults') ?>"> 70 <a id="toggleDefaults"> 71 <?php echo $helper->getLang('default_values') ?> 72 <img id="defaults_toggle_button"/> 73 </a> 74 </h3> 75 <div class="defaults"> 76 <p> 77 <?php echo hsc($helper->getLang('defaults_description')) ?> 78 </p> 79 <table class="inline confmanager_twoLineLeftImage"> 80 <tr> 81 <th><?php echo $helper->getLang('key') ?></th> 82 <th><?php echo $helper->getLang('value') ?></th> 83 <th><?php echo $helper->getLang('actions') ?></th> 84 </tr> 85 <?php foreach ($default as $key => $value): ?> 86 <?php 87 if(array_key_exists($key, $local)) { 88 continue; 89 } 90 ?> 91 <?php $image = $this->getImage($key); ?> 92 <tr> 93 <td> 94 <div class="defaultValue" title="<?php echo hsc($helper->getLang('default_value_tooltip')) ?>"> 95 <?php if ($image !== ''): ?> 96 <img src="<?php echo hsc($image) ?>" alt="" /> 97 <?php endif ?> 98 <?php echo hsc($key) ?> 99 </div> 100 </td> 101 <td> 102 <div class="defaultValue" title="<?php echo hsc($helper->getLang('default_value_tooltip')) ?>"> 103 <?php echo hsc($value) ?> 104 </div> 105 </td> 106 <td class="default_value"> 107 <img src="<?php echo DOKU_PLUGIN_ICONS?>delete_disabled.png" 108 alt="<?php echo hsc($helper->getLang('delete_action')) ?>" 109 title="<?php echo hsc($helper->getLang('delete_action_tooltip_disabled')) ?>" /> 110 <img src="<?php echo DOKU_PLUGIN_ICONS.'picture_edit_disabled.png' ?>" 111 alt="<?php echo hsc($helper->getLang('edit_icon_action')) ?>" 112 title="<?php echo hsc($helper->getLang('edit_icon_action_tooltip_disabled')) ?>" /> 113 </td> 114 </tr> 115 <?php endforeach ?> 116 </table> 117 </div> 118</div> 119