本文整理汇总了PHP中op_upload_field函数的典型用法代码示例。如果您正苦于以下问题:PHP op_upload_field函数的具体用法?PHP op_upload_field怎么用?PHP op_upload_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了op_upload_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: op_get_var
<?php
$conf = op_get_var($config, 'page_thumbnails');
?>
<label class="form-title"><?php
_e('Page Thumbnail', OP_SN);
?>
</label>
<p class="op-micro-copy"><?php
_e('Select the landing page for this stage of your launch funnel. The user will be redirected here', OP_SN);
?>
</p>
<?php
op_thumb_gallery('op[funnel_pages]' . $field_name . '[page_thumbnails][active_thumbnail_preset]', op_get_var($conf, 'active_thumbnail_preset'), 'page_thumbs');
op_upload_field('op[funnel_pages]' . $field_name . '[page_thumbnails][active_thumbnail]' . $field_ext, op_get_var($conf, 'active_thumbnail'));
?>
<label class="form-title"><?php
_e('Coming Soon Thumbnail', OP_SN);
?>
</label>
<p class="op-micro-copy"><?php
_e('This page contains your launch content, video or training to add value as part of the launch process', OP_SN);
?>
</p>
<?php
op_thumb_gallery('op[funnel_pages]' . $field_name . '[page_thumbnails][inactive_thumbnail_preset]', op_get_var($conf, 'inactive_thumbnail_preset'), 'page_thumbs');
op_upload_field('op[funnel_pages]' . $field_name . '[page_thumbnails][inactive_thumbnail]' . $field_ext, op_get_var($conf, 'inactive_thumbnail'));
示例2: _e
_e('Upload a Banner Image', OP_SN);
?>
</label>
<p class="op-micro-copy"><?php
_e('Upload a header image');
?>
</p>
<?php
op_upload_field('op[sections][header_logo_setup][bgimg]', op_default_option('header_logo_setup', 'bgimg'));
?>
<div class="clear"></div>
<label for="op_sections_header_logo_setup_repeatbgimg" class="form-title"><?php
_e('Upload Repeating Header Image', OP_SN);
?>
</label>
<p class="op-micro-copy"><?php
_e('This would normally be a gradient. Upload a repeating header background image which will be tiled horizontally on your header. We recommend you use a gradient of your choice which is 1px by 250px or the same height as the banner image above if you have uploaded one', OP_SN);
?>
</p>
<?php
op_upload_field('op[sections][header_logo_setup][repeatbgimg]', op_default_option('header_logo_setup', 'repeatbgimg'));
?>
<label><?php
_e('or Choose a header background colour', OP_SN);
?>
</label>
<?php
op_color_picker('op[sections][header_logo_setup][bgcolor]', op_default_attr('header_logo_setup', 'bgcolor'), 'op_header_logo_setup');
?>
</div>
示例3: op_text_field
</label>
<?php
op_text_field('op[sections][flowplayer_license][license_key]', op_default_option('flowplayer_license', 'license_key'));
?>
<label for="op_sections_flowplayer_license_js_file" class="form-title"><?php
_e('HTML5 commercial version file (JS)', OP_SN);
?>
</label>
<?php
op_upload_field('op[sections][flowplayer_license][js_file]', op_default_option('flowplayer_license', 'js_file'));
?>
<label for="op_sections_flowplayer_license_swf_file" class="form-title"><?php
_e('Flash commercial version file (SWF)', OP_SN);
?>
</label>
<?php
op_upload_field('op[sections][flowplayer_license][swf_file]', op_default_option('flowplayer_license', 'swf_file'));
?>
<label for="op_sections_flowplayer_license_custom_logo" class="form-title"><?php
_e('Custom logo', OP_SN);
?>
</label>
<?php
op_upload_field('op[sections][flowplayer_license][custom_logo]', op_default_option('flowplayer_license', 'custom_logo'));
?>
<div class="clear"></div>
</div>
示例4: _e
_e('Upload a Banner Image', 'optimizepress');
?>
</label>
<p class="op-micro-copy"><?php
_e('Recommended if you don\'t have a logo. Upload a header image up to 975px in width with any graphics on it, and we\'ll throw that on instead.', 'optimizepress');
?>
</p>
<?php
op_upload_field('op[sections][blog_header][bgimg]', op_default_option('blog_header', 'bgimg'));
?>
<label for="op_sections_blog_header_repeatbgimg" class="form-title"><?php
_e('Upload Repeating Header Background Image', 'optimizepress');
?>
</label>
<p class="op-micro-copy"><?php
_e('This would normally be a gradient. Upload a repeating header background image which will be tiled horizontally on your header. We recommend you use a gradient of your choice which is 1px by 250px or the same height as the banner image above if you have uploaded one', 'optimizepress');
?>
</p>
<?php
op_upload_field('op[sections][blog_header][repeatbgimg]', $repeatbgimg);
?>
<label><?php
_e('or Choose a header background colour', 'optimizepress');
?>
</label>
<?php
op_color_picker('op[sections][blog_header][bgcolor]', $bgcolor, 'op_blog_header_bgcolor');
?>
</div>
示例5: _e
<div class="op-bsw-grey-panel-content op-bsw-grey-panel-no-sidebar cf" id="op_page_layout_landing_bg">
<label for="op_header_layout_logo" class="form-title"><?php
_e('Background Image', 'optimizepress');
?>
</label>
<p class="op-micro-copy"><?php
_e('Upload a image to use as the background for your page.', 'optimizepress');
?>
</p>
<?php
op_upload_field('op[landing_bg][image]', op_default_page_option('landing_bg', 'image'));
?>
</div>
示例6: op_slider_picker
?>
</label>
<?php
echo op_slider_picker($fieldname . '[inset_shadow_opacity]', op_get_var($button, 'inset_shadow_opacity', 50), 'op_assets_submit_button_inset_shadow_opacity_2', 0, 100, '%');
?>
</div>
</div>
</div>
</div>
<div class="button-option-style button-option-style-7">
<label class?"form-title"><?php
_e('Button Image', OP_SN);
?>
</label>
<?php
op_upload_field($fieldname . '[image]', op_get_var($button, 'image'));
?>
</div>
</div>
<?php
if (1 == op_get_var($button, 'type')) {
?>
<script type="text/javascript">
;(function($){
/*
* This is a fix for missing ready.promise() on jQuery 1.7.2
*/
$.Deferred(function(defer) {
$(defer.resolve);
$.ready.promise = defer.promise;
});
示例7: _e
}
?>
</select>
<label for="op_header_layout_nav_bar_below_logo" class="form-title"><?php
_e('Upload Small Navigation Bar Logo (optional)', OP_SN);
?>
</label>
<p class="op-micro-copy"><?php
_e('If you want to show a small logo in your navigation bar, upload it here. Ensure the logo is in transparent PNG format and no larger than 100x40px', OP_SN);
?>
</p>
<?php
op_upload_field('op[header_layout][nav_bar_below][logo]', op_default_page_option('header_layout', 'nav_bar_below', 'logo'));
?>
<label for="op_header_layout_nav_bar_below_font" class="form-title"><?php
_e('Select Navigation Bar Font (optional)', OP_SN);
?>
</label>
<p class="op-micro-copy"><?php
_e('If you would like to change the font for this navigation menu, you may change these settings below.', OP_SN);
?>
</p>
<?php
$font_family = isset($header_layout['nav_bar_below']['font_family']) ? $header_layout['nav_bar_below']['font_family'] : op_default_option($header_layout['nav_bar_below'], 'font_family');
$font_weight = isset($header_layout['nav_bar_below']['font_weight']) ? $header_layout['nav_bar_below']['font_weight'] : op_default_option($header_layout['nav_bar_below'], 'font_weight');
$font_size = isset($header_layout['nav_bar_below']['font_size']) ? $header_layout['nav_bar_below']['font_size'] : op_default_option($header_layout['nav_bar_below'], 'font_size');
$font_shadow = isset($header_layout['nav_bar_below']['font_shadow']) ? $header_layout['nav_bar_below']['font_shadow'] : op_default_option($header_layout['nav_bar_below'], 'font_shadow');
示例8: _e
<div class="op-bsw-grey-panel-content op-bsw-grey-panel-no-sidebar cf">
<label for="op_favicon" class="form-title"><?php
_e('Upload your favicon', OP_SN);
?>
</label>
<p class="op-micro-copy"><?php
_e('Favicons should be 16px by 16px and in .ico format. You can easily convert images into .ico format using <a href="http://iconverticons.com/online/" target="_blank">http://iconverticons.com/online/</a>.', OP_SN);
?>
</p>
<?php
op_upload_field('op[sections][favicon]', op_default_option('favicon'));
?>
<div class="clear"></div>
</div>
示例9: _e
?>
" />
<label for="<?php
echo $fieldid;
?>
placeholder" class="form-title"><?php
_e('Placeholder:', 'optimizepress');
?>
</label>
<p class="op-micro-copy"><?php
_e('Select an image to use as a placeholder in your video', 'optimizepress');
?>
</p>
<?php
op_upload_field($fieldname . '[placeholder]', $fields['placeholder']);
?>
<div class="op-checkbox-container">
<input type="checkbox" name="<?php
echo $fieldname;
?>
[hide_controls]" id="<?php
echo $fieldid;
?>
hide_controls"<?php
echo $fields['hide_controls'] == 'Y' ? ' checked="checked"' : '';
?>
value="Y" />
<label for="<?php
echo $fieldid;
示例10: _e
?>
</option>
<option value="url"<?php
echo !$file ? ' selected="selected"' : '';
?>
><?php
_e('URL', 'optimizepress');
?>
</option>
</select>
<div class="op-type op-type-file<?php
echo !$file ? ' op-disabled-type' : '';
?>
">
<?php
op_upload_field($fieldname . '[file][]', op_get_var($item, 'upload_img'));
?>
</div>
<div class="op-type op-type-url<?php
echo $file ? ' op-disabled-type' : '';
?>
">
<label for="<?php
echo $id;
?>
imgurl_<?php
echo $index;
?>
" class="form-title"><?php
_e('URL:', 'optimizepress');
?>
示例11: op_upload_field
<?php
op_upload_field($fieldname . '[file]', op_default_attr($section_name, $tab, $name, 'upload_img'));
?>
<label for="<?php
echo $id;
?>
imgurl" class="form-title"><?php
_e('Hosted elsewhere? Paste the link below', 'optimizepress');
?>
</label>
<input type="text" name="<?php
echo $fieldname;
?>
[imgurl]" id="<?php
echo $id;
?>
imgurl" value="<?php
echo op_default_attr($section_name, $tab, $name, 'imgurl');
?>
" />
<label for="<?php
echo $id;
?>
href" class="form-title"><?php
_e('Where do you wish this advertisement to link to?', 'optimizepress');
?>
</label>
<input type="text" name="<?php
echo $fieldname;
示例12: op_font_visual_dropdown
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
op_upload_field('op_dummy_media');
?>
</div>
</div>
</div>
<script type="text/javascript">
if (!("autofocus" in document.createElement("input"))) {
document.getElementById("op_assets_filter").focus();
}
</script>
<script type="text/javascript" src="<?php
echo is_ssl() ? 'https' : 'http';
?>
://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load('webfont','1');
示例13: op_color_picker
op_color_picker('someField[borderBottomColor]', '', 'op_section_row_options_borderBottomColor');
?>
<a href="#reset" class="reset-link">Reset</a>
</div>
</div>
<label><?php
_e('Row background image', OP_SN);
?>
</label>
<p class="op-micro-copy"><?php
_e('Choose an image to use as the row background', OP_SN);
?>
</p>
<?php
op_upload_field('op_row_background');
?>
<br />
<p class="op-micro-copy"><?php
_e('Choose how you would like the background image displayed', OP_SN);
?>
</p>
<select class="op_row_bg_options" id="op_row_bg_options" name="op_bg_options">
<option value="center"><?php
_e('Center (center your background image)', OP_SN);
?>
</option>
<option value="cover"><?php
_e('Cover/Stretch (stretch your background image to fit)', OP_SN);
?>
</option>
示例14: _e
<div id="export_layout_category_new_container"<?php
echo $class2;
?>
>
<input type="text" name="export_layout_category_new" id="export_layout_category_new" value="" />
<input type="button" class="button" value="<?php
_e('Go', 'optimizepress');
?>
" id="export_layout_category_new_submit" />
<div class="op-waiting"><img class="op-bsw-waiting op-show-waiting op-hidden" alt="" src="images/wpspin_light.gif" /></div>
<span class="create-link"><br /><?php
printf(__('%1$sSelect a current one%2$s', 'optimizepress'), '<a href="#" id="export_layout_category_select">', '</a>');
?>
</span>
</div>
<label for="export_layout_image" class="form-title"><?php
_e('Placeholder:', 'optimizepress');
?>
</label>
<?php
op_upload_field('export_layout_image', '', false, 'file', true);
?>
<br />
<input type="button" name="export_layout_submit" id="export_layout_submit" value="<?php
_e('Generate ZIP', 'optimizepress');
?>
" />
<div class="op-waiting op-hidden"><img class="op-bsw-waiting op-show-waiting" alt="" src="images/wpspin_light.gif" /></div>
<div id="op_export_content" class="op-export-content"></div>
示例15: display_settings
//.........这里部分代码省略.........
echo $id;
?>
description" cols="40" rows="5"><?php
echo stripslashes($this->default_attr($section_name, 'description'));
?>
</textarea>
</div>
<div>
<label for="<?php
echo $id;
?>
title" class="form-title"><?php
_e('Meta Keywords', OP_SN);
?>
</label>
<p class="op-micro-copy"><?php
_e($messages[3], OP_SN);
?>
</p>
<input type="text" name="<?php
echo $name;
?>
[keywords]" id="<?php
echo $id;
?>
keywords" value="<?php
echo $this->default_attr($section_name, 'keywords');
?>
" />
</div>
<div>
<label for="<?php
echo $id;
?>
ogtitle" class="form-title"><?php
_e('Facebook Title', OP_SN);
?>
</label>
<p class="op-micro-copy"><?php
//_e($messages[3],OP_SN)
?>
</p>
<input type="text" name="<?php
echo $name;
?>
[ogtitle]" id="<?php
echo $id;
?>
ogtitle" value="<?php
echo $this->default_attr($section_name, 'ogtitle');
?>
" />
</div>
<div>
<label for="<?php
echo $id;
?>
ogdescription" class="form-title"><?php
_e('Facebook Description', OP_SN);
?>
</label>
<p class="op-micro-copy"><?php
//_e($messages[3],OP_SN)
?>
</p>
<input type="text" name="<?php
echo $name;
?>
[ogdescription]" id="<?php
echo $id;
?>
ogdescription" value="<?php
echo $this->default_attr($section_name, 'ogdescription');
?>
" />
</div>
<div>
<label for="<?php
echo $id;
?>
ogimage" class="form-title"><?php
_e('Facebook Image', OP_SN);
?>
</label>
<p class="op-micro-copy"><?php
_e($messages[4], OP_SN);
?>
</p>
<?php
op_upload_field('op[seo][ogimage]', $this->default_attr($section_name, 'ogimage'));
?>
</div>
</div>
</div>
<?php
}
}