1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-19 04:41:53 +02:00

Issue #435 - start of Bootstrap 3 core support. Enable by adding the following to your theme.php file:

define("BOOTSTRAP", 3);
define("FONTAWESOME", 4); // optional

e107::js("url", "//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js");
e107::css('url', '//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css');
e107::css('url', "//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css"); // optional
This commit is contained in:
Cameron
2013-12-17 11:12:42 -08:00
parent ba18155c34
commit 7874cd1060
10 changed files with 47 additions and 16 deletions

View File

@@ -375,12 +375,12 @@ class news_shortcodes extends e_shortcode
break;
case 'tag':
return "<img class='news_image' src='".$src."' alt='' style='".$this->param['thumbnail']."' />";
return "<img class='news_image news-image' src='".$src."' alt='' style='".$this->param['thumbnail']."' />";
break;
case 'url':
default:
return "<a href='".e107::getUrl()->create('news/view/item', $this->news_item)."'><img class='news_image img-rounded' src='".$src."' alt='' style='".$this->param['thumbnail']."' /></a>";
return "<a href='".e107::getUrl()->create('news/view/item', $this->news_item)."'><img class='news_image news-image img-rounded' src='".$src."' alt='' style='".$this->param['thumbnail']."' /></a>";
break;
}
}

View File

@@ -217,6 +217,15 @@ if (is_array($pref['e_meta_list']))
unset($ret);
}
// -------- Generate Apple Touch Icon ---------
if(isset($pref['sitebutton']))
{
$appleIcon = $tp->thumbUrl($pref['sitebutton'],'w=144&h=144&crop=1',true);
echo "<link rel='apple-touch-icon' href='".$appleIcon."' />\n";
unset($appleIcon);
}
// Register Plugin specific CSS

View File

@@ -42,7 +42,7 @@ $NEXTPREV_TEMPLATE['default_separator'] = '&nbsp;';
/* ****************** Default when Bootstrap is enabled ************** */
$NEXTPREV_TEMPLATE['bootstrap_start'] = "<!-- Start of Next/Prev -->\n<div class='pagination'>\n<ul>";
$NEXTPREV_TEMPLATE['bootstrap_start'] = "<!-- Start of Next/Prev -->\n<div class='pagination'>\n<ul class='pagination'>";
$NEXTPREV_TEMPLATE['bootstrap_end'] = "</ul></div><!-- End of Next/Prev -->";
$NEXTPREV_TEMPLATE['bootstrap_nav_caption'] = '';