<?php // (C) Copyright Bobbing Wide 2013 /* bw_block_41.inc - functions for creating blocks with Artisteer version 4.1 level Current limitations: - level parameter does not default to the Artisteer options for block heading levels. Notes: The div structure for Artisteer 4.1 blocks is the same as for Artisteer 4.0 */ /* function bw_block_41() – Syntax [bw_block class="classes" title="title text" framed="y/n,t/f,1/0"] Future use parameters are prefix="art-" level="h3" – heading level for the block title */ /* function bw_eblock_41() – Syntax for [bw_eblock] There are no parameters. We use this shortcode to end a block Using this technique means we can nest blocks within blocks. */ /* function artblockheader_41() – Create a block header if the title text is specified */ /* function sartblock_41() – Start an Artisteer 4.1 style block */ /* function eartblock_41() – end an Artisteer style block Note: Not sure if the cleared blocks are actually needed */ /* Examples extracted from an actual page running Artisteer v4.1, 2013-06-15 Meta block - with most of the list items removed - same as Artisteer 4.0 <div id="meta-3" class="art-block widget widget_meta clearfix"> <div class="art-blockheader"> <div class="t">Meta</div> </div> <div class="art-blockcontent"> <ul> <li>Dummy meta</li> </ul> </div> </div> This is a widget with "block" style - same as Artisteer 4.0 <div id="text-66" class="art-block widget widget_text clearfix"> <div class="art-blockheader"> <div class="t">Artisteer 4.1 – block </div> </div> <div class="art-blockcontent"> <div class="textwidget">Content - block </div> </div> </div> This is a widget with "post" style - same as Artisteer 4.0 BUT not currently supported in this code. <article id="text-56" class="art-post art-article widget widget_text"> <div class="art-postheader">Artisteer 4 – post </div> <div class="art-postcontent clearfix"> <div class="textwidget">Content - post </div> </div> </article> This is a widget with "simple text" style - same as Artisteer 4.0 BUT not currently supported in this code. <div class="art-widget widget widget_text" id="text-66"> <div class="art-widget-title">Artisteer 4.1 – simple text </div> <div class="art-widget-content"> <div class="textwidget">Content - simple text </div> </div> </div> */View on GitHub View on Trac