From 173daa17f370b226aa1c57070db7c66f6e29507c Mon Sep 17 00:00:00 2001 From: Andrew Powers Date: Wed, 3 Jul 2013 17:15:44 -0700 Subject: [PATCH] Various V2 tweaks, add new panel to work on. --- admin/actions.options.php | 4 +-- editor/editor.account.php | 41 +++++++++++++++++++++++++++++++ editor/editor.admin.php | 2 +- editor/editor.init.php | 6 +++-- editor/editor.interface.php | 5 ++-- editor/editor.settings.config.php | 2 +- less/pl-editor.less | 2 +- sections/flipper/section.php | 2 +- 8 files changed, 54 insertions(+), 10 deletions(-) create mode 100644 editor/editor.account.php diff --git a/admin/actions.options.php b/admin/actions.options.php index 560d8356..e214dc8a 100644 --- a/admin/actions.options.php +++ b/admin/actions.options.php @@ -31,13 +31,13 @@ function pagelines_add_admin_menus() { if(!pl_deprecate_v2()){ - $_pagelines_options_page_hook = pagelines_insert_menu( PL_MAIN_DASH, __( 'Site Options', 'pagelines' ), 'edit_theme_options', 'pagelines', 'pagelines_build_option_interface' ); + $_pagelines_options_page_hook = pagelines_insert_menu( PL_MAIN_DASH, __( 'Site Options', 'pagelines' ), 'edit_theme_options', 'pagelines', 'pagelines_build_option_interface' ); $_pagelines_special_hook = pagelines_insert_menu( PL_MAIN_DASH, __( 'Page Options', 'pagelines' ), 'edit_theme_options', 'pagelines_special', 'pagelines_build_special' ); $_pagelines_templates_hook = pagelines_insert_menu( PL_MAIN_DASH, __( "Drag & Drop", 'pagelines' ), 'edit_theme_options', 'pagelines_templates', 'pagelines_build_templates_interface' ); - $_pagelines_ext_hook = pagelines_insert_menu( PL_MAIN_DASH, __( 'Extend', 'pagelines' ), 'edit_theme_options', PL_ADMIN_STORE_SLUG, 'pagelines_build_extension_interface' ); + // $_pagelines_ext_hook = pagelines_insert_menu( PL_MAIN_DASH, __( 'Extend', 'pagelines' ), 'edit_theme_options', PL_ADMIN_STORE_SLUG, 'pagelines_build_extension_interface' ); } else { diff --git a/editor/editor.account.php b/editor/editor.account.php new file mode 100644 index 00000000..eb580bca --- /dev/null +++ b/editor/editor.account.php @@ -0,0 +1,41 @@ +url = PL_PARENT_URL . '/editor'; + + } + + function toolbar( $toolbar ){ + $toolbar['account'] = array( + 'name' => 'PageLines', + 'icon' => 'icon-pagelines', + 'pos' => 110, + // 'type' => 'btn', + 'panel' => array( + 'heading' => " PageLines Account", + 'welcome' => array( + 'name' => 'Welcome!', + 'icon' => 'icon-star' + ), + 'account' => array( + 'name' => 'Your Account', + 'icon' => 'icon-user' + ), + 'support' => array( + 'name' => 'Support', + 'icon' => 'icon-comments' + ), + ) + ); + + return $toolbar; + } + + +} \ No newline at end of file diff --git a/editor/editor.admin.php b/editor/editor.admin.php index e552e51d..5fa7f506 100644 --- a/editor/editor.admin.php +++ b/editor/editor.admin.php @@ -30,7 +30,7 @@ function admin_interface(){ 'layout' => 'full', 'title' => __( 'DMS Header Scripts Fallback', 'pagelines' ), 'shortexp' => __( 'Use this to fix scripts if you change something that breaks the front end editor.', 'pagelines' ), - ) + ), ); return $d; diff --git a/editor/editor.init.php b/editor/editor.init.php index eb027863..ebb37b4e 100644 --- a/editor/editor.init.php +++ b/editor/editor.init.php @@ -57,7 +57,8 @@ function load_files(){ // Interfaces require_once( PL_EDITOR . '/editor.xlist.php' ); require_once( PL_EDITOR . '/panel.code.php' ); - require_once( PL_EDITOR . '/panel.live.php' ); + //require_once( PL_EDITOR . '/panel.live.php' ); + require_once( PL_EDITOR . '/editor.account.php' ); require_once( PL_EDITOR . '/panel.sections.php' ); require_once( PL_EDITOR . '/panel.extend.php' ); require_once( PL_EDITOR . '/panel.themes.php' ); @@ -128,7 +129,8 @@ function load_libs(){ $this->add_sections = new PageLinesSectionsPanel; $this->extend_panel = new PageLinesExtendPanel; $this->settings_panel = new PageLinesSettingsPanel; - $this->live_panel = new PageLinesLivePanel; + // $this->live_panel = new PageLinesLivePanel; + $this->account_panel = new PLAccountPanel; $this->themer = new EditorThemeHandler; $this->code = new EditorCode( $this->draft ); diff --git a/editor/editor.interface.php b/editor/editor.interface.php index 5274706d..39f572dc 100644 --- a/editor/editor.interface.php +++ b/editor/editor.interface.php @@ -223,7 +223,7 @@ function pagelines_toolbox(){
'check', 'label' => __( 'Enable v2 Compatibility Mode?', 'pagelines' ), 'title' => __( 'v2 Compatibility Mode', 'pagelines' ), - 'help' => __( 'Use this option to enable v2 interfaces and options. You can then set which pages should use DMS and which pages should use v2. ', 'pagelines' ), + 'help' => __( 'Use this option to enable v2 interfaces and options. Not all v2 options work in DMS due to specificity; but it allows you to reference your old settings as you are rebuilding your site using the DMS system.', 'pagelines' ), ) ); return $settings; diff --git a/less/pl-editor.less b/less/pl-editor.less index e801bd4a..9a4fb878 100644 --- a/less/pl-editor.less +++ b/less/pl-editor.less @@ -827,7 +827,7 @@ } &.btn-closer, &.btn-pl-toggle{ - color: #999; + border-left: 1px solid transparent; border-right: 1px solid transparent; position: absolute; diff --git a/sections/flipper/section.php b/sections/flipper/section.php index f7c4febc..109f7b73 100644 --- a/sections/flipper/section.php +++ b/sections/flipper/section.php @@ -1,5 +1,5 @@