27. StumbleUpon Badge -----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/ /* 1. Woo Shortcodes */ /*-----------------------------------------------------------------------------------*/ // Enable shortcodes in widget areas add_filter('widget_text', 'do_shortcode'); // Add stylesheet for shortcodes to HEAD (added to HEAD in admin-setup.php) if (!function_exists('woo_shortcode_stylesheet') && get_option('framework_woo_disable_shortcodes') != 'true') { function woo_shortcode_stylesheet()
function bp_core_confirmation_js() { global $nxtdb; if (is_multisite() && $nxtdb->blogid != bp_get_root_blog_id()) { return false; } if (!nxt_script_is('jquery')) { nxt_enqueue_script('jquery'); } if (!nxt_script_is('jquery', 'done')) { nxt_print_scripts('jquery'); } ?> <script type="text/javascript"> jQuery(document).ready( function() { jQuery("a.confirm").click( function() { if ( confirm( '<?php _e('Are you sure?', 'buddypress'); ?> ' ) ) return true; else return false; }); });</script> <?php }
function et_add_simple_buttons() { nxt_print_scripts('quicktags'); $output = "<script type='text/javascript'>\n\n\t/* <![CDATA[ */ \n"; $buttons = array(); $buttons[] = array('name' => 'raw', 'options' => array('display_name' => 'raw', 'open_tag' => '\\n[raw]', 'close_tag' => '[/raw]\\n', 'key' => '')); $buttons[] = array('name' => 'one_half', 'options' => array('display_name' => 'one half', 'open_tag' => '\\n[one_half]', 'close_tag' => '[/one_half]\\n', 'key' => '')); $buttons[] = array('name' => 'one_half_last', 'options' => array('display_name' => 'one half last', 'open_tag' => '\\n[one_half_last]', 'close_tag' => '[/one_half_last]\\n', 'key' => '')); $buttons[] = array('name' => 'one_third', 'options' => array('display_name' => 'one third', 'open_tag' => '\\n[one_third]', 'close_tag' => '[/one_third]\\n', 'key' => '')); $buttons[] = array('name' => 'one_third_last', 'options' => array('display_name' => 'one third last', 'open_tag' => '\\n[one_third_last]', 'close_tag' => '[/one_third_last]\\n', 'key' => '')); $buttons[] = array('name' => 'one_fourth', 'options' => array('display_name' => 'one fourth', 'open_tag' => '\\n[one_fourth]', 'close_tag' => '[/one_fourth]\\n', 'key' => '')); $buttons[] = array('name' => 'one_fourth_last', 'options' => array('display_name' => 'one fourth last', 'open_tag' => '\\n[one_fourth_last]', 'close_tag' => '[/one_fourth_last]\\n', 'key' => '')); $buttons[] = array('name' => 'two_third', 'options' => array('display_name' => 'two third', 'open_tag' => '\\n[two_third]', 'close_tag' => '[/two_third]\\n', 'key' => '')); $buttons[] = array('name' => 'two_third_last', 'options' => array('display_name' => 'two third last', 'open_tag' => '\\n[two_third_last]', 'close_tag' => '[/two_third_last]\\n', 'key' => '')); $buttons[] = array('name' => 'three_fourth', 'options' => array('display_name' => 'three fourth', 'open_tag' => '\\n[three_fourth]', 'close_tag' => '[/three_fourth]\\n', 'key' => '')); $buttons[] = array('name' => 'three_fourth_last', 'options' => array('display_name' => 'three fourth last', 'open_tag' => '\\n[three_fourth_last]', 'close_tag' => '[/three_fourth_last]\\n', 'key' => '')); $buttons[] = array('name' => 'three_fourth_last', 'options' => array('display_name' => 'three fourth last', 'open_tag' => '\\n[three_fourth_last]', 'close_tag' => '[/three_fourth_last]\\n', 'key' => '')); $buttons[] = array('name' => 'box', 'options' => array('display_name' => 'box', 'open_tag' => '\\n[box type="shadow"]', 'close_tag' => '[/box]\\n', 'key' => '')); $buttons[] = array('name' => 'tooltip', 'options' => array('display_name' => 'tooltip', 'open_tag' => '[tooltip text="Tooltip Text"]', 'close_tag' => '[/tooltip]', 'key' => '')); $buttons[] = array('name' => 'learn_more', 'options' => array('display_name' => 'learn_more', 'open_tag' => '\\n[learn_more caption="Click here to learn more"]', 'close_tag' => '[/learn_more]\\n', 'key' => '')); $buttons[] = array('name' => 'slider', 'options' => array('display_name' => 'slider', 'open_tag' => '\\n[slider]', 'close_tag' => '[/slider]\\n', 'key' => '')); $buttons[] = array('name' => 'slide', 'options' => array('display_name' => 'slide', 'open_tag' => '\\n[slide]', 'close_tag' => '[/slide]\\n', 'key' => '')); $buttons[] = array('name' => 'button', 'options' => array('display_name' => 'button', 'open_tag' => '\\n[button link="#"]', 'close_tag' => '[/button]\\n', 'key' => '')); $buttons[] = array('name' => 'digg', 'options' => array('display_name' => 'digg', 'open_tag' => '\\n[digg]', 'close_tag' => '[/digg]\\n', 'key' => '')); $buttons[] = array('name' => 'stumble', 'options' => array('display_name' => 'stumble', 'open_tag' => '\\n[stumble]', 'close_tag' => '[/stumble]\\n', 'key' => '')); $buttons[] = array('name' => 'facebook', 'options' => array('display_name' => 'facebook', 'open_tag' => '\\n[facebook]', 'close_tag' => '[/facebook]\\n', 'key' => '')); $buttons[] = array('name' => 'buzz', 'options' => array('display_name' => 'buzz', 'open_tag' => '\\n[buzz]', 'close_tag' => '[/buzz]\\n', 'key' => '')); $buttons[] = array('name' => 'twitter', 'options' => array('display_name' => 'twitter', 'open_tag' => '\\n[twitter name="name"]', 'close_tag' => '[/twitter]\\n', 'key' => '')); $buttons[] = array('name' => 'retweet', 'options' => array('display_name' => 'retweet', 'open_tag' => '\\n[retweet]', 'close_tag' => '[/retweet]\\n', 'key' => '')); $buttons[] = array('name' => 'feedburner', 'options' => array('display_name' => 'feedburner', 'open_tag' => '\\n[feedburner name="name"]', 'close_tag' => '[/feedburner]\\n', 'key' => '')); $buttons[] = array('name' => 'protected', 'options' => array('display_name' => 'protected', 'open_tag' => '\\n[protected]', 'close_tag' => '[/protected]\\n', 'key' => '')); for ($i = 0; $i <= count($buttons) - 1; $i++) { $output .= "edButtons[edButtons.length] = new edButton('ed_{$buttons[$i]['name']}'\n\t\t\t,'{$buttons[$i]['options']['display_name']}'\n\t\t\t,'{$buttons[$i]['options']['open_tag']}'\n\t\t\t,'{$buttons[$i]['options']['close_tag']}'\n\t\t\t,'{$buttons[$i]['options']['key']}'\n\t\t); \n"; } $output .= "\n /* ]]> */ \n\n\t</script>"; echo $output; }
function wlcms_custom_login_logo() { nxt_print_scripts(array('jquery')); $login_custom_logo = get_option('wlcms_o_login_custom_logo'); if (!preg_match("@^https?://@", $login_custom_logo)) { $login_custom_logo = get_bloginfo('stylesheet_directory') . '/images/' . $login_custom_logo; } echo '<style type="text/css">'; echo stripslashes(get_option('wlcms_o_login_bg_css')); if (get_option('wlcms_o_login_custom_logo')) { echo ' .login h1 a { display:all; background: url(' . $login_custom_logo . ') no-repeat bottom center !important; margin-bottom: 10px; } '; if (get_option('wlcms_o_loginbg_white')) { echo ' body.login {background: #fff } '; } echo '</style> '; echo '<script type="text/javascript"> function loginalt() { var changeLink = document.getElementById(\'login\').innerHTML; changeLink = changeLink.replace("http://nxtclass.org/", "' . site_url() . '"); changeLink = changeLink.replace("Powered by NXTClass", "' . get_bloginfo('name') . '"); document.getElementById(\'login\').innerHTML = changeLink; } window.onload=loginalt; </script>'; } elseif (get_option('wlcms_o_login_bg_css')) { echo stripslashes(get_option('wlcms_o_login_bg_css')); echo '</style> '; } else { echo '</style> '; } if (get_option('wlcms_o_login_bg_css')) { echo '<script type="text/javascript"> jQuery(document).ready(function(){ jQuery("#login").wrap("<div id=\'wlcms-login-wrapper\'></div>"); }); </script> '; } }
<th><?php _e('Password'); ?> </th> <td><?php if (!empty($password) && empty($admin_password_check)) { echo '<code>' . esc_html($password) . '</code><br />'; } echo "<p>{$password_message}</p>"; ?> </td> </tr> </table> <p class="step"><a href="../nxt-login.php" class="button"><?php _e('Log In'); ?> </a></p> <?php } break; } ?> <script type="text/javascript">var t = document.getElementById('weblog_title'); if (t){ t.focus(); }</script> <?php nxt_print_scripts('user-profile'); ?> </body> </html>
/** * Adds the plugin's admin JavaScript to the page. * * This uses the value of the `$admin_media` member variable to determine * which admin files should be added. * * @access private * @since 0.1 */ public function _add_admin_js() { if (array_key_exists('js', $this->admin_media) && !empty($this->admin_media['js'])) { $js_url = ClassBlogs_Utils::get_base_js_url(); foreach ($this->admin_media['js'] as $js_file) { nxt_register_script($this->get_uid(), $js_url . $js_file, array('jquery'), ClassBlogs_Settings::VERSION, true); } nxt_print_scripts($this->get_uid()); } }