From 763d1de7f710d5acb1e9ac3cb23b3544d6b6c804 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 24 Feb 2013 18:06:53 -0800 Subject: [PATCH] Newspost updated to use bootstrap tabs --- e107_admin/newspost.php | 59 +++++++++++++++------------ e107_themes/bootstrap/admin_style.css | 6 ++- 2 files changed, 38 insertions(+), 27 deletions(-) diff --git a/e107_admin/newspost.php b/e107_admin/newspost.php index d88a143cf..06399968d 100644 --- a/e107_admin/newspost.php +++ b/e107_admin/newspost.php @@ -1947,14 +1947,17 @@ class admin_newspost */ $text .= " -
- -
-
+ + + +
+ +
+
".LAN_NEWS_52." @@ -2094,23 +2097,29 @@ class admin_newspost $text .= ""; + + + + //----------- /* @@ -2174,12 +2183,12 @@ class admin_newspost
\n"; - $text .= "
- "; + + $text .= ' +
'; + $val = (strstr($tp->post_toForm(vartrue($_POST['news_body'])), "[img]http") ? $tp->post_toForm(vartrue($_POST['news_body'])) : str_replace("[img]../", "[img]", $tp->post_toForm($_POST['news_body']))); - $text .= "
"; + $text .= "
"; $text .= $frm->bbarea('news_body', $val, 'news', 'news'); - $text .= "
"; - - + $text .= "
"; + $text .= "
"; + $val = (strstr($tp->post_toForm(vartrue($_POST['news_extended'])), "[img]http") ? $tp->post_toForm($_POST['news_extended']) : str_replace("[img]../", "[img]", $tp->post_toForm($_POST['news_extended']))); $text .= $frm->bbarea('news_extended', $val, 'extended', 'news','large'); $text .= "
-
+
"; //BEGIN SEO block - $text .= " -
+ $text .= "
+
SEO @@ -2217,12 +2226,12 @@ class admin_newspost
-
+
"; //BEGIN Options block - $text .= " -
+ $text .= "
+
".LAN_NEWS_53." @@ -2334,10 +2343,10 @@ class admin_newspost $data = array('method'=>'form', 'table'=>'news', 'id'=>$id, 'plugin'=>'news', 'function'=>'create_item'); $text .= $frm->renderHooks($data); - $text .= " - + $text .= "
+
".$frm->admin_button('preview', isset($_POST['preview']) ? NWSLAN_24 : NWSLAN_27 , 'other')." ".$frm->admin_button('submit_news', ($id && $sub_action != "sn" && $sub_action != "upload") ? NWSLAN_25 : NWSLAN_26 , 'update')." diff --git a/e107_themes/bootstrap/admin_style.css b/e107_themes/bootstrap/admin_style.css index 1550a9d6d..a023c46d1 100644 --- a/e107_themes/bootstrap/admin_style.css +++ b/e107_themes/bootstrap/admin_style.css @@ -716,7 +716,7 @@ i.searchquery { .nav-tabs { border-bottom: 1px solid rgb(221, 221, 221); margin-bottom:0px;} .nav-tabs li { margin-right: 2px; } -.nav-tabs li a { cursor: pointer; background-color: rgb(230, 230, 230); color: rgb(153, 153, 153); margin-bottom:-1px; +.nav-tabs li a { cursor: pointer; background-color: rgb(230, 230, 230); color: rgb(153, 153, 153); padding: 0px 15px; line-height: 34px; border-bottom: 1px solid rgb(221, 221, 221); } .nav-tabs li a:hover { background-color: rgb(255, 255, 255); color: rgb(0, 67, 138); } @@ -725,9 +725,11 @@ i.searchquery { { background-color: rgb(255, 255, 255); cursor: text; + margin-bottom:-1px; + } -.tab-pane { background-color: #F6F6F6; } +.tab-pane { } .tab-pane table.adminform { border-top:0px} .tab-pane table.adminform td { border-top:0px} .tab-pane table.adminform tr { border-bottom:1px solid #DDDDDD}