1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
|
<?php
/**
* This is a demo template displaying a summary of the last posts in each blog
*
* If you're new to b2evolution templates or skins, you should not start with this file
* It will be easier to start examining blog_a.php or noskin_a.php for instance...
*
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
* @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
*
* @package evoskins
* @subpackage noskin
*/
/**
* Check this: we are requiring _main.php INSTEAD of _blog_main.php because we are not
* trying to initialize any particular blog
*/
require(dirname(__FILE__).'/b2evocore/_main.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php locale_lang() ?>" lang="<?php locale_lang() ?>"><!-- InstanceBegin template="/Templates/Standard.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<meta http-equiv="Content-Type" content="text/html; charset=<?php locale_charset() ?>" />
<title>Summary Demo</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<link rel="stylesheet" href="rsc/fp02.css" type="text/css" />
</head>
<body>
<div class="pageHeader">
<div class="pageHeaderContent">
<!-- InstanceBeginEditable name="NavBar2" -->
<?php // --------------------------- BLOG LIST INCLUDED HERE -----------------------------
$display_blog_list = 1; // forced
# this is what will start and end your blog links
$blog_list_start = '<div class="NavBar">';
$blog_list_end = '</div>';
# this is what will separate your blog links
$blog_item_start = '';
$blog_item_end = '';
# This is the class of for the selected blog link:
$blog_selected_link_class = 'NavButton2';
# This is the class of for the other blog links:
$blog_other_link_class = 'NavButton2';
# This is additionnal markup before and after the selected blog name
$blog_selected_name_before = '<span class="small">';
$blog_selected_name_after = '</span>';
# This is additionnal markup before and after the other blog names
$blog_other_name_before = '<span class="small">';
$blog_other_name_after = '</span>';
// Include the bloglist
require( get_path('skins').'/_bloglist.php');
// ---------------------------------- END OF BLOG LIST --------------------------------- ?>
<!-- InstanceEndEditable -->
<div class="NavBar">
<div id="Logo"> </div>
<div class="pageTitle">
<h1 id="pageTitle"><!-- InstanceBeginEditable name="PageTitle" --><?php echo T_('Summary demo') ?><!-- InstanceEndEditable --></h1>
</div>
</div>
<div class="pageHeaderEnd"></div>
</div>
</div>
<div class="pageSubTitle"><!-- InstanceBeginEditable name="SubTitle" --><?php echo T_('This demo template displays a summary of last posts in all blogs') ?><!-- InstanceEndEditable --></div>
<div class="main"><!-- InstanceBeginEditable name="Main" -->
<!-- =================================== START OF MAIN AREA =================================== -->
<?php // --------------------------- BLOG LIST -----------------------------
for( $blog=blog_list_start('stub');
$blog!=false;
$blog=blog_list_next('stub') )
{ # by uncommenting the following lines you can hide some blogs
// if( $blog == 1 ) continue; // Hide blog 1...
?>
<h3><a href="<?php blog_list_iteminfo('blogurl', 'raw' ) ?>" title="<?php blog_list_iteminfo( 'shortdesc', 'htmlattr'); ?>"><?php blog_list_iteminfo( 'name', 'htmlbody'); ?></a></h3>
<ul>
<?php // Get the 3 last posts for each blog:
$BlogBList = & new ItemList( $blog, '', '', '', '', '', array(), '', 'DESC', '', '', '', '', '', '', '', '', '', '3', 'posts' );
while( $Item = $BlogBList->get_item() )
{
?>
<li lang="<?php $Item->lang() ?>">
<?php $Item->issue_date() ?>:
<a href="<?php $Item->permalink() ?>" title="<?php echo T_('Permanent link to full entry') ?>"><?php $Item->title( '', '', false ); ?></a>
<span class="small">[<?php $Item->lang() ?>]</span>
</li>
<?php
}
?>
<li><a href="<?php blog_list_iteminfo('blogurl', 'raw' ) ?>"><?php echo T_('More posts...') ?></a></li>
</ul>
<?php
}
// ---------------------------------- END OF BLOG LIST --------------------------------- ?>
<!-- InstanceEndEditable --></div>
<table cellspacing="3" class="wide">
<tr>
<td class="cartouche">Original page design by <a href="http://fplanque.net/">François PLANQUE</a> </td>
<td class="cartouche" align="right"> <a href="http://b2evolution.net/" title="b2evolution home"><img src="img/b2evolution_button.png" alt="b2evolution" width="80" height="15" border="0" class="middle" /></a></td>
</tr>
</table>
<p class="baseline">
<a href="http://validator.w3.org/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" class="middle" /></a>
<a href="http://jigsaw.w3.org/css-validator/"><img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" class="middle" /></a>
<?php if( isset($Blog) )
{ ?>
<a href="http://feedvalidator.org/check.cgi?url=<?php $Blog->disp( 'rss2_url', 'raw' ) ?>"><img src="img/valid-rss.png" alt="Valid RSS!" style="border:0;width:88px;height:31px" class="middle" /></a>
<a href="http://feedvalidator.org/check.cgi?url=<?php $Blog->disp( 'atom_url', 'raw' ) ?>"><img src="img/valid-atom.png" alt="Valid Atom!" style="border:0;width:88px;height:31px" class="middle" /></a>
<?php } ?>
<!-- InstanceBeginEditable name="Baseline" -->
<?php
if ($debug==1)
{
echo "Debug: $querycount queries - ".number_format(timer_stop(),3)." seconds";
}
?>
<!-- InstanceEndEditable --></p>
</body>
<!-- InstanceEnd --></html>
|