本文整理汇总了PHP中add_thickbox函数的典型用法代码示例。如果您正苦于以下问题:PHP add_thickbox函数的具体用法?PHP add_thickbox怎么用?PHP add_thickbox使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了add_thickbox函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: wp_smap_admin_notice
function wp_smap_admin_notice()
{
add_thickbox();
$sharelink_text_array = array("I use Social Media Auto Publish wordpress plugin from @xyzscripts and you should too.", "Social Media Auto Publish wordpress plugin from @xyzscripts is awesome", "Thanks @xyzscripts for developing such a wonderful social media auto publishing wordpress plugin", "I was looking for a social media publishing plugin and I found this. Thanks @xyzscripts", "Its very easy to use Social Media Auto Publish wordpress plugin from @xyzscripts", "I installed Social Media Auto Publish from @xyzscripts,it works flawlessly", "Social Media Auto Publish wordpress plugin that i use works terrific", "I am using Social Media Auto Publish wordpress plugin from @xyzscripts and I like it", "The Social Media Auto Publish plugin from @xyzscripts is simple and works fine", "I've been using this social media plugin for a while now and it is really good", "Social Media Auto Publish wordpress plugin is a fantastic plugin", "Social Media Auto Publish wordpress plugin is easy to use and works great. Thank you!", "Good and flexible social media auto publish plugin especially for beginners", "The best social media auto publish wordpress plugin I have used ! THANKS @xyzscripts");
$sharelink_text = array_rand($sharelink_text_array, 1);
$sharelink_text = $sharelink_text_array[$sharelink_text];
echo '<div id="smap_notice_td" style="clear:both;width:98%;background: none repeat scroll 0pt 0pt #FBFCC5; border: 1px solid #EAEA09;padding:5px;">
<p>It looks like you have been enjoying using <a href="https://wordpress.org/plugins/social-media-auto-publish/" target="_blank"> Social Media Auto Publish</a> plugin from Xyzscripts for atleast 30 days. Would you consider supporting us with the continued development of the plugin using any of the below methods ?</p>
<p>
<a href="https://wordpress.org/support/view/plugin-reviews/social-media-auto-publish" class="button" style="color:black;text-decoration:none;margin-right:4px;" target="_blank">Rate it 5★\'s on wordpress</a>
<a href="http://xyzscripts.com/wordpress-plugins/social-media-auto-publish/purchase" class="button" style="color:black;text-decoration:none;margin-right:4px;" target="_blank">Purchase premium version</a>';
if (get_option('xyz_credit_link') == "0") {
echo '<a class="button xyz_smap_backlink" style="color:black;text-decoration:none;margin-right:4px;" target="_blank">Enable backlink</a>';
}
echo '<a href="#TB_inline?width=250&height=75&inlineId=show_share_icons_smap" class="button thickbox" style="color:black;text-decoration:none;margin-right:4px;" target="_blank">Share on</a>
<a href="admin.php?page=social-media-auto-publish-settings&smap_notice=hide" class="button" style="color:black;text-decoration:none;margin-right:4px;">Don\'t Show This Again</a>
</p>
<div id="show_share_icons_smap" style="display: none;">
<a class="button" style="background-color:#3b5998;color:white;margin-right:4px;margin-left:100px;margin-top: 25px;" href="http://www.facebook.com/sharer/sharer.php?u=http://xyzscripts.com/wordpress-plugins/social-media-auto-publish/" target="_blank">Facebook</a>
<a class="button" style="background-color:#00aced;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="http://twitter.com/share?url=http://xyzscripts.com/wordpress-plugins/social-media-auto-publish/&text=' . $sharelink_text . '" target="_blank">Twitter</a>
<a class="button" style="background-color:#007bb6;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="http://www.linkedin.com/shareArticle?mini=true&url=http://xyzscripts.com/wordpress-plugins/social-media-auto-publish/" target="_blank">LinkedIn</a>
<a class="button" style="background-color:#dd4b39;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="https://plus.google.com/share?&hl=en&url=http://xyzscripts.com/wordpress-plugins/social-media-auto-publish/" target="_blank">Google +</a>
</div>
</div>';
}
示例2: rb_portfolio_loop_content
function rb_portfolio_loop_content()
{
if (have_posts()) {
add_thickbox();
while (have_posts()) {
the_post();
?>
<article <?php
post_class();
?>
>
<?php
rb_portfolio_add_image();
//rb_portfolio_featured_post_image();
the_date('F Y', '<span class="portfolio-date">', '</span>');
genesis_do_post_title();
rb_portfolio_add_authors();
rb_portfolio_display_thickbox_content();
?>
</article>
<?php
}
}
}
示例3: load_admin_scripts
public function load_admin_scripts($hook)
{
global $sc_settings_page;
if ($hook != $sc_settings_page) {
return;
}
wp_enqueue_script('word-count');
wp_enqueue_script('post');
if (user_can_richedit()) {
wp_enqueue_script('editor');
}
add_thickbox();
wp_enqueue_script('media-upload');
wp_enqueue_media();
wp_enqueue_style('wp-color-picker');
wp_enqueue_script('wp-color-picker');
wp_enqueue_script('jquery-ui-slider');
wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('jquery-effects-core');
wp_enqueue_script('jquery-effects-slide');
wp_enqueue_style('jquery-ui-style', '//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css');
// Codemirror
// wp_enqueue_script( 'codemirror-js', plugins_url( '/assets/codemirror-compressed.js', SC_ADS_DIR ), false, false, true );
// wp_enqueue_script( 'codemirror-closebrackets-js', plugins_url( '/assets/codemirror-closebrackets.js', SC_ADS_DIR ), false, false, true );
// wp_enqueue_style( 'codemirror-css', plugins_url( '/assets/codemirror.css', SC_ADS_DIR ) );
// Admin Assets
wp_enqueue_script('sc-ads-admin-js', plugins_url('/assets/admin-scripts.js', SC_ADS_DIR), array('jquery', 'wp-color-picker'), false, true);
wp_enqueue_style('sc-ads-admin-css', plugins_url('/assets/admin-style.css', SC_ADS_DIR));
}
示例4: assets
function assets($hook)
{
$parent = SWP();
$base_url = trailingslashit($parent->url);
wp_register_style('select2', $base_url . 'assets/vendor/select2/select2.css', null, '3.4.1', 'screen');
wp_register_style('swp_admin_css', $base_url . 'assets/css/searchwp.css', false, SEARCHWP_VERSION);
wp_register_style('swp_settings_css', $base_url . 'assets/css/searchwp-settings.css', false, SEARCHWP_VERSION);
wp_register_style('swp_settings_tabs_css', $base_url . 'assets/css/searchwp-settings-tabs.css', false, SEARCHWP_VERSION);
wp_register_script('select2', $base_url . 'assets/vendor/select2/select2.min.js', array('jquery'), '3.4.1', false);
wp_register_script('swp_admin_js', $base_url . 'assets/js/searchwp.js', array('jquery', 'select2'), SEARCHWP_VERSION);
wp_register_script('swp_progress', $base_url . 'assets/js/searchwp-progress.js', array('jquery'), SEARCHWP_VERSION);
// we only want our assets on our Settings page
if ('settings_page_searchwp' == $hook) {
add_thickbox();
wp_enqueue_style('swp_admin_css');
wp_enqueue_style('swp_settings_css');
wp_enqueue_style('swp_settings_tabs_css');
wp_enqueue_style('select2');
wp_enqueue_script('underscore');
wp_enqueue_script('jquery');
wp_enqueue_script('jquery-ui-tooltip');
wp_enqueue_script('select2');
// wp_enqueue_script( 'swp_admin_js' ); // this is echo'd directly into the page
// only trigger the progress script if it's not the alternative indexer
if (!isset($_GET['nonce']) && !$parent->is_using_alternate_indexer()) {
// if a nonce was set we're dealing with advanced settings which might be purging the index
// if this script were included the background process would be invoked, we don't want that right now
wp_enqueue_script('swp_progress');
wp_localize_script('swp_progress', 'ajax_object', array('ajax_url' => admin_url('admin-ajax.php'), 'nonce' => wp_create_nonce('swpprogress')));
}
}
}
示例5: admin_enqueue_scripts
/**
* Enqueue scripts and styles
*/
public static function admin_enqueue_scripts()
{
parent::admin_enqueue_scripts();
add_thickbox();
wp_enqueue_script('media-upload');
wp_enqueue_script('swpmb-thickbox-image', SWPMB_JS_URL . 'thickbox-image.js', array('jquery'), SWP_VERSION, true);
}
示例6: solo_add_thickbox
function solo_add_thickbox()
{
global $post;
if (is_singular() && strpos($post->post_content, 'class="thickbox"') !== false) {
add_thickbox();
}
}
示例7: wp_fbap_admin_notice
function wp_fbap_admin_notice()
{
add_thickbox();
$sharelink_text_array_fb = array("I Use Facebook Auto Publish wordpress plugin from @xyzscriptsdotcom and you should too", "Facebook Auto Publish wordpress Plugin from @xyzscriptsdotcom is Awesome", "Actually i am looking for a social media Plugin like this. Thanks @xyzscriptsdotcom", "Its very nice to use Facebook Auto Publish wordpress Plugin from @xyzscriptsdotcom", "I installed Facebook Auto Publish .. from @xyzscriptsdotcom, It works wonderful", "The Facebook Auto Publish icon wordpress plugin looks soo nice.. thanks @xyzscriptsdotcom", "It awesome to use Facebook Auto Publish wordpress plugin from @xyzscriptsdotcom -", "Facebook Auto Publish wordpress Plugin that i use Looks awesome and works terrific", "I am using Facebook Auto Publish Icon wordpress Plugin from @xyzscriptsdotcom I like it!", "Facebook Auto Publish Icon wordpress plugin is Fantastic Plugin", "Facebook Auto Publish Icon wordpress plugin was easy to use and works great. thank you!", "Good and flexible wp socialmedia plugin especially for beginners.", "Easily the best socialmedia wordpress plugin of the type I have used ! THANKS! @xyzscriptsdotcom");
$sharelink_text_fb = array_rand($sharelink_text_array_fb, 1);
$sharelink_text_fb = $sharelink_text_array_fb[$sharelink_text_fb];
echo '<div id="fb_notice_td" class="error" style="color: #c1c1c1;margin-left: 2px;background: none repeat scroll 0pt 0pt infobackground; border: 1px solid inactivecaption; padding: 5px;line-height:16px;">
<p>It looks like you have been enjoying using <a href="https://wordpress.org/plugins/facebook-auto-publish/" target="_blank"> Facebook Auto Publish </a> plugin from Xyzscripts for atleast 30 days.Would you consider supporting us with the continued development of the plugin using any of the below methods?</p>
<p>
<a href="https://wordpress.org/support/view/plugin-reviews/facebook-auto-publish" class="button" style="color:black;text-decoration:none;padding:5px;margin-right:4px;" target="_blank">Rate it 5★\'s on wordpress</a>
<a href="http://xyzscripts.com/wordpress-plugins/social-media-auto-publish/purchase" class="button" style="color:black;text-decoration:none;padding:5px;margin-right:4px;" target="_blank">Purchase premium version</a>';
if (get_option('xyz_credit_link') == "0") {
echo '<a class="button xyz_fbap_backlink" style="color:black;text-decoration:none;padding:5px;margin-right:4px;" target="_blank">Enable Backlink</a>';
}
echo '<a href="#TB_inline?width=250&height=75&inlineId=show_share_icons_fb" class="button thickbox" style="color:black;text-decoration:none;padding:5px;margin-right:4px;" target="_blank">Share on</a>
<a href="admin.php?page=facebook-auto-publish-settings&fbap_notice=hide" class="button" style="color:black;text-decoration:none;padding:5px;margin-right:4px;">Don\'t Show This Again</a>
</p>
<div id="show_share_icons_fb" style="display: none;">
<a class="button" style="background-color:#3b5998;color:white;margin-right:4px;margin-left:100px;margin-top: 25px;" href="http://www.facebook.com/sharer/sharer.php?u=https://wordpress.org/plugins/facebook-auto-publish/&text=' . $sharelink_text_fb . '" target="_blank">Facebook</a>
<a class="button" style="background-color:#00aced;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="http://twitter.com/share?url=https://wordpress.org/plugins/facebook-auto-publish/&text=' . $sharelink_text_fb . '" target="_blank">Twitter</a>
<a class="button" style="background-color:#007bb6;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="http://www.linkedin.com/shareArticle?mini=true&url=https://wordpress.org/plugins/facebook-auto-publish/" target="_blank">LinkedIn</a>
<a class="button" style="background-color:#dd4b39;color:white;margin-right:4px;margin-left:20px;margin-top: 25px;" href="https://plus.google.com/share?&hl=en&url=https://wordpress.org/plugins/facebook-auto-publish/" target="_blank">google+</a>
</div>
</div>';
}
示例8: indexAction
/**
*
*/
public function indexAction()
{
add_thickbox();
$this->_pm->getLogger()->logPrefixed('Executing ' . get_class($this) . ':indexAction()');
$this->_pm->getBootstrap()->getSelftester()->performTests();
require_once $this->_pm->getPathinfo()->getRootLib() . 'IfwPsn/Wp/Plugin/Menu/Help.php';
require_once $this->_pm->getPathinfo()->getRootLib() . 'IfwPsn/Wp/Plugin/Metabox/Container.php';
require_once $this->_pm->getPathinfo()->getRootLib() . 'IfwPsn/Wp/Plugin/Metabox/PremiumAd.php';
require_once $this->_pm->getPathinfo()->getRootLib() . 'IfwPsn/Wp/Plugin/Metabox/PluginInfo.php';
require_once $this->_pm->getPathinfo()->getRootLib() . 'IfwPsn/Wp/Plugin/Metabox/PluginStatus.php';
require_once $this->_pm->getPathinfo()->getRootLib() . 'IfwPsn/Wp/Plugin/Metabox/IfwFeed.php';
require_once $this->_pm->getPathinfo()->getRootLib() . 'Psn/Admin/Metabox/Rules.php';
// set up contextual help
$help = new IfwPsn_Wp_Plugin_Menu_Help($this->_pm);
$help->setTitle(__('Overview', 'psn'))->setHelp($this->_getHelpText())->setSidebar($this->_getHelpSidebar())->load();
// set up metaboxes
$metaBoxContainerLeft = new IfwPsn_Wp_Plugin_Metabox_Container('column1', $this->_pageHook, 'left');
IfwPsn_Wp_Proxy_Action::doAction('psn_admin_overview_before_metabox_left', $metaBoxContainerLeft);
$metaBoxContainerLeft->addMetabox(new Psn_Admin_Metabox_Rules($this->_pm));
IfwPsn_Wp_Proxy_Action::doAction('psn_admin_overview_after_metabox_left', $metaBoxContainerLeft);
$metaBoxContainerRight = new IfwPsn_Wp_Plugin_Metabox_Container('column2', $this->_pageHook, 'right');
IfwPsn_Wp_Proxy_Action::doAction('psn_admin_overview_before_metabox_right', $metaBoxContainerRight);
if ($this->_pm->hasPremium() && $this->_pm->isPremium() == false) {
$metaBoxContainerRight->addMetabox(new IfwPsn_Wp_Plugin_Metabox_PremiumAd($this->_pm));
}
$metaBoxContainerRight->addMetabox(new IfwPsn_Wp_Plugin_Metabox_PluginInfo($this->_pm));
$metaBoxContainerRight->addMetabox(new IfwPsn_Wp_Plugin_Metabox_PluginStatus($this->_pm));
$metaBoxContainerRight->addMetabox(new IfwPsn_Wp_Plugin_Metabox_IfwFeed($this->_pm));
IfwPsn_Wp_Proxy_Action::doAction('psn_admin_overview_after_metabox_right', $metaBoxContainerRight);
$this->view->metaBoxContainerLeft = $metaBoxContainerLeft;
$this->view->metaBoxContainerRight = $metaBoxContainerRight;
}
示例9: actionMainPage
public function actionMainPage()
{
$groups = new Groups();
// set current group
if (isset($_GET['group'])) {
$this->currentGroup = intval($_GET['group']);
} elseif ($defaultGroup = $groups->get(['default' => 1], ['id'])) {
$this->currentGroup = $defaultGroup[0]->id;
} else {
$this->currentGroup = 0;
}
add_thickbox();
wp_register_style('setget-css', plugins_url() . '/setget/css/style.css');
wp_register_script('setget-js', plugins_url() . '/setget/js/main.js');
wp_enqueue_style('setget-css');
wp_enqueue_script('setget-js');
// content starts here
if (isset($_GET['mode']) && $_GET['mode'] == 'groups') {
$groupsClass = new SetgetGroups();
$groupsClass->viewPage();
} else {
$this->viewSettings();
$this->viewHead();
$this->viewGroupLinks();
$this->viewTableValues();
}
}
示例10: adi_fbook_loadscripts
function adi_fbook_loadscripts()
{
if (!is_admin()) {
wp_enqueue_style('adi-facebook', plugins_url() . '/adi-facebook/css/style.css');
add_thickbox();
}
}
示例11: add_js_mega_menu
function add_js_mega_menu()
{
wp_enqueue_script('set_background', trailingslashit(get_template_directory_uri()) . 'framework/megamenu/js/set_background.js', array('jquery', 'jquery-ui-sortable'), false, true);
wp_enqueue_style('font-awesome', URI_PATH . '/assets/css/font-awesome.min.css', array(), '4.1.0');
wp_enqueue_media();
add_thickbox();
}
示例12: login_link
public static function login_link($args)
{
add_thickbox();
global $ultimatemember;
$out = '';
if (is_user_logged_in()) {
$out .= sprintf('<a href="%s" class="profile-link n8prp-button">Profile</a>', um_user_profile_url());
$account_page_id = $ultimatemember->permalinks->core['account'];
if (!empty($account_page_id)) {
$out .= sprintf('<a href="%s" class="account-link n8prp-button">Account</a>', get_permalink($account_page_id));
}
$out .= sprintf('<a href="%s" class="logout-link n8prp-button">Log out</a>', wp_logout_url());
} else {
$register_page_id = $ultimatemember->permalinks->core['register'];
if (!empty($register_page_id)) {
$out .= sprintf('<a href="%s" class="register-link n8prp-button">Register</a>', get_permalink($register_page_id));
}
$login_page_id = $ultimatemember->permalinks->core['login'];
if (!empty($login_page_id)) {
$out .= sprintf('<a href="%s" class="login-link n8prp-button">Log in</a>', get_permalink($login_page_id));
}
//$out .= sprintf('<div id="n8prp-login-form" style="display:none;">%s</div>', do_shortcode('[ultimatemember form_id=1105]') );
//$out .= '<a href="#TB_inline?width=300&height=550&inlineId=n8prp-login-form" class="thickbox n8prp-button">Log in</a>';
//$out .= '<script type="text/javascript">jQuery(\'.thickbox\').each(function(index, value){';
//$out .= 'var w=window.innerWidth*.85;var h=window.innerHeight*.85;if(w>300){w=300;}';
//$out .= 'var newHref=jQuery(this).attr(\'href\').replace(\'width=300&height=550\', \'width=\'+w+\'&height=\'+h);';
//$out .= 'jQuery(this).attr(\'href\',newHref);});</script>';
}
return $out;
}
示例13: enqueueTheGoods
/**
* Enqueue the CSS and JS needed to make the magic happen
* @param $hook
*/
public function enqueueTheGoods($hook)
{
add_thickbox();
if ($hook == 'post.php') {
wp_enqueue_media();
} else {
if ($hook == 'upload.php') {
$mode = get_user_option('media_library_mode', get_current_user_id()) ? get_user_option('media_library_mode', get_current_user_id()) : 'grid';
if (isset($_GET['mode']) && in_array($_GET['mode'], ['grid', 'list'])) {
$mode = $_GET['mode'];
update_user_option(get_current_user_id(), 'media_library_mode', $mode);
}
if ($mode == 'list') {
$version = get_bloginfo('version');
if (version_compare($version, '4.2.2') < 0) {
wp_dequeue_script('media');
}
wp_enqueue_media();
}
} else {
wp_enqueue_style('media-views');
}
}
wp_enqueue_style('wp-pointer');
wp_enqueue_style('ilab-modal-css', ILAB_PUB_CSS_URL . '/ilab-modal.min.css');
wp_enqueue_style('ilab-media-tools-css', ILAB_PUB_CSS_URL . '/ilab-media-tools.min.css');
wp_enqueue_script('wp-pointer');
wp_enqueue_script('ilab-modal-js', ILAB_PUB_JS_URL . '/ilab-modal.js', ['jquery'], false, true);
wp_enqueue_script('ilab-media-tools-js', ILAB_PUB_JS_URL . '/ilab-media-tools.js', ['jquery'], false, true);
}
示例14: digitalstore_admin_enqueue_scripts
function digitalstore_admin_enqueue_scripts($hook_suffix)
{
wp_enqueue_style('digitalstore-theme-options', get_template_directory_uri() . '/includes/options/digitalstore.theme.options.css', false);
wp_enqueue_script('digitalstore-theme-options', get_template_directory_uri() . '/includes/options/digitalstore.theme.options.js', array('farbtastic', 'thickbox'));
add_thickbox();
wp_enqueue_style('farbtastic');
}
示例15: puma_update_notice
function puma_update_notice()
{
add_thickbox();
echo '<div class="updated">
<p>主题最新版为 ' . get_transient('puma_latest') . ',当前版本 ' . PUMA_VERSION . '。请备份好所有文件,主题升级过程中会删掉原有文件。<a class="thickbox" href="' . admin_url() . 'admin-ajax.php?action=puma_theme_update&TB_iframe=true&width=772&height=312">确认升级</a>
</p></div>';
}