1<?php $helper = plugin_load('helper', 'confmanager'); 2/** 3 * @var ConfigManagerSingleLineCoreConfig $this 4 * @var array $local 5 * @var array $default 6 * @var array[] $configs 7 */ ?> 8<div class="table"> 9 <h3><?php echo $helper->getLang('user_defined_values') ?></h3> 10 <table class="inline confmanager_singleLine" id="local"> 11 <tr> 12 <th><?php echo $helper->getLang('value') ?></th> 13 <th><?php echo $helper->getLang('actions') ?></th> 14 </tr> 15 <?php $lineCounter = 0; ?> 16 <?php foreach ($local as $config): ?> 17 <?php 18 $isDefault = substr($config,0,1) == DOKU_CONF_NEGATION 19 && in_array(trim(substr($config,1)), $default) 20 ?> 21 <tr> 22 <td> 23 <input 24 id="value<?php echo $lineCounter ?>" 25 type="text" 26 name="line[]" 27 value="<?php echo hsc($config) ?>" 28 class="value" 29 /> 30 <?php if($isDefault): ?> 31 <br> 32 <span class="overriddenValue"> 33 <?php echo $helper->getLang('disablesdefault') ?> 34 </span> 35 <?php endif ?> 36 </td> 37 <td> 38 <?php include DOKU_PLUGIN . 'confmanager/tpl/deleteButton.php' ?> 39 </td> 40 </tr> 41 <?php $lineCounter++; ?> 42 <?php endforeach ?> 43 <tr> 44 <td> 45 <input type="text" name="line[]" class="newItem value submitOnTab" /> 46 </td> 47 <td/> 48 </tr> 49 </table> 50 <?php $this->helper->tplSaveButton() ?> 51 <h3 class="clickable hoverFeedback" title="<?php echo $helper->getLang('toggle_defaults') ?>"> 52 <a id="toggleDefaults"> 53 <?php echo $helper->getLang('default_values') ?> 54 <img id="defaults_toggle_button"/> 55 </a> 56 </h3> 57 <div class="defaults"> 58 <p> 59 <?php echo hsc($helper->getLang('defaults_description')) ?> 60 </p> 61 <table class="inline confmanager_singleLine"> 62 <tr> 63 <th><?php echo $helper->getLang('value') ?></th> 64 <th><?php echo $helper->getLang('actions') ?></th> 65 </tr> 66 <?php foreach($default as $item): ?> 67 <?php $isOverridden = in_array('!' . $item, $local) ?> 68 69 <tr<?php if($isOverridden): ?> class="overridden"<?php endif ?>> 70 <td> 71 <div class="defaultValue" title="<?php echo hsc($helper->getLang('default_value_tooltip')) ?>"> 72 <span class="default_key"><?php echo hsc($item) ?></span> 73 </div> 74 <?php if($isOverridden): ?> 75 <br> 76 <span class="overriddenValue"> 77 <?php echo $helper->getLang('disabledbylocal') ?> 78 </span> 79 <?php endif ?> 80 </td> 81 <td> 82 <?php include DOKU_PLUGIN . 'confmanager/tpl/disableButton.php' ?> 83 </td> 84 </tr> 85 <?php endforeach ?> 86 </table> 87 </div> 88</div> 89