function ub_rmw_manage_output() { global $wpdb, $current_site, $page; ?> <div class="postbox"> <h3 class="hndle" style='cursor:auto;'><span><?php _e('Rebranded Meta Widget','ub'); ?></span></h3> <div class="inside"> <p class='description'><?php _e( 'The Rebranded Meta Widget is enabled', 'ub' ); ?></p> <?php echo "<img src='" . ub_files_url('modules/rebranded-meta-widget-files/images/exampleimage.png') . "' />"; ?> </div> </div> <?php }
function enqueue_scripts() { wp_register_style( 'ub_favicons_style', ub_files_url('modules/favicons/css/admin.css') . '', false, '1.0.0' ); wp_enqueue_style( 'ub_favicons_style' ); }
/** * Run before admin page display * * Enqueue scripts, remove output buffer and save settings **/ function add_admin_header_sitewide() { global $plugin_page; if ('branding' !== $plugin_page) { return; } if (isset($_GET['tab']) && $_GET['tab'] == 'textchange') { wp_enqueue_style('sitewidecss', ub_files_url('modules/site-wide-text-change-files/sitewidetextincludes/styles/sitewide.css'), array(), $this->build); wp_enqueue_script('sitewidejs', ub_files_url('modules/site-wide-text-change-files/sitewidetextincludes/js/sitewideadmin.js'), array('jquery', 'jquery-form', 'jquery-ui-sortable'), $this->build); $this->update_admin_page(); } if (defined('SWTC-BELTANDBRACES')) { add_action('admin_notices', array(&$this, 'warning')); //remove other actions remove_action('init', array(&$this, 'start_cache')); remove_action('admin_print_footer_scripts', array(&$this, 'end_cache')); } }
public function register_modules_css() { foreach ($this->css_files as $module_name => $files) { foreach ($files as $file_name) { $file_path = ub_files_url('modules/' . $module_name . '-files/css/' . $file_name . ".css"); wp_enqueue_style($this->get_enqueue_handle($module_name, $file_name), $file_path, array(), $this->build); } } }
function add_admin_header_core() { // Add in help pages $screen = get_current_screen(); $this->help = new UB_Help($screen); $this->help->attach(); // Add in the core CSS file wp_enqueue_style('defaultadmincss', ub_files_url('css/defaultadmin.css'), array(), $this->build); }
<img src='<?php echo ub_files_url('help/images/enableimage.png'); ?> ' /> </li> <li> <?php _e('Each module enabled will add a tab to the top of the Ultimate Branding page.', 'ub'); ?> </li> <li> <?php _e('Once you have enabled all of the modules you want to use, go through each of the tabs at the top of the page and set up the options for that area.', 'ub'); ?> <br/><br/> <img src='<?php echo ub_files_url('help/images/tabsimage.png'); ?> ' /> </li> <li> <?php _e('Click on the <strong>Save Changes</strong> button once you have completed the information on a tab to save the settings, before moving on to the next tab.', 'ub'); ?> <br/><br/> <img src='<?php echo ub_files_url('help/images/savechangesimage.png'); ?> ' /> </li> </ol>
/** * Enqueues general scripts * * */ function enque_general_scripts(){ wp_enqueue_style("ub_adminbar_general_styles", ub_files_url('modules/custom-admin-bar-files/css/general.css'), array(), "1.0"); }
/** * Enqueues admin script * * @since 2.0.2 */ function enqueue_admin_scripts(){ wp_enqueue_script('ub_adminhelp_js', ub_files_url('modules/admin-help-content-files/js/main.js'), array(), null, true); }