1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Styling fixes

This commit is contained in:
Cameron
2016-03-13 15:01:16 -07:00
parent d093d38317
commit e972053cd3
3 changed files with 33 additions and 6 deletions

View File

@@ -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 = <<<JS
$(document).ready(function(){
$("a[data-gal^='prettyPhoto']").prettyPhoto(
{
hook: 'data-gal',
theme: 'pp_default',
overlay_gallery: false,
deeplinking: false
}
);
});
JS;
e107::js('footer-inline',$prettyPhoto,'jquery');
}
function sc_gallery_caption($parm='')
@@ -180,6 +199,9 @@ class gallery_shortcodes extends e_shortcode
*/
function sc_gallery_portfolio($parms='')
{
$ns = e107::getRender();
$parm = eHelper::scParams($parms);
$cat = (!empty($parm['category'])) ? $parm['category'] : vartrue(e107::getPlugPref('gallery','slideshow_category'), 1); //TODO Separate pref?
@@ -206,7 +228,7 @@ class gallery_shortcodes extends e_shortcode
$this->var = $val;
$text .= $ns->tablerender('', $this->sc_gallery_thumb('class=gallery_thumb img-responsive img-home-portfolio'),'gallery_portfolio',true);
}
return $text;
}

View File

@@ -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
-------------------------------------------------- */

View File

@@ -146,10 +146,11 @@ if (!defined("USER_WIDTH")) { define("USER_WIDTH","width:95%"); }
if (!empty($pref['news_subheader']))
{
$text .= "
<div class='alert alert-block alert-info '>
".$tp->toHTML($pref['news_subheader'], true, "BODY")."
</div>";
";
}
@@ -203,9 +204,8 @@ $text .= "
</tr>
<tr>
<td style='width:20%' class='forumheader3'>".LAN_TITLE."</td>
<td style='width:80%' class='forumheader3'>
<input class='tbox form-control' type='text' id='submitnews_title' name='submitnews_title' size='60' value='".$tp->toHTML(vartrue($_POST['submitnews_title']),TRUE,'USER_TITLE')."' maxlength='200' style='width:90%' required />
</td>
<td style='width:80%' class='forumheader3'>".e107::getForm()->text('submitnews_title',$tp->toHTML(vartrue($_POST['submitnews_title']),TRUE,'USER_TITLE'),200, array('required'=>1))."
</td>
</tr>
<tr>
<td style='width:20%' class='forumheader3'>".LAN_135."</td>