1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 04:32:01 +02:00

BS4 img-fluid

This commit is contained in:
Cameron 2017-01-20 10:40:05 -08:00
parent 4e2a1026eb
commit d5af3b9246
17 changed files with 28 additions and 28 deletions

View File

@ -2135,7 +2135,7 @@ class media_admin_ui extends e_admin_ui
$img_src = "
<div class='thumbnail'>
<label for='".$for."' ><img class='img-responsive' src='".$img_path."' alt='{$image_name}' title='".IMALAN_66.": {$image_name}' /></label>
<label for='".$for."' ><img class='img-responsive img-fluid' src='".$img_path."' alt='{$image_name}' title='".IMALAN_66.": {$image_name}' /></label>
</div>
";

View File

@ -693,7 +693,7 @@ class news_shortcodes extends e_shortcode
break;
default:
return "<a href='".e107::getUrl()->create('news/view/item', $this->news_item)."'><img class='news_image img-responsive img-rounded ".$class."' src='".$src."' alt='' style='".$style."' {$dimensions} {$srcset} /></a>";
return "<a href='".e107::getUrl()->create('news/view/item', $this->news_item)."'><img class='news_image img-responsive img-fluid img-rounded ".$class."' src='".$src."' alt='' style='".$style."' {$dimensions} {$srcset} /></a>";
break;
}
}
@ -734,7 +734,7 @@ class news_shortcodes extends e_shortcode
$parm['item'] = ($parm['item'] +1);
if(empty($parm['class']))
{
$parm['class'] = 'img-responsive news-media news-media-'.$parm['item'];
$parm['class'] = 'img-responsive img-fluid news-media news-media-'.$parm['item'];
}
return $this->sc_newsimage($parm);
}
@ -811,7 +811,7 @@ class news_shortcodes extends e_shortcode
* Display News Images (but not video thumbnails )
* @param $parm array
* @example {NEWSIMAGE: type=src&placeholder=true}
* @example {NEWSIMAGE: class=img-responsive}
* @example {NEWSIMAGE: class=img-responsive img-fluid}
*/
function sc_newsimage($parm = null)
{
@ -826,7 +826,7 @@ class news_shortcodes extends e_shortcode
$tmp = $this->handleMultiple($parm);
$srcPath = $tmp['file'];
$class = (!empty($parm['class'])) ? $parm['class'] : "news_image news-image img-responsive img-rounded";
$class = (!empty($parm['class'])) ? $parm['class'] : "news_image news-image img-responsive img-fluid img-rounded";
$class .= ' news-image-'.$tmp['count'];
$dimensions = null;
$srcset = null;

View File

@ -3903,7 +3903,7 @@ class e_parser
$id = (!empty($parm['id'])) ? "id=\"".$parm['id']."\" " : "" ;
$class = (!empty($parm['class'])) ? $parm['class'] : "img-responsive";
$class = (!empty($parm['class'])) ? $parm['class'] : "img-responsive img-fluid";
$alt = (!empty($parm['alt'])) ? $tp->toAttribute($parm['alt']) : basename($file);
$style = (!empty($parm['style'])) ? "style=\"".$parm['style']."\" " : "" ;
$srcset = (!empty($parm['srcset'])) ? "srcset=\"".$parm['srcset']."\" " : "";
@ -4080,7 +4080,7 @@ class e_parser
if($thumb == 'tag')
{
return "<img class='img-responsive' src='".$thumbSrc."' alt='Youtube Video' style='width:".vartrue($parm['w'],'80')."px'/>";
return "<img class='img-responsive img-fluid' src='".$thumbSrc."' alt='Youtube Video' style='width:".vartrue($parm['w'],'80')."px'/>";
}
if($thumb == 'email')
@ -4126,7 +4126,7 @@ class e_parser
{
$thumbSrc = e_IMAGE_ABS."generic/playlist_120.png";
}
return "<img class='img-responsive' src='".$thumbSrc."' alt='".LAN_YOUTUBE_PLAYLIST."' style='width:".vartrue($parm['w'],'80')."px'/>";
return "<img class='img-responsive img-fluid' src='".$thumbSrc."' alt='".LAN_YOUTUBE_PLAYLIST."' style='width:".vartrue($parm['w'],'80')."px'/>";
}

View File

@ -1188,7 +1188,7 @@ class e_form
$thpath = empty($default) || !empty($video) ? $default_url : $tp->thumbUrl($default_thumb, $att, true);
//isset($sc_parameters['nothumb']) || vartrue($hide) ?
$label = "<img id='{$name_id}_prev' src='".$thpath."' alt='{$default_url}' class='well well-small image-selector img-responsive' style='display:block;' />";
$label = "<img id='{$name_id}_prev' src='".$thpath."' alt='{$default_url}' class='well well-small image-selector img-responsive img-fluid' style='display:block;' />";
if($cat != 'news' && $cat !='page' && $cat !='' && strpos($cat,'_image')===false)
{

View File

@ -787,7 +787,7 @@ class e107Email extends PHPMailer
{
$size = isset($mediaParms[$nk]) ? "?w=".$mediaParms[$nk]['w'] : '';
//echo $nk.": ".$val['path'].$size."<br />";
$eml['shortcodes'][$id] = "<div class='media media-image'><img class='img-responsive ".strtolower($id)."' src='".$val['path'].$size."' alt='' /></div>";
$eml['shortcodes'][$id] = "<div class='media media-image'><img class='img-responsive img-fluid ".strtolower($id)."' src='".$val['path'].$size."' alt='' /></div>";
}
}

View File

@ -1267,7 +1267,7 @@ class e_media
if($data['type'] == 'image')
{
$text .= '<img class="img-responsive" alt="" src="'.$data['thumbUrl'].'" style="width:100%;display:inline-block" />';
$text .= '<img class="img-responsive img-fluid" alt="" src="'.$data['thumbUrl'].'" style="width:100%;display:inline-block" />';
}
elseif($data['type'] == 'glyph')
{

View File

@ -1422,7 +1422,7 @@ class themeHandler
$text .= "<div class='col-md-6'>
<img class='img-responsive' src='".$picFull."' alt=\"".$theme['name']."\" />
<img class='img-responsive img-fluid' src='".$picFull."' alt=\"".$theme['name']."\" />
</div>";
}

View File

@ -83,7 +83,7 @@ class banner_shortcodes extends e_shortcode
default:
$class = empty($parm['class']) ? "e-banner img-responsive" : $parm['class'];
$class = empty($parm['class']) ? "e-banner img-responsive img-fluid" : $parm['class'];
$ban_ret = $tp->toImage($row['banner_image'], array('class'=> $class , 'alt'=>basename($row['banner_image']), 'legacy'=>'{e_IMAGE}banners'));
break;

View File

@ -327,7 +327,7 @@ class download_shortcodes extends e_shortcode
{
$opts = array(
'legacy' => "{e_FILE}downloadthumbs/",
'class' => 'download-image img-responsive',
'class' => 'download-image img-responsive img-fluid',
'alt' => $this->var['download_name']
);
@ -583,7 +583,7 @@ class download_shortcodes extends e_shortcode
{
$opts = array(
'legacy' => "{e_FILE}downloadthumbs/",
'class' => 'download-image dl_image img-responsive'
'class' => 'download-image dl_image img-responsive img-fluid'
);
$image = $tp->toImage($this->var['download_thumb'], $opts);
@ -610,7 +610,7 @@ class download_shortcodes extends e_shortcode
$opts = array(
'legacy' => "{e_FILE}downloadimages/",
'class' => 'download-image dl_image download-view-image img-responsive '.vartrue($parm['class']),
'class' => 'download-image dl_image download-view-image img-responsive img-fluid '.vartrue($parm['class']),
'alt' => basename($this->var['download_image'])
);

View File

@ -321,16 +321,16 @@ else
if (file_exists(e_FILE."download/{$image}"))
{
$disp = "<div style='text-align:center'><img class='img-responsive' src='".e_FILE."download/{$image}' alt='' /></div>";
$disp = "<div style='text-align:center'><img class='img-responsive img-fluid' src='".e_FILE."download/{$image}' alt='' /></div>";
}
else if(file_exists(e_FILE."downloadimages/{$image}"))
{
$disp = "<div style='text-align:center'><img class='img-responsive' src='".e_FILE."downloadimages/{$image}' alt='' /></div>";
$disp = "<div style='text-align:center'><img class='img-responsive img-fluid' src='".e_FILE."downloadimages/{$image}' alt='' /></div>";
}
else
{
$image = $tp->replaceConstants($image);
$disp = "<div style='text-align:center'><img class='img-responsive' src='".$image."' alt='' /></div>";
$disp = "<div style='text-align:center'><img class='img-responsive img-fluid' src='".$image."' alt='' /></div>";
}
$disp .= "<br /><div style='text-align:center'><a href='javascript:history.back(1)'>".LAN_BACK."</a></div>";

View File

@ -156,7 +156,7 @@ class plugin_featurebox_item extends e_model
{
return $src;
}
$tag = '<img id="featurebox-image-'.$this->getId().'" src="'.$src.'" alt="'.$tp->toAttribute($this->get('fb_title')).'" class="featurebox img-responsive" />';
$tag = '<img id="featurebox-image-'.$this->getId().'" src="'.$src.'" alt="'.$tp->toAttribute($this->get('fb_title')).'" class="featurebox img-responsive img-fluid" />';
if(isset($parm['nourl']) || !$this->get('fb_imageurl'))
{
return $tag;

View File

@ -103,7 +103,7 @@ class gallery_shortcodes extends e_shortcode
$w = vartrue($parms['w']) ? $parms['w'] : $tp->thumbWidth(); // 190; // 160;
$h = vartrue($parms['h']) ? $parms['h'] : $tp->thumbHeight(); // 130;
$class = ($this->slideMode == true) ? 'gallery-slideshow-thumb img-responsive img-rounded' : varset($parms['class'], 'gallery-thumb img-responsive');
$class = ($this->slideMode == true) ? 'gallery-slideshow-thumb img-responsive img-fluid img-rounded' : varset($parms['class'], 'gallery-thumb img-responsive img-fluid');
$rel = ($this->slideMode == true) ? 'prettyPhoto[pp_gal]' : 'prettyPhoto[pp_gal]';
//$att = array('aw'=>$w, 'ah'=>$h, 'x'=>1, 'crop'=>1);
@ -186,7 +186,7 @@ class gallery_shortcodes extends e_shortcode
}
$text = "<a class='thumbnail' href='" . $url . "'>";
$text .= "<img class='img-responsive' data-src='holder.js/" . $w . "x" . $h . "' src='" . e107::getParser()->thumbUrl($this->var['media_cat_image'], $att) . "' alt='' />";
$text .= "<img class='img-responsive img-fluid' data-src='holder.js/" . $w . "x" . $h . "' src='" . e107::getParser()->thumbUrl($this->var['media_cat_image'], $att) . "' alt='' />";
$text .= "</a>";
return $text;
}
@ -263,7 +263,7 @@ class gallery_shortcodes extends e_shortcode
if(empty($template['item']))
{
$text .= $ns->tablerender('', $this->sc_gallery_thumb('class=gallery_thumb img-responsive img-home-portfolio'), 'gallery_portfolio', true);
$text .= $ns->tablerender('', $this->sc_gallery_thumb('class=gallery_thumb img-responsive img-fluid img-home-portfolio'), 'gallery_portfolio', true);
}
else
{

View File

@ -124,7 +124,7 @@ $NEWS_MENU_TEMPLATE['carousel']['end'] = '
$NEWS_MENU_TEMPLATE['carousel']['item'] = '<!-- Start Item -->
<div class="item {ACTIVE}">{SETIMAGE: w=800&h=370&crop=1}
{NEWS_IMAGE: class=img-responsive}
{NEWS_IMAGE: class=img-responsive img-fluid}
<div class="carousel-caption">
<small>{NEWS_DATE=dd MM, yyyy}</small>
<h1>{NEWS_TITLE}</h1>

View File

@ -173,7 +173,7 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
$dimensions = getimagesize($path);
}
$opts = array('alt'=>SITENAME, 'class'=>'logo img-responsive');
$opts = array('alt'=>SITENAME, 'class'=>'logo img-responsive img-fluid');
if(!empty($dimensions[0]))
{

View File

@ -20,7 +20,7 @@ if (!defined('e107_INIT')) { exit; }
$text = "
<div id='powered-by-menu' class='text-center'>
<a href='http://e107.org' rel='external'>
<img class='img-responsive' src='".e_IMAGE_ABS."admin_images/credits_logo.png' alt='e107' style='max-width:100%' />
<img class='img-responsive img-fluid' src='".e_IMAGE_ABS."admin_images/credits_logo.png' alt='e107' style='max-width:100%' />
</a>
</div>
";

View File

@ -587,7 +587,7 @@ class wysiwyg
]},
{title: 'Bootstrap Images', items: [
{title: 'Responsive (recommended)', selector: 'img', classes: 'img-responsive'},
{title: 'Responsive (recommended)', selector: 'img', classes: 'img-responsive img-fluid'},
{title: 'Rounded', selector: 'img', classes: 'img-rounded'},
{title: 'Circle', selector: 'img', classes: 'img-circle'},
{title: 'Thumbnail', selector: 'img', classes: 'img-thumbnail'},

View File

@ -1136,7 +1136,7 @@ class e_install
continue;
}
$thumbnail = "<img class='img-responsive thumbnail' src='".$preview ."' alt='".$val."' />";
$thumbnail = "<img class='img-responsive img-fluid thumbnail' src='".$preview ."' alt='".$val."' />";
$selected = ($val == 'landingzero') ? " checked" : "";