예제 #1
0
function load_classes()
{
    //MB_Img_url::add_metabox()->admin_actions()->set_metabox_id('my-metabox');
    $styles = array(array('title' => 'Button', 'inline' => 'span', 'classes' => 'btn'), array('title' => 'info', 'inline' => 'span', 'classes' => 'btn btn-info'), array('title' => 'Success', 'inline' => 'span', 'classes' => 'btn btn-success'), array('title' => 'Warning', 'inline' => 'span', 'classes' => 'btn btn-warning'), array('title' => 'Font Size'), array('title' => 'Tiny', 'inline' => 'span', 'classes' => 'font-tiny'), array('title' => 'Small', 'inline' => 'span', 'classes' => 'font-small'), array('title' => 'Medium', 'inline' => 'span', 'classes' => 'font-medium'), array('title' => 'Large', 'inline' => 'span', 'classes' => 'font-large'), array('title' => 'Labels'), array('title' => 'Default', 'inline' => 'span', 'classes' => 'label'), array('title' => 'Warning', 'inline' => 'span', 'classes' => 'label label-warning'), array('title' => 'Info', 'inline' => 'span', 'classes' => 'label label-info'), array('title' => 'Important', 'inline' => 'span', 'classes' => 'label label-important'), array('title' => 'Alerts'), array('title' => 'Default', 'block' => 'div', 'classes' => 'alert'), array('title' => 'Info', 'block' => 'div', 'classes' => 'alert alert-info'), array('title' => 'Others'), array('title' => 'Well', 'block' => 'div', 'classes' => 'well'), array('title' => 'Highlight', 'inline' => 'span', 'classes' => 'highlight'));
    Ext_Editor_Styles::create()->set_styles($styles)->add_filters();
    /**
     * testing menubars
     */
    /** Display most recent Post (all Post Types) **/
    Ext_Post_Menus::add()->set_node_id('recent')->set_node_title('Recent Post')->set_post_types(TRUE)->published();
    /** Display published Post **/
    Ext_Post_Menus::add()->set_node_id('menu-published')->set_node_title('Post')->published();
    /** Display published pages **/
    Ext_Post_Menus::add()->set_node_id('menu-pages')->set_node_title('Pages')->published('page');
    /** Display Custom Options pages **/
    Ext_Post_Menus::add()->set_node_id('custom_options')->set_node_title('UI.Options')->published('cwp_custom_options');
    /**
     * Theme Navs
     */
    /** Adss amenu item **/
    Ext_WPNavs::add()->set_theme_location('primary')->add_loginout();
    //mmmmiopFn_Gen::instance()->img_figure();
    //Fn_Gen::instance()->remove_img_dimensions();
}
예제 #2
0
function load_classes()
{
    //MB_Img_url::add_metabox()->admin_actions()->set_metabox_id('my-metabox');
    $styles = array(array('title' => 'Button', 'inline' => 'span', 'classes' => 'btn'), array('title' => 'info', 'inline' => 'span', 'classes' => 'btn btn-info'), array('title' => 'Success', 'inline' => 'span', 'classes' => 'btn btn-success'), array('title' => 'Warning', 'inline' => 'span', 'classes' => 'btn btn-warning'), array('title' => 'Font Size'), array('title' => 'Tiny', 'inline' => 'span', 'classes' => 'font-tiny'), array('title' => 'Small', 'inline' => 'span', 'classes' => 'font-small'), array('title' => 'Medium', 'inline' => 'span', 'classes' => 'font-medium'), array('title' => 'Large', 'inline' => 'span', 'classes' => 'font-large'), array('title' => 'Labels'), array('title' => 'Default', 'inline' => 'span', 'classes' => 'label'), array('title' => 'Warning', 'inline' => 'span', 'classes' => 'label label-warning'), array('title' => 'Info', 'inline' => 'span', 'classes' => 'label label-info'), array('title' => 'Important', 'inline' => 'span', 'classes' => 'label label-important'), array('title' => 'Alerts'), array('title' => 'Default', 'block' => 'div', 'classes' => 'alert'), array('title' => 'Info', 'block' => 'div', 'classes' => 'alert alert-info'), array('title' => 'Others'), array('title' => 'Well', 'block' => 'div', 'classes' => 'well'), array('title' => 'Highlight', 'inline' => 'span', 'classes' => 'highlight'));
    Ext_Editor_Styles::create()->set_styles($styles)->add_filters();
    /**
     * testing menubars
     */
    /**
     * Theme Navs
     */
    /** Adss amenu item * */
    Ext_WPNavs::add()->set_theme_location('primary')->add_loginout();
    //mmmmiopFn_Gen::instance()->img_figure();
    Fn_Images::factory()->fluid_images();
}