• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP wp_print_styles函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中wp_print_styles函数的典型用法代码示例。如果您正苦于以下问题:PHP wp_print_styles函数的具体用法?PHP wp_print_styles怎么用?PHP wp_print_styles使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了wp_print_styles函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: display

    public function display()
    {
        wp_register_style('fm_license', WD_FM_URL . '/css/license.css', array(), get_option("wd_form_maker_version"));
        wp_print_styles('fm_license');
        ?>
    <div style="width:99%">
      <div id="featurs_tables">
		  <div id="featurs_table1">
			<span>Unlimited Fields</span>
			<span>File Upload Field</span>
			<span>Google Map</span>
			<span>PayPal Integration</span>
			<span>Front-End Submissions</span>
			<span>Add-ons support</span>
		  </div>
		  <div id="featurs_table2">
			<span>Free</span>
			<span class="no"></span>
			<span class="no"></span>
			<span class="no"></span>
			<span class="no"></span>
			<span class="no"></span>
			<span class="no"></span>
		  </div>
		  <div id="featurs_table3">
			<span>Pro Version</span>
			<span class="yes"></span>
			<span class="yes"></span>
			<span class="yes"></span>
			<span class="yes"></span>
			<span class="yes"></span>
			<span class="yes"></span>
		  </div>
		</div>
	<div style="float: right; text-align: right;">
        <a style="text-decoration: none;" target="_blank" href="https://web-dorado.com/files/fromFormMaker.php">
          <img width="215" border="0" alt="web-dorado.com" src="<?php 
        echo WD_FM_URL . '/images/wd_logo.png';
        ?>
" />
        </a>
      </div>
	<div style="float: left; clear: both;">
      <a href="https://web-dorado.com/files/fromFormMaker.php" class="button-primary" target="_blank">Purchase a License</a>
      <br/><br/>
      <p>After purchasing the commercial version follow these steps:</p>
      <ol>
        <li>Deactivate Form Maker Plugin.</li>
        <li>Delete Form Maker Plugin.</li>
        <li>Install the downloaded commercial version of the plugin.</li>
      </ol>
      <br/>
      <p>If you enjoy using Form Maker and find it useful, please consider making a donation. Your donation will help encourage and support the plugin's continued development and better user support.</p>
      <br/>
      <a href="https://web-dorado.com/files/donate_redirect.php" target="_blank">
	  <div class="fm-get-pro"></div>
	  </a>
    </div>
    <?php 
    }
开发者ID:ksan5835,项目名称:rankproperties,代码行数:60,代码来源:FMViewLicensing_fm.php


示例2: wrap

    function wrap($content)
    {
        $html = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<meta name="robots" content="NOINDEX,NOFOLLOW">
<meta charset="utf-8" />
<title>' . __('Wysija Subscription', WYSIJA) . '</title>';
        global $wp_scripts, $wp_styles;
        ob_start();
        wp_print_scripts('jquery');
        wp_print_styles('validate-engine-css');
        if (isset($_REQUEST['external_site'])) {
            $iframeJsUrl = $iframeCssUrl = false;
            //check if an iframe.css file exists in the site uploads/wysija/css/iframe.css or in MS blogs.dir/5/files/wysija/css/iframe.css
            if (file_exists(WYSIJA_UPLOADS_DIR . 'css' . DS . 'iframe.css')) {
                $iframeCssUrl = WYSIJA_UPLOADS_URL . 'css/iframe.css';
            } else {
                //if we are in a multisite check to see if there is a file defined in the main site
                if (is_multisite() && file_exists(WYSIJA_UPLOADS_MS_DIR . 'css' . DS . 'iframe.css')) {
                    $iframeCssUrl = WYSIJA_UPLOADS_MS_URL . 'css/iframe.css';
                }
            }
            $iframeCssUrl = apply_filters('wysija_iframe_css_url', $iframeCssUrl);
            //check if an iframe.js file exists in the site uploads/wysija/js/iframe.js or in MS blogs.dir/5/files/wysija/js/iframe.js
            if (file_exists(WYSIJA_UPLOADS_DIR . 'js' . DS . 'iframe.js')) {
                $iframeJsUrl = WYSIJA_UPLOADS_URL . 'js/iframe.js';
            } else {
                //if we are in a multisite check to see if there is a file defined in the main site
                if (is_multisite() && file_exists(WYSIJA_UPLOADS_MS_DIR . 'js' . DS . 'iframe.js')) {
                    $iframeJsUrl = WYSIJA_UPLOADS_MS_URL . 'js/iframe.js';
                }
            }
            $iframeJsUrl = apply_filters('wysija_iframe_js_url', $iframeJsUrl);
            //if an iframe file has been detected then load it
            if ($iframeCssUrl) {
                wp_register_style('wysija-iframe-css', $iframeCssUrl, array(), WYSIJA::get_version());
                wp_print_styles('wysija-iframe-css');
            }
            //if an iframe js file has been detected then load it
            if ($iframeJsUrl) {
                wp_register_style('wysija-iframe-js', $iframeJsUrl, array(), WYSIJA::get_version());
                wp_print_styles('wysija-iframe-js');
            }
        }
        wp_print_scripts('wysija-validator-lang');
        wp_print_scripts('wysija-validator');
        wp_print_scripts('wysija-front-subscribers');
        $html .= ob_get_contents();
        ob_end_clean();
        $html .= '</head><body>';
        if (isset($_REQUEST['external_site'])) {
            $classform = '';
        } else {
            $classform = ' iframe-hidden';
        }
        $html .= '<div class="wysija-frame' . $classform . '" >' . $content . '</div>';
        $html .= '</body></html>';
        return $html;
    }
开发者ID:pauEscarcia,项目名称:AIMM,代码行数:60,代码来源:widget_nl.php


示例3: print_tooltip_scripts

function print_tooltip_scripts()
{
    wp_enqueue_style('gform_tooltip', GFCommon::get_base_url() . '/css/tooltip.css', null, GFCommon::$version);
    wp_enqueue_style('gform_font_awesome', GFCommon::get_base_url() . '/css/font-awesome.css', null, GFCommon::$version);
    wp_print_scripts('gform_tooltip_init');
    wp_print_styles('gform_tooltip', 'gform_font_awesome');
}
开发者ID:sashadt,项目名称:wp-deploy-test,代码行数:7,代码来源:tooltips.php


示例4: bp_cubepoint_add_css

/**
 * NOTE: You should always use the wp_enqueue_script() and wp_enqueue_style() functions to include
 * javascript and css files.
 */
function bp_cubepoint_add_css()
{
    global $bp;
    // wp_enqueue_style( 'bp-cubepoint-css', dirname(__FILE__) . '/css/general.dev.css' );
    wp_enqueue_style('bp-cubepoint-css', WP_PLUGIN_URL . '/cubepoints-buddypress-integration/includes/css/general.css');
    wp_print_styles();
}
开发者ID:adisonc,项目名称:MaineLearning,代码行数:11,代码来源:bp-cubepoint-cssjs.php


示例5: snp_run_camp

function snp_run_camp($POST_META)
{
    global $snp_ignore_cookies, $wp_scripts;
    $snp_ignore_cookies = true;
    snp_run_popup($POST_META['snp_camp_popup'], $POST_META['snp_camp_use']);
    echo '<!DOCTYPE html>';
    echo '<html><head>';
    echo '<style> body, html { height: 100%; width: 100%;} ';
    echo 'body { display: block;margin: 0;padding: 0;} </style>';
    snp_init();
    //wp_head();
    wp_enqueue_scripts();
    foreach ($wp_scripts->registered as $k => $v) {
        //print_r($v);
        if (!in_array($v->handle, array('jquery', 'jquery-core', 'fancybox2', 'jquery-ui-core', 'jquery-migrate', 'js-ninjapopups', 'jquery-np-cookie', 'jquery-np-placeholder'))) {
            wp_deregister_script($v->handle);
        }
    }
    wp_print_styles();
    print_admin_styles();
    wp_print_head_scripts();
    echo '</head><body>';
    echo '<iframe src="' . $POST_META['snp_camp_dest_url'] . '" style="width: 100%; height: 100%; border: 0; padding: 0; margin: 0; line-height: 0; display: block;"></iframe>';
    snp_footer();
    wp_print_footer_scripts();
    echo '</body></html>';
    die('');
}
开发者ID:m-godefroid76,项目名称:devrestofactory,代码行数:28,代码来源:init.php


示例6: xprofile_add_css

function xprofile_add_css()
{
    if ($_SERVER['SCRIPT_NAME'] == '/wp-signup.php') {
        wp_enqueue_style('bp-xprofile-signup', BP_PLUGIN_URL . '/bp-xprofile/css/signup.css');
    }
    wp_print_styles();
}
开发者ID:alvaropereyra,项目名称:shrekcms,代码行数:7,代码来源:bp-xprofile-cssjs.php


示例7: wrap

    function wrap($content)
    {
        $html = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<meta name="robots" content="NOINDEX,NOFOLLOW">
<meta charset="utf-8" />
<title>' . __('Wysija Subscription', WYSIJA) . '</title>';
        global $wp_scripts, $wp_styles;
        ob_start();
        //if(isset($_REQUEST['external_site'])) wp_head();
        wp_print_scripts('jquery');
        wp_print_styles('validate-engine-css');
        //add custom css for external site iframe
        if (isset($_REQUEST['external_site']) && file_exists(WYSIJA_UPLOADS_DIR . 'css' . DS . 'iframe.css')) {
            wp_register_style('wysija-iframe', WYSIJA_UPLOADS_URL . "css/iframe.css", array(), WYSIJA::get_version());
            wp_print_styles('wysija-iframe');
        }
        wp_print_scripts('wysija-validator-lang');
        wp_print_scripts('wysija-validator');
        wp_print_scripts('wysija-front-subscribers');
        $html .= ob_get_contents();
        ob_end_clean();
        $html .= '</head><body>';
        if (isset($_REQUEST['external_site'])) {
            $classform = '';
        } else {
            $classform = ' iframe-hidden';
        }
        $html .= '<div class="wysija-frame' . $classform . '" >' . $content . '</div>';
        $html .= '</body></html>';
        return $html;
    }
开发者ID:rotoballer,项目名称:emily,代码行数:33,代码来源:widget_nl.php


示例8: messages_add_autocomplete_css

/**
 * Enqueue the CSS for messages autocomplete.
 *
 * @todo Why do we call wp_print_styles()?
 */
function messages_add_autocomplete_css()
{
    if (bp_is_messages_component() && bp_is_current_action('compose')) {
        wp_enqueue_style('bp-messages-autocomplete');
        wp_print_styles();
    }
}
开发者ID:swissspidy,项目名称:BuddyPress,代码行数:12,代码来源:bp-messages-cssjs.php


示例9: simplepopup_enqueue_editor

function simplepopup_enqueue_editor()
{
    wp_enqueue_script('common');
    wp_enqueue_script('jquery-affect');
    wp_admin_css('thickbox');
    wp_print_scripts('post');
    wp_print_scripts('media-upload');
    wp_print_scripts('jquery');
    wp_print_scripts('jquery-ui-core');
    wp_print_scripts('jquery-ui-tabs');
    wp_print_scripts('tiny_mce');
    wp_print_scripts('editor');
    wp_print_scripts('editor-functions');
    /* Include thе link dialog functions */
    require_once ABSPATH . 'wp-admin/includes/internal-linking.php';
    wp_print_scripts('wplink');
    wp_print_styles('wplink');
    add_action('tiny_mce_preload_dialogs', 'wp_link_dialog');
    add_thickbox();
    wp_tiny_mce();
    wp_admin_css();
    wp_enqueue_script('utils');
    do_action("admin_print_styles-post-php");
    do_action('admin_print_styles');
    //remove_all_filters('mce_external_plugins');
}
开发者ID:nullality,项目名称:FEWD-SEA-7,代码行数:26,代码来源:sp-options.php


示例10: head

 /**
  * Print only resources queued for the Geo Mashup map frame.
  * 
  * Can be replaced with wp_head() to include all blog resources in
  * map frames.
  * 
  * @since 1.4
  */
 public static function head()
 {
     $styles = self::map_property('styles');
     wp_print_styles($styles);
     $scripts = self::map_property('scripts');
     wp_print_scripts($scripts);
 }
开发者ID:pioneerskies,项目名称:geobeni,代码行数:15,代码来源:render-map.php


示例11: contact_form_parse

function contact_form_parse($content)
{
    // first parse all the contact-field shortcodes into an array
    global $contact_form_fields, $grunion_form;
    $contact_form_fields = array();
    if (empty($_REQUEST['action']) || $_REQUEST['action'] != 'grunion_shortcode_to_json') {
        wp_print_styles('grunion.css');
    }
    $out = do_shortcode($content);
    if (empty($contact_form_fields) || !is_array($contact_form_fields)) {
        // default form: same as the original Grunion form
        $default_form = '
		[contact-field label="' . __('Name') . '" type="name" required="true" /]
		[contact-field label="' . __('Email') . '" type="email" required="true" /]
		[contact-field label="' . __('Website') . '" type="url" /]';
        if ('yes' == strtolower($grunion_form->show_subject)) {
            $default_form .= '
			[contact-field label="' . __('Subject') . '" type="subject" /]';
        }
        $default_form .= '
		[contact-field label="' . __('Message') . '" type="textarea" /]';
        $out = do_shortcode($default_form);
    }
    return $out;
}
开发者ID:m-godefroid76,项目名称:devrestofactory,代码行数:25,代码来源:grunion-contact-form.php


示例12: syl_header

/**
 * syl_header function.
 *
 * @description header function for themes to use
 * @access public
 * @since 1.0.0
 * @return void
 */
function syl_header()
{
    do_action('before_syl_header');
    wp_print_styles();
    wp_print_scripts();
    do_action('after_syl_header');
}
开发者ID:plusplusminus,项目名称:htwe,代码行数:15,代码来源:woothemes-syl-functions.php


示例13: print_footer_scripts

 /**
  * Add pointer script
  *
  * @action wpem_print_footer_scripts_theme
  */
 public function print_footer_scripts()
 {
     wp_print_styles('wp-pointer');
     wp_print_scripts('wp-pointer');
     wp_print_scripts('wpem-pointers');
     wp_print_scripts('wpem-theme');
 }
开发者ID:ChrisSargent,项目名称:moodesignz,代码行数:12,代码来源:class-step-theme.php


示例14: outputScripts

    public function outputScripts()
    {
        if (empty($this->_post_brushes)) {
            return;
        }
        echo "<!-- Auto SyntaxHighlighter -->\n";
        if (!$this->_html_script) {
            wp_print_scripts('ash_autoloader');
        } else {
            wp_print_scripts('ash_brush_xml');
        }
        wp_print_styles('ash_theme_' . $this->_themes);
        ?>

<script type='text/javascript'>
SyntaxHighlighter.autoloader(
<?php 
        $brushes_script = '';
        foreach ($this->_brushes as $k => $v) {
            $brushes_script .= "\t" . '\'' . $v[0] . '	' . ASH_PLUGIN_URL . 'SyntaxHighlighter/build/scripts/' . $v[1] . '\',' . "\n";
        }
        $brushes_script = substr($brushes_script, 0, -2);
        echo $brushes_script . "\n";
        ?>

);
SyntaxHighlighter.defaults['auto-links'] = false;
SyntaxHighlighter.defaults['toolbar'] = false;
SyntaxHighlighter.all();
</script>
<!-- /Auto SyntaxHighlighter -->
<?php 
    }
开发者ID:rinodung,项目名称:kenhcongdong,代码行数:33,代码来源:auto-syntaxhighlighter.php


示例15: messages_add_autocomplete_css

function messages_add_autocomplete_css() {
	global $bp;

	if ( $bp->current_component == $bp->messages->slug && 'compose' == $bp->current_action ) {
		wp_enqueue_style( 'bp-messages-autocomplete', BP_PLUGIN_URL . '/bp-messages/css/autocomplete/jquery.autocompletefb.css' );
		wp_print_styles();
	}
}
开发者ID:n-sane,项目名称:zaroka,代码行数:8,代码来源:bp-messages-cssjs.php


示例16: print_tooltip_scripts

function print_tooltip_scripts()
{
    wp_register_script('qtip-lib', GFCommon::get_base_url() . "/js/jquery.qtip-1.0.0-rc2.min.js", null, GFCommon::$version);
    wp_enqueue_script('qtip-init', GFCommon::get_base_url() . "/js/qtip_init.js", array('qtip-lib'), GFCommon::$version);
    wp_enqueue_style("gf_tooltip", GFCommon::get_base_url() . "/css/tooltip.css", null, GFCommon::$version);
    wp_print_scripts();
    wp_print_styles();
}
开发者ID:hypenotic,项目名称:slowfood,代码行数:8,代码来源:tooltips.php


示例17: print_tooltip_scripts

function print_tooltip_scripts()
{
    $min = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG || isset($_GET['gform_debug']) ? '' : '.min';
    wp_enqueue_style('gform_tooltip', GFCommon::get_base_url() . "/css/tooltip{$min}.css", null, GFCommon::$version);
    wp_enqueue_style('gform_font_awesome', GFCommon::get_base_url() . "/css/font-awesome{$min}.css", null, GFCommon::$version);
    wp_print_scripts('gform_tooltip_init');
    wp_print_styles('gform_tooltip', 'gform_font_awesome');
}
开发者ID:Junaid-Farid,项目名称:gocnex,代码行数:8,代码来源:tooltips.php


示例18: insert_tool_head

 function insert_tool_head()
 {
     wp_print_styles('sws-insert-tool');
     wp_print_scripts('sws-insert-tool');
     if (!$this->show_in_metabox) {
         add_action('admin_footer', array(&$this, 'shortcode_dialog'), 1);
     }
 }
开发者ID:Blueprint-Marketing,项目名称:interoccupy.net,代码行数:8,代码来源:class.CSSEditor.php


示例19: ru_accomodate_markup

function ru_accomodate_markup()
{
    global $locale, $wp_styles;
    wp_enqueue_style($locale, "http://ru.wordpress.com/wp-content/languages/{$locale}.css", array(), '20090128', 'all');
    wp_enqueue_style("{$locale}-ie", "http://ru.wordpress.com/wp-content/languages/{$locale}-ie.css", array(), '20090128', 'all');
    $wp_styles->add_data("{$locale}-ie", 'conditional', 'IE');
    wp_print_styles();
}
开发者ID:slaFFik,项目名称:l10n-ru,代码行数:8,代码来源:ru.php


示例20: messages_add_autocomplete_css

function messages_add_autocomplete_css()
{
    if (bp_is_messages_component() && bp_is_current_action('compose')) {
        $min = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
        wp_enqueue_style('bp-messages-autocomplete', buddypress()->plugin_url . "bp-messages/css/autocomplete/jquery.autocompletefb{$min}.css", array(), bp_get_version());
        wp_print_styles();
    }
}
开发者ID:danielcoats,项目名称:schoolpress,代码行数:8,代码来源:bp-messages-cssjs.php



注:本文中的wp_print_styles函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP wp_protect_special_option函数代码示例发布时间:2022-05-23
下一篇:
PHP wp_print_scripts函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap