Ejemplo n.º 1
0
 function getOptionsSupported()
 {
     $configs_zenpage = getTinyMCE4ConfigFiles('zenpage');
     $configs_zenphoto = getTinyMCE4ConfigFiles('zenphoto');
     $options = array(gettext('Text editor configuration - Zenphoto') => array('key' => 'tinymce4_zenphoto', 'type' => OPTION_TYPE_SELECTOR, 'order' => 0, 'selections' => $configs_zenphoto, 'null_selection' => gettext('Disabled'), 'desc' => gettext('Applies to <em>admin</em> editable text other than for Zenpage pages and news articles.')), gettext('Text editor configuration - Zenpage') => array('key' => 'tinymce4_zenpage', 'type' => OPTION_TYPE_SELECTOR, 'order' => 0, 'selections' => $configs_zenpage, 'null_selection' => gettext('Disabled'), 'desc' => gettext('Applies to editing on the Zenpage <em>pages</em> and <em>news</em> tabs.')), gettext('Custom image size') => array('key' => 'tinymce_tinyzenpage_customimagesize', 'type' => OPTION_TYPE_TEXTBOX, 'order' => 2, 'desc' => gettext("Predefined size (px) for custom size images included using tinyZenpage.")), gettext('Custom image size') => array('key' => 'tinymce_tinyzenpage_customimagesize', 'type' => OPTION_TYPE_TEXTBOX, 'order' => 2, 'desc' => gettext("Predefined size (px) for custom size images included using tinyZenpage.")), gettext('Custom thumb crop - size') => array('key' => 'tinymce_tinyzenpage_customthumb_size', 'type' => OPTION_TYPE_TEXTBOX, 'order' => 2, 'desc' => gettext("Predefined size (px) for custom cropped thumb images included using tinyZenpage.")), gettext('Custom thumb crop - width') => array('key' => 'tinymce_tinyzenpage_customthumb_cropwidth', 'type' => OPTION_TYPE_TEXTBOX, 'order' => 2, 'desc' => gettext("Predefined crop width (%) for custom cropped thumb  images included using tinyZenpage.")), gettext('Custom thumb crop - height') => array('key' => 'tinymce_tinyzenpage_customthumb_cropheight', 'type' => OPTION_TYPE_TEXTBOX, 'order' => 2, 'desc' => gettext("Predefined crop height (%) for custom cropped thumb images included using tinyZenpage.")));
     return $options;
 }
Ejemplo n.º 2
0
 /**
  * Reports the supported options
  *
  * @return array
  */
 function getOptionsSupported()
 {
     global $_zp_captcha;
     require_once SERVERPATH . '/' . ZENFOLDER . '/' . PLUGIN_FOLDER . '/tinymce4.php';
     $checkboxes = array(gettext('Albums') => 'comment_form_albums', gettext('Images') => 'comment_form_images');
     if (extensionEnabled('zenpage')) {
         $checkboxes = array_merge($checkboxes, array(gettext('Pages') => 'comment_form_pages', gettext('News') => 'comment_form_articles'));
     }
     $configarray = getTinyMCE4ConfigFiles('comment');
     $options = array(gettext('Enable comment notification') => array('key' => 'email_new_comments', 'type' => OPTION_TYPE_CHECKBOX, 'order' => 0, 'desc' => gettext('Email the Admin when new comments are posted')), gettext('Name field') => array('key' => 'comment_name_required', 'type' => OPTION_TYPE_RADIO, 'order' => 0.1, 'buttons' => array(gettext('Omit') => 0, gettext('Show') => 1, gettext('Require') => 'required'), 'desc' => gettext('If the <em>Name</em> field is required, the poster must provide a name.')), gettext('Email field') => array('key' => 'comment_email_required', 'type' => OPTION_TYPE_RADIO, 'order' => 0.2, 'buttons' => array(gettext('Omit') => 0, gettext('Show') => 1, gettext('Require') => 'required'), 'desc' => gettext('If the <em>Email</em> field is required, the poster must provide an email address.')), gettext('Website field') => array('key' => 'comment_web_required', 'type' => OPTION_TYPE_RADIO, 'order' => 0.3, 'buttons' => array(gettext('Omit') => 0, gettext('Show') => 1, gettext('Require') => 'required'), 'desc' => gettext('If the <em>Website</em> field is required, the poster must provide a website.')), gettext('Captcha field') => array('key' => 'Use_Captcha', 'type' => OPTION_TYPE_RADIO, 'order' => 0.4, 'buttons' => array(gettext('Omit') => 0, gettext('For guests') => 2, gettext('Require') => 1), 'desc' => $_zp_captcha->name ? gettext('If <em>Captcha</em> is required, the form will include a Captcha verification.') : '<span class="notebox">' . gettext('No captcha handler is enabled.') . '</span>'), gettext('Address fields') => array('key' => 'comment_form_addresses', 'type' => OPTION_TYPE_RADIO, 'order' => 7, 'buttons' => array(gettext('Omit') => 0, gettext('Show') => 1, gettext('Require') => 'required'), 'desc' => gettext('If <em>Address fields</em> are shown or required, the form will include positions for address information. If required, the poster must supply data in each address field.')), gettext('Allow comments on') => array('key' => 'comment_form_allowed', 'type' => OPTION_TYPE_CHECKBOX_ARRAY, 'order' => 0.9, 'checkboxes' => $checkboxes, 'desc' => gettext('Comment forms will be presented on the checked pages.')), gettext('Toggled comment block') => array('key' => 'comment_form_toggle', 'type' => OPTION_TYPE_CHECKBOX, 'order' => 2, 'desc' => gettext('If checked, existing comments will be initially hidden. Clicking on the provided button will show them.')), gettext('Show author URL') => array('key' => 'comment_form_showURL', 'type' => OPTION_TYPE_CHECKBOX, 'order' => 7, 'desc' => gettext('To discourage SPAM, uncheck this box and the author URL will not be revealed.')), gettext('Only members can comment') => array('key' => 'comment_form_members_only', 'type' => OPTION_TYPE_CHECKBOX, 'order' => 4, 'desc' => gettext('If checked, only logged in users will be allowed to post comments.')), gettext('Allow private postings') => array('key' => 'comment_form_private', 'type' => OPTION_TYPE_CHECKBOX, 'order' => 6, 'desc' => gettext('If checked, posters may mark their comments as private (not for publishing).')), gettext('Allow anonymous posting') => array('key' => 'comment_form_anon', 'type' => OPTION_TYPE_CHECKBOX, 'order' => 5, 'desc' => gettext('If checked, posters may exclude their personal information from the published post.')), gettext('Include RSS link') => array('key' => 'comment_form_rss', 'type' => OPTION_TYPE_CHECKBOX, 'order' => 8, 'desc' => gettext('If checked, an RSS link will be included at the bottom of the comment section.')), gettext('Comments per page') => array('key' => 'comment_form_comments_per_page', 'type' => OPTION_TYPE_TEXTBOX, 'order' => 9, 'desc' => gettext('The comments that should show per page on the admin tab and when using the jQuery pagination')), gettext('Comment editor configuration') => array('key' => 'tinymce4_comments', 'type' => OPTION_TYPE_SELECTOR, 'order' => 1, 'selections' => $configarray, 'null_selection' => gettext('Disabled'), 'desc' => gettext('Configuration file for TinyMCE when used for comments. Set to <code>Disabled</code> to disable visual editing.')), gettext('Pagination') => array('key' => 'comment_form_pagination', 'type' => OPTION_TYPE_CHECKBOX, 'order' => 3, 'desc' => gettext('Uncheck to disable the jQuery pagination of comments. Enabled by default.')));
     return $options;
 }