示例#1
0
function op_font_options_str($title, $fieldname, $values = array())
{
    static $field_count = 0;
    $fieldid = str_replace(array('[]', '][', '[', ']'), array('_' . $field_count, '_', '_', ''), $fieldname) . '_';
    $field_count++;
    return '
		<div class="feature-area-font-dropdown">
			<label class="form-title" for="' . $fieldid . 'font">' . $title . '</label>
			<div class="font-chooser cf">
				' . op_font_size_dropdown($fieldname . '[font_size]', op_get_var($values, 'font_size'), $fieldid . 'size') . op_font_dropdown($fieldname . '[font_font]', op_get_var($values, 'font_font'), $fieldid . 'family') . op_font_style_dropdown($fieldname . '[font_style]', op_get_var($values, 'font_style'), $fieldid . 'style') . op_color_picker($fieldname . '[font_color]', op_get_var($values, 'font_color'), $fieldid . 'color', false, true) . '
				<a href="#reset" class="reset-link">Reset</a>
			</div>
		</div>
	';
}
示例#2
0
		<li>
			<label for="<?php 
        echo $tmp_id;
        ?>
size" class="form-title"><?php 
        echo $title;
        ?>
</label>
			 <?php 
        echo empty($help) ? '' : '<p class="op-micro-copy">' . $help . '</p>';
        ?>
			<div class="font-chooser cf">
			<?php 
        $opt_array = array('typography', 'font_elements', $element);
        $opts = op_get_option($opt_array);
        echo op_font_size_dropdown($tmp_field . '[size]', op_default_option($opt_array, 'size'), $tmp_id . 'size');
        echo op_font_dropdown($tmp_field . '[font]', op_default_option($opt_array, 'font'), $tmp_id . 'font');
        echo op_font_style_dropdown($tmp_field . '[style]', op_default_option($opt_array, 'style'), $tmp_id . 'style');
        // echo "<div class='clear'></div>";
        op_color_picker($tmp_field . '[color]', op_default_option($opt_array, 'color'), $tmp_id . 'color');
        ?>
				<a href="#reset" class="reset-link"><?php 
        _e('Reset', OP_SN);
        ?>
</a>
			</div>

		</li>
	<?php 
    }
    ?>
示例#3
0
esc_attr_e('Choose a Different Element Setting', OP_SN);
?>
"></a><span class="title-text"><?php 
_e('Step 4', OP_SN);
?>
</span> <div class="help-vid-link tooltip animated pulse" title="Help"><?php 
op_asset_help_vid('step_4');
?>
</div></div>
            </div>
        </li>
    </ul>
	<div id="op_assets_default_elements" style="display:none">
	   	<?php 
$tmp_id = 'op_font';
echo op_font_size_dropdown($tmp_id . '[size]', '', $tmp_id . 'size');
echo op_font_visual_dropdown($tmp_id . 'font');
echo op_font_style_dropdown($tmp_id . '[style]', '', $tmp_id . 'style');
echo op_font_style_checkbox($tmp_id . '[style_checkbox_text]', '', $tmp_id . 'style_checkbox_text');
echo op_font_style_checkbox($tmp_id . '[style_checkbox_subtext]', '', $tmp_id . 'style_checkbox_subtext');
echo op_font_spacing_dropdown($tmp_id . '[spacing]', '', $tmp_id . 'spacing');
echo op_font_shadow_dropdown($tmp_id . '[shadow]', '', $tmp_id . 'shadow');
?>
        <div id="op_dummy_wysiwyg">
        <?php 
$GLOBALS['op_disable_asset_link'] = true;
op_tiny_mce('', 'opassetswysiwyg');
$GLOBALS['op_disable_asset_link'] = false;
?>
        </div>
        <div id="op_dummy_media_container"><?php 
示例#4
0
                     <?php 
        echo empty($help) ? '' : '<p class="op-micro-copy">' . __($help, OP_SN) . '</p>';
        ?>
                    <div class="font-chooser cf">
                    <?php 
        $opt_array = array('default_typography', 'font_elements', $element);
        $page_opt_array = array('typography', 'font_elements', $element);
        $size = op_default_page_option($page_opt_array, 'size');
        $font = op_default_page_option($page_opt_array, 'font');
        $style = op_default_page_option($page_opt_array, 'style');
        $color = op_default_page_option($page_opt_array, 'color');
        $size = !empty($size) ? op_default_page_option($page_opt_array, 'size') : op_default_option($opt_array, 'size');
        $font = !empty($font) ? op_default_page_option($page_opt_array, 'font') : op_default_option($opt_array, 'font');
        $style = !empty($style) ? op_default_page_option($page_opt_array, 'style') : op_default_option($opt_array, 'style');
        $color = !empty($color) ? op_default_page_option($page_opt_array, 'color') : op_default_option($opt_array, 'color');
        echo op_font_size_dropdown($tmp_field . '[size]', $size, $tmp_id . 'size');
        echo op_font_dropdown($tmp_field . '[font]', $font, $tmp_id . 'font');
        echo op_font_style_dropdown($tmp_field . '[style]', $style, $tmp_id . 'style');
        // echo "<div class='clear'></div>";
        op_color_picker($tmp_field . '[color]', $color, $tmp_id . 'color');
        ?>
                        <a href="#reset" class="reset-link">Reset</a>
                    </div>
                   
                </li>
            <?php 
    }
    ?>
            </ul>
            <?php 
}
示例#5
0
?>
_text">
                <input type="text" name="<?php 
echo $fieldname;
?>
[content]"<?php 
if ($buttonType != 1) {
    echo ' disabled="disabled"';
}
?>
 id="op_assets_submit_button_text_box_text_properties_1_text" value="<?php 
op_attr(op_get_var($button, 'content', 'Get Started Now'), true);
?>
" />
                <?php 
echo op_font_size_dropdown($fieldname . '[text_size]', op_get_var($button, 'text_size', 32), 'op_assets_submit_button_text_box_text_properties_1_size');
echo op_font_visual_dropdown_with_input('op_assets_submit_button_text_box_text_properties_1_container', $fieldname . '[text_font]', op_get_var($button, 'text_font'));
echo op_color_picker($fieldname . '[text_color]', op_get_var($button, 'text_color', '#000000'), 'op_assets_submit_button_text_box_text_properties_1_color', false, true);
?>
                <div class="style-checkbox-selector cf field-id-op_assets_submit_button_text_box_text_properties_1">
                    <input name="<?php 
echo $fieldname;
?>
[text_bold]" value="1" type="checkbox"<?php 
checked('1', op_get_var($button, 'text_bold', '1'));
?>
 class="op-font-style-checkbox op-font-style-bold" id="op_assets_submit_button_text_box_text_bold_1">
                    <label class="op-font-style-checkbox-bold"><?php 
_e('Bold', OP_SN);
?>
</label>