Created
April 21, 2016 11:46
-
-
Save vgrish/a9afa2f49917bcf19ededc679a58a781 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$sets = array(); | |
$tmp = array( | |
'bs' => array( | |
'showLog' => array( | |
'type' => 'combo-boolean', | |
'value' => false | |
), | |
'fastMode' => array( | |
'type' => 'combo-boolean', | |
'value' => false | |
), | |
'from' => array( | |
'type' => 'numberfield', | |
'value' => 0 | |
), | |
'to' => array( | |
'type' => 'numberfield', | |
'value' => '' | |
), | |
'limit' => array( | |
'type' => 'numberfield', | |
'value' => 10 | |
), | |
'exclude' => array( | |
'type' => 'textfield', | |
'value' => '' | |
), | |
'outputSeparator' => array( | |
'type' => 'textfield', | |
'value' => '' | |
), | |
'toPlaceholder' => array( | |
'type' => 'textfield', | |
'value' => '' | |
), | |
'includeTVs' => array( | |
'type' => 'textfield', | |
'value' => '' | |
), | |
'prepareTVs' => array( | |
'type' => 'textfield', | |
'value' => '1' | |
), | |
'processTVs' => array( | |
'type' => 'textfield', | |
'value' => '' | |
), | |
'tvPrefix' => array( | |
'type' => 'textfield', | |
'value' => 'tv.' | |
), | |
'where' => array( | |
'type' => 'textfield', | |
'value' => '' | |
), | |
'showUnpublished' => array( | |
'type' => 'combo-boolean', | |
'value' => false | |
), | |
'showDeleted' => array( | |
'type' => 'combo-boolean', | |
'value' => false | |
), | |
'showHidden' => array( | |
'type' => 'combo-boolean', | |
'value' => true | |
), | |
'hideContainers' => array( | |
'type' => 'combo-boolean', | |
'value' => false | |
), | |
'tpl' => array( | |
'type' => 'textfield', | |
'value' => '@INLINE <li itemprop=\'itemListElement\' itemscope itemtype=\'http://schema.org/ListItem\'><a itemprop=\'item\' href=\'[[+link]]\'><span itemprop=\'name\'>[[+menutitle]]</span></a><meta itemprop=\'position\' content=\'[[+idx]]\' /></li>' | |
), | |
'tplCurrent' => array( | |
'type' => 'textfield', | |
'value' => '@INLINE <li class=\'active\' itemprop=\'itemListElement\' itemscope itemtype=\'http://schema.org/ListItem\'><a itemprop=\'item\' href=\'[[+link]]\'><span itemprop=\'name\'>[[+menutitle]]</span></a><meta itemprop=\'position\' content=\'[[+idx]]\' /></li>' | |
), | |
'tplMax' => array( | |
'type' => 'textfield', | |
'value' => '@INLINE <span> ... </span>' | |
), | |
'tplHome' => array( | |
'type' => 'textfield', | |
'value' => '' | |
), | |
'tplWrapper' => array( | |
'type' => 'textfield', | |
'value' => '@INLINE <ol class=\'breadcrumb tm-breadcrumb\' itemscope itemtype=\'http://schema.org/BreadcrumbList\'>[[+output]]</ol>' | |
), | |
'wrapIfEmpty' => array( | |
'type' => 'combo-boolean', | |
'value' => false | |
), | |
'showCurrent' => array( | |
'type' => 'combo-boolean', | |
'value' => true | |
), | |
'showHome' => array( | |
'type' => 'combo-boolean', | |
'value' => false | |
), | |
'showAtHome' => array( | |
'type' => 'combo-boolean', | |
'value' => true | |
), | |
'hideSingle' => array( | |
'type' => 'combo-boolean', | |
'value' => false | |
), | |
'direction' => array( | |
'type' => 'list', | |
'options' => array( | |
array( | |
'name' => 'Left To Right (ltr)', | |
'value' => 'ltr' | |
), | |
array( | |
'name' => 'Right To Left (rtl)', | |
'value' => 'rtl' | |
) | |
), | |
'value' => 'ltr' | |
), | |
'scheme' => array( | |
'type' => 'list' | |
, | |
'options' => array( | |
array( | |
'name' => 'System default', | |
'value' => '' | |
), | |
array( | |
'name' => '-1 (relative to site_url)', | |
'value' => -1 | |
) | |
, | |
array( | |
'name' => 'full (absolute, prepended with site_url)', | |
'value' => 'full' | |
) | |
, | |
array( | |
'name' => 'abs (absolute, prepended with base_url)', | |
'value' => 'abs' | |
) | |
, | |
array( | |
'name' => 'http (absolute, forced to http scheme)', | |
'value' => 'http' | |
) | |
, | |
array( | |
'name' => 'https (absolute, forced to https scheme)', | |
'value' => 'https' | |
) | |
), | |
'value' => '' | |
), | |
'useWeblinkUrl' => array( | |
'type' => 'combo-boolean', | |
'value' => true, | |
), | |
) | |
); | |
foreach ($tmp as $n => $t) { | |
foreach ($t as $k => $v) { | |
$sets[$n][$k] = array_merge(array( | |
'name' => $k, | |
'desc' => 'pdotools_prop_' . $k, | |
'lexicon' => 'pdotools:properties', | |
), $v | |
); | |
} | |
} | |
return $sets; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment