private function get_setup_header() { if (is_newapp_website()) { return '<h1><img src="' . get_kigo_plugin_url('/img/logo_kigo.png') . '"/></h1>'; } else { return '<h1><a href="http://www.bookt.com" target="_blank"><img src="' . get_kigo_plugin_url('/img/logo-im.png') . '" /></a></h1>'; } }
public static function register_admin_bar_node() { // Only new app clients have this extra toolbar to link to the app if (!is_newapp_website()) { return; } global $wp_admin_bar; // Create parent node $wp_admin_bar->add_node(array('id' => self::PARENT_NODE_ID, 'title' => '<span class="ab-icon ab-icon-kigo"><img src="' . get_kigo_plugin_url(self::PARENT_NODE_ICON) . '"></span><span>' . self::PARENT_NODE_TITLE . '</span>', 'parent' => false, 'href' => self::APP_URL, 'meta' => array('target' => '_blank'))); // Create every child nodes foreach (self::$kigo_app_nodes as $id => $kigo_app_node) { $wp_admin_bar->add_node(array('id' => $id, 'title' => '<span class="dashicons-before dashicons-kigo ' . $kigo_app_node['icon'] . '"></span><span>' . $kigo_app_node['title'] . '</span>', 'parent' => self::PARENT_NODE_ID, 'href' => self::APP_URL . $kigo_app_node['href'], 'meta' => array('target' => '_blank'))); } }