Пример #1
0
$yes_no_options = array('0' => array('value' => 'no', 'label' => __('No', TONJOO_ECAE)), '1' => array('value' => 'yes', 'label' => __('Yes', TONJOO_ECAE)));
$yes_no_select = array("name" => "tonjoo_ecae_options[strip_empty_tags]", "description" => __("If you select 'yes' any empty HTML tags will be ommited from the excerpt", TONJOO_ECAE), "label" => __("Strip empty HTML tags", TONJOO_ECAE), "value" => $options['strip_empty_tags'], "select_array" => $yes_no_options);
echo tj_print_select_option($yes_no_select);
$yes_no_options = array('0' => array('value' => 'no', 'label' => __('No', TONJOO_ECAE)), '1' => array('value' => 'yes', 'label' => __('Yes', TONJOO_ECAE)));
$yes_no_select = array("name" => "tonjoo_ecae_options[disable_on_feed]", "description" => __("Disable any excerpt on RSS feed", TONJOO_ECAE), "label" => __("Disable on RSS Feed", TONJOO_ECAE), "value" => $options['disable_on_feed'], "select_array" => $yes_no_options);
echo tj_print_select_option($yes_no_select);
$yes_no_select = array("name" => "tonjoo_ecae_options[special_method]", "description" => __("Use this method only if there are any problem with the excerpt", TONJOO_ECAE), "label" => __("Special method", TONJOO_ECAE), "value" => $options['special_method'], "select_array" => $yes_no_options);
echo tj_print_select_option($yes_no_select);
$yes_no_options = array('0' => array('value' => 'no', 'label' => __('No', TONJOO_ECAE)), '1' => array('value' => 'yes', 'label' => __('Yes', TONJOO_ECAE)));
$excerpt_yes_options = array('0' => array('value' => 'no', 'label' => __('No', TONJOO_ECAE)), '1' => array('value' => 'yes', 'label' => __('Yes', TONJOO_ECAE)));
echo '<tr><td colspan=3><h3 class="meta-subtitle">' . __('Content Options', TONJOO_ECAE) . '</h3></td></tr>';
$justify_options = array('0' => array('value' => 'no', 'label' => __('No', TONJOO_ECAE)), '1' => array('value' => 'left', 'label' => __('Left', TONJOO_ECAE)), '2' => array('value' => 'right', 'label' => __('Right', TONJOO_ECAE)), '3' => array('value' => 'justify', 'label' => __('Justify', TONJOO_ECAE)), '4' => array('value' => 'center', 'label' => __('Center', TONJOO_ECAE)));
$justify_select = array("name" => "tonjoo_ecae_options[justify]", "description" => __("The plugin will try to align the text on the excerpt page", TONJOO_ECAE), "label" => __("Text align", TONJOO_ECAE), "value" => $options['justify'], "select_array" => $justify_options);
$extra_html_markup = array('label' => __('Extra HTML markup', TONJOO_ECAE), 'name' => 'tonjoo_ecae_options[extra_html_markup]', 'value' => $options['extra_html_markup'], 'description' => __('Extra HTML markup to save. Use "|" (without quote) between markup', TONJOO_ECAE));
tj_print_select_option($justify_select);
tj_print_text_option($extra_html_markup);
echo '<tr><td colspan=3><h3 class="meta-subtitle">' . __('Display Image Options', TONJOO_ECAE) . '</h3></td></tr>';
$yes_no_options = array('0' => array('value' => 'no', 'label' => __("No", TONJOO_ECAE)), '1' => array('value' => 'yes', 'label' => __("Show All Images", TONJOO_ECAE)), '2' => array('value' => 'first-image', 'label' => __('Show only First Image', TONJOO_ECAE)), '3' => array('value' => 'featured-image', 'label' => __('Use Featured Image', TONJOO_ECAE)));
$image_select = array("name" => "tonjoo_ecae_options[show_image]", "description" => "", "label" => __("Content image", TONJOO_ECAE), "value" => $options['show_image'], "select_array" => $yes_no_options, "description" => __("Display Image in excerpt", TONJOO_ECAE));
echo tj_print_select_option($image_select);
// premium anouncement
if (!function_exists('is_ecae_premium_exist')) {
    echo "<tr><td colspan=3><h3 class='meta-subtitle'>";
    printf(__('Purchase the %1$s Premium Edition %2$s to enable all display image options below', TONJOO_ECAE), "<a href='https://www.tonjoostudio.com/addons/easy-custom-auto-excerpt-premium' target='_blank'>", "</a>");
    echo "</h3></td></tr>";
}
echo "<tr><th colspan=3><i>" . __('Image options below is only work for Content Image: Show Only First Image and Use Featured Image', TONJOO_ECAE) . "</i></th></tr>";
$yes_no_options = array('0' => array('value' => 'none', 'label' => __("None", TONJOO_ECAE)), '1' => array('value' => 'left', 'label' => __("Left", TONJOO_ECAE)), '2' => array('value' => 'right', 'label' => __("Right", TONJOO_ECAE)), '3' => array('value' => 'center', 'label' => __('Center', TONJOO_ECAE)), '4' => array('value' => 'float-left', 'label' => __('Float Left', TONJOO_ECAE)), '5' => array('value' => 'float-right', 'label' => __('Float Right', TONJOO_ECAE)));
$image_select = array("name" => "tonjoo_ecae_options[image_position]", "description" => "", "label" => __("Image position", TONJOO_ECAE), "value" => $options['image_position'], "select_array" => $yes_no_options, "description" => __("Image position option", TONJOO_ECAE));
echo tj_print_select_option($image_select);
?>
Пример #2
0
<?php

$readmore_align_options = array('0' => array('value' => 'left', 'label' => __('Left (default)', TONJOO_ECAE)), '1' => array('value' => 'center', 'label' => __('Center', TONJOO_ECAE)), '2' => array('value' => 'right', 'label' => __('Right', TONJOO_ECAE)));
$yes_no_options = array('0' => array('value' => 'no', 'label' => __('No', TONJOO_ECAE)), '1' => array('value' => 'yes', 'label' => __('Yes', TONJOO_ECAE)));
$button_display_option = array('0' => array('value' => 'normal', 'label' => __('Normal', TONJOO_ECAE)), '1' => array('value' => 'always_show', 'label' => __('Always Show', TONJOO_ECAE)), '2' => array('value' => 'always_hide', 'label' => __('Always Hide', TONJOO_ECAE)));
$text_options = array('label' => __('Read more text', TONJOO_ECAE), 'name' => 'tonjoo_ecae_options[read_more]', 'value' => $options['read_more'], 'description' => __('If you do not want to display it, fill with "-" (without quote)', TONJOO_ECAE));
$readmore_text_before_options = array('label' => __('Text before link', TONJOO_ECAE), 'name' => 'tonjoo_ecae_options[read_more_text_before]', 'value' => $options['read_more_text_before'], 'description' => __('Text before read more link', TONJOO_ECAE));
$readmore_inline = array("name" => "tonjoo_ecae_options[readmore_inline]", "description" => __("If you select 'yes', the readmore button will inline with the last paragraph", TONJOO_ECAE), "label" => __("Inline Button", TONJOO_ECAE), "value" => $options['readmore_inline'], "select_array" => $yes_no_options);
$readmore_align_select = array("name" => "tonjoo_ecae_options[read_more_align]", "description" => '', "label" => __("Read more align", TONJOO_ECAE), "value" => $options['read_more_align'], "select_array" => $readmore_align_options);
$readmore_display = array("name" => "tonjoo_ecae_options[button_display_option]", "description" => __("Normal mode = show readmore button, only if content length is bigger than excerpt size", TONJOO_ECAE), "label" => __("Display option", TONJOO_ECAE), "value" => $options['button_display_option'], "select_array" => $button_display_option);
tj_print_select_option($readmore_display);
tj_print_text_option($text_options);
tj_print_text_option($readmore_text_before_options);
tj_print_select_option($readmore_inline);
tj_print_select_option($readmore_align_select);
// premium anouncement
if (!function_exists('is_ecae_premium_exist')) {
    echo "<tr><td colspan=3><h3 class='meta-subtitle'>";
    printf(__('Purchase the %1$s Premium Edition %2$s to enable all button font and the premium button skins', TONJOO_ECAE), "<a href='https://www.tonjoostudio.com/addons/easy-custom-auto-excerpt-premium' target='_blank'>", "</a>");
    echo "</h3></td></tr>";
    echo "<tr><th colspan=3><i>" . __('The black and white button skins are free :)', TONJOO_ECAE) . "</i></th></tr>";
}
$button_font_array = array('0' => array('value' => '', 'label' => 'Use Content Font'), '1' => array('value' => 'Open Sans', 'label' => 'Open Sans'), '2' => array('value' => 'Lobster', 'label' => 'Lobster'), '3' => array('value' => 'Lobster Two', 'label' => 'Lobster Two'), '4' => array('value' => 'Ubuntu', 'label' => 'Ubuntu'), '5' => array('value' => 'Ubuntu Mono', 'label' => 'Ubuntu Mono'), '6' => array('value' => 'Titillium Web', 'label' => 'Titillium Web'), '7' => array('value' => 'Grand Hotel', 'label' => 'Grand Hotel'), '8' => array('value' => 'Pacifico', 'label' => 'Pacifico'), '9' => array('value' => 'Crafty Girls', 'label' => 'Crafty Girls'), '10' => array('value' => 'Bevan', 'label' => 'Bevan'));
$button_font = array("name" => "tonjoo_ecae_options[button_font]", "description" => "", "label" => __("Button Font", TONJOO_ECAE), "value" => $options['button_font'], "select_array" => $button_font_array);
echo tj_print_select_option($button_font);
if (!function_exists('is_ecae_premium_exist')) {
    $options['button_font_size'] = '14';
}
?>

<tr valign="top">