Пример #1
0
<div id="bookshelf-canvas-div">
<?php 
// If the skin has pre-content setup, include it here.
require_once "library/core/util-skin.php";
skin_include("block-dashboard-canvas-pre.php");
?>
<div id="bookshelf-canvas-container">
<?php 
require_once "library/core/class-story.php";
$cStory = new akStory();
$cStory->createSimpleChunk(STORY_CHUNK_SECTION, "Welcome");
$cStory->createSimpleChunk(STORY_CHUNK_FILE, "assets/blocks/bookshelf-canvas/welcome.html");
// CLEAN: Add intro text here?
$cStory->emit();
?>
</div><!-- Close bookshelf-canvas-container -->
<?php 
// If the skin has post-content setup, include it here.
skin_include("block-dashboard-canvas-post.php");
?>
</div>
Пример #2
0
<div id="block-staff-blog" class="block-content-addmargin">
<?php 
// Staff blog block (sidebar/multibar)
//
// Incorportate latest entries from all staff members into
// a single blogblock
//
// Required parameters:
// ---------------------
//
// Optional parameters:
// ---------------------
// Step 1: Pull parameters
// Step 2: Generate list from blog books
// Step 3: Build a story, with a series header whenever it changes...
$st = new akStory();
$st->createSimpleChunk(STORY_CHUNK_META, "Coming &quot;soon&quot;...");
// Step 4: emit the story
$st->emit();
?>
</div>