From e972053cd3f4ad87218a8f685dbe14b680b512f7 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 13 Mar 2016 15:01:16 -0700 Subject: [PATCH] Styling fixes --- e107_plugins/gallery/e_shortcode.php | 24 +++++++++++++++++++++++- e107_themes/bootstrap3/style.css | 5 +++++ submitnews.php | 10 +++++----- 3 files changed, 33 insertions(+), 6 deletions(-) diff --git a/e107_plugins/gallery/e_shortcode.php b/e107_plugins/gallery/e_shortcode.php index 4343acf12..05fa63fec 100644 --- a/e107_plugins/gallery/e_shortcode.php +++ b/e107_plugins/gallery/e_shortcode.php @@ -29,6 +29,25 @@ class gallery_shortcodes extends e_shortcode $pop_w = vartrue($prefW, 1024); $pop_h = vartrue($prefH, 768); $this->attFull = array('w'=>$pop_w, 'h'=>$pop_h, 'x'=>1, 'crop'=>0); // 'w='.$pop_w.'&h='.$pop_h.'&x=1'; + + e107::js('gallery', 'jslib/prettyPhoto/js/jquery.prettyPhoto.js','jquery'); + e107::css('gallery', 'jslib/prettyPhoto/css/prettyPhoto.css','jquery'); + + + $prettyPhoto = <<var = $val; $text .= $ns->tablerender('', $this->sc_gallery_thumb('class=gallery_thumb img-responsive img-home-portfolio'),'gallery_portfolio',true); } - + return $text; } diff --git a/e107_themes/bootstrap3/style.css b/e107_themes/bootstrap3/style.css index 7e1d0c0dc..169ef943f 100644 --- a/e107_themes/bootstrap3/style.css +++ b/e107_themes/bootstrap3/style.css @@ -75,6 +75,11 @@ img.logo { margin-bottom: 30px; } + +.row > .col-md-4:nth-child(4n+1) { clear:both; } /* fix wrapping in gallery portfolio */ + + + /* CUSTOMIZE THE CAROUSEL -------------------------------------------------- */ diff --git a/submitnews.php b/submitnews.php index 812661643..9bdd822a8 100644 --- a/submitnews.php +++ b/submitnews.php @@ -146,10 +146,11 @@ if (!defined("USER_WIDTH")) { define("USER_WIDTH","width:95%"); } if (!empty($pref['news_subheader'])) { + $text .= " -
+ ".$tp->toHTML($pref['news_subheader'], true, "BODY")." -
"; + "; } @@ -203,9 +204,8 @@ $text .= " ".LAN_TITLE." - - - + ".e107::getForm()->text('submitnews_title',$tp->toHTML(vartrue($_POST['submitnews_title']),TRUE,'USER_TITLE'),200, array('required'=>1))." + ".LAN_135."