Example #1
0
 /**
  * Get ready for displaying the skin.
  *
  * This may register some CSS or JS...
  */
 function display_init()
 {
     // call parent:
     parent::display_init();
     // Add CSS:
     require_css('basic_styles.css', 'blog');
     // the REAL basic styles
     require_css('basic.css', 'blog');
     // Basic styles
     require_css('blog_base.css', 'blog');
     // Default styles for the blog navigation
     require_css('item_base.css', 'blog');
     // Default styles for the post CONTENT
     // Make sure standard CSS is called ahead of custom CSS generated below:
     require_css('style.css', 'relative');
     require_js('ajax.js', 'blog');
     require_js('functions.js');
     require_js('rollovers.js');
     skin_content_header();
     // Sets charset!
     require_js('jquery-1.2.3.min.js');
     require_js('jquery.easing.min.js');
     require_js('jquery.lavalamp.min.js');
     // Colorbox (a lightweight Lightbox alternative) allows to zoom on images and do slideshows with groups of images:
     if ($this->get_setting("colorbox")) {
         require_js_helper('colorbox', 'blog');
     }
 }
Example #2
0
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
// Note: even if we request the same post as $Item earlier, the following will do more restrictions (dates, etc.)
// Init the MainList object:
init_MainList($Blog->get_setting('posts_per_feed'));
// What level of detail do we want?
$feed_content = $Blog->get_setting('feed_content');
if ($feed_content == 'none') {
    // We don't want to provide this feed!
    global $skins_path;
    require $skins_path . '_404_not_found.main.php';
    exit;
}
skin_content_header('application/xml');
// Sets charset!
echo '<?xml version="1.0" encoding="' . $io_charset . '"?' . '>';
?>
<!-- generator="<?php 
echo $app_name;
?>
/<?php 
echo $app_version;
?>
" -->
<rss version="0.92">
	<channel>
		<title><?php 
$Blog->disp('name', 'xml');
// ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
Example #3
0
 * However this file is not meant to be called directly.
 * It is meant to be called automagically by b2evolution.
 * To display a blog, you should call a stub file instead, for example:
 * /blogs/index.php or /blogs/blog_b.php
 *
 * b2evolution - {@link http://b2evolution.net/}
 * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
 * @copyright (c)2003-2006 by Francois PLANQUE - {@link http://fplanque.net/}
 *
 * @package evoskins
 * @subpackage crystal_glass
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
skin_content_header();
// Sets charset!
?>
<!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();
?>
">
<head>
<?php 
skin_content_meta();
/* Charset for static pages */
?>
Example #4
0
 */
if (!defined('EVO_MAIN_INIT')) {
    die('Please, do not access this page directly.');
}
if (isset($Item)) {
    // Comments for a specific Item:
    $CommentList =& new CommentList($Blog, "'comment'", array('published'), $Item->ID, '', 'DESC', '', $Blog->get_setting('posts_per_feed'));
} else {
    // Comments for the blog:
    $CommentList =& new CommentList($Blog, "'comment'", array('published'), '', '', 'DESC', '', $Blog->get_setting('posts_per_feed'));
}
if ($debug) {
    skin_content_header('application/xml');
    // Sets charset!
} else {
    skin_content_header('application/atom+xml');
    // Sets charset!
}
echo '<?xml version="1.0" encoding="' . $io_charset . '"?' . '>';
?>
<feed xml:lang="<?php 
$Blog->disp('locale', 'xml');
?>
" xmlns="http://www.w3.org/2005/Atom">
	<title><?php 
$Blog->disp('name', 'xml');
// ------------------------- TITLE FOR THE CURRENT REQUEST -------------------------
request_title(array('title_before' => ' - ', 'title_after' => '', 'title_none' => '', 'glue' => ' - ', 'title_single_disp' => true, 'format' => 'xml'));
// ------------------------------ END OF REQUEST TITLE -----------------------------
?>
</title>