コード例 #1
0
        $extension = strtolower($extension);
        $the_value = strtolower($filename);
        $filename_ucwords = str_replace('-', ' ', $filename);
        $filename_ucwords = ucwords($filename_ucwords);
        $filename_ucwords = str_replace('Ecae Buttonskin ', '', ucwords($filename_ucwords));
        if ($extension == 'png') {
            $data = array("label" => "{$filename_ucwords} (Premium)", "value" => "{$the_value}-PREMIUMtrue");
            array_push($button_skin, $data);
        }
    }
    if (substr($button_skin_val, -12) == "-PREMIUMtrue") {
        $button_skin_val = "ecae-buttonskin-none";
    }
}
$option_select = array("name" => "tonjoo_ecae_options[button_skin]", "description" => "", "label" => __("Button Skin", TONJOO_ECAE), "value" => $button_skin_val, "select_array" => $button_skin, "id" => "tonjoo-ecae-button_skin");
tj_print_select_option($option_select);
?>

<tr><td colspan=3><h3 class="meta-subtitle"><?php 
_e('Button Shortcode', TONJOO_ECAE);
?>
</h3></td></tr>
<tr valign="top">
	<th colspan=3>
		<?php 
_e('You can manually add the button by put this shortcode to your post', TONJOO_ECAE);
?>
: <code>[ecae_button]</code>
		<br /><br />
		<i><?php 
_e('Required "strip shortcode options" = No', TONJOO_ECAE);
コード例 #2
0
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);
?>

<tr valign="top">
	<th><?php 
_e("Image width", TONJOO_ECAE);
?>
</th>
	<td>
		<input type="radio" name="tonjoo_ecae_options[image_width_type]" value="auto" <?php 
if ($options['image_width_type'] == 'auto') {
    echo 'checked';
}
?>
 >
		Auto
コード例 #3
0
?>
 <?php 
echo $anouncement;
?>
 </h3></td></tr>

<?php 
$args = array('selected' => 0, 'name' => 'advanced_page[]');
$advanced_page = $options['advanced_page'];
$page_post_type = $options['page_post_type'];
$page_category = $options['page_category'];
?>

<?php 
$advanced_select = array("name" => "tonjoo_ecae_options[advanced_page_main]", "description" => "", "label" => __("Page excerpt", TONJOO_ECAE), "value" => $options['advanced_page_main'], "select_array" => $advanced_all_selection);
tj_print_select_option($advanced_select);
?>

<?php 
/**
 * Excerpt in page for the advanced options
 */
$args = array('selected' => $options['excerpt_in_page_advanced'], 'echo' => 0, 'exclude' => "{$page_on_front},{$page_for_posts}", 'walker' => new Walker_PageDropdown_Multiple());
$exc_in_page_adv = wp_dropdown_pages($args);
$exc_in_page_adv = preg_replace('#^\\s*<select[^>]*>#', '', $exc_in_page_adv);
$exc_in_page_adv = preg_replace('#</select>\\s*$#', '', $exc_in_page_adv);
?>

<tr valign="top" class="page_all">
	<th><?php 
_e("Excerpt size", TONJOO_ECAE);