Jeremy Newman : use btn class on navigation links
Jeremy Newman
jnewman at wine.codeweavers.com
Wed Jan 20 14:15:10 CST 2016
Module: website
Branch: master
Commit: 76b2720232daf982ce186adad71cd8436b24ae61
URL: http://source.winehq.org/git/website.git/?a=commit;h=76b2720232daf982ce186adad71cd8436b24ae61
Author: Jeremy Newman <jnewman at codeweavers.com>
Date: Wed Jan 20 14:13:54 2016 -0600
use btn class on navigation links
---
include/plugins/news.php | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/include/plugins/news.php b/include/plugins/news.php
index e78b0eb..3d78b74 100644
--- a/include/plugins/news.php
+++ b/include/plugins/news.php
@@ -55,7 +55,7 @@ switch (true)
// add to news body
echo $html->template('base', 'news_row', $vars);
- echo $html->p($html->ahref("<< Back", "{$html->_web_root}/news"));
+ echo $html->p($html->ahref('<span class="glyphicon glyphicon-backward"></span>', "{$html->_web_root}/news", 'class="btn btn-default"'));
break;
// RSS view
@@ -129,7 +129,7 @@ switch (true)
$html->rss_link = "{$config->base_url}news/rss/";
// max count for posts per page
- $amax = (PAGE == "home" ? 10 : 25);
+ $amax = isset_or($_PLUGIN['n'], 25);
// where are we in news list
$x = 0;
@@ -190,16 +190,16 @@ switch (true)
$next_link = "";
// add back to first page link when not first page
if ($x != 0)
- $prev_link .= $html->ahref('<span class="glyphicon glyphicon-fast-backward"></span>', $_SERVER['PHP_SELF'], 'class="menuItem"')." ";
+ $prev_link .= $html->ahref('<span class="glyphicon glyphicon-fast-backward"></span>', $_SERVER['PHP_SELF'], 'class="btn btn-default"')." ";
// display prev link
if ($x > 0)
- $prev_link .= $html->ahref('<span class="glyphicon glyphicon-chevron-left"></span>', $_SERVER['PHP_SELF'].($x - $amax), 'class="menuItem"');
+ $prev_link .= $html->ahref('<span class="glyphicon glyphicon-chevron-left"></span>', $_SERVER['PHP_SELF'].($x - $amax), 'class="btn btn-default"');
// display next link
if (($x + $amax) < $total)
{
- $next_link .= $html->ahref('<span class="glyphicon glyphicon-chevron-right"></span>', $_SERVER['PHP_SELF'].($x + $amax) , 'class="menuItem"');
+ $next_link .= $html->ahref('<span class="glyphicon glyphicon-chevron-right"></span>', $_SERVER['PHP_SELF'].($x + $amax), 'class="btn btn-default"');
// add jump to last page link
- $next_link .= " ".$html->ahref('<span class="glyphicon glyphicon-fast-forward"></span>', $_SERVER['PHP_SELF'].($pages * $amax) , 'class="menuItem"');
+ $next_link .= " ".$html->ahref('<span class="glyphicon glyphicon-fast-forward"></span>', $_SERVER['PHP_SELF'].($pages * $amax), 'class="btn btn-default"');
}
// add prev/next links
echo $html->p($html->div($prev_link.' '.$next_link, 'class="center"'));
More information about the wine-cvs
mailing list