Lines:
1 to 100 of 123
<?php /* bw_block_31.inc - functions for creating blocks with Artisteer version 3.1 level Current limitations: - code does not support framed=n. eartblock function would have to be able to recognise whether or not framed was used in the previous artblock we would have to maintain a stack of the framed parameters to support nested blocks ... but first we need to determine whether or not we can handle each of the block styles. - level parameter does not default to the Artisteer options for block heading levels. Notes: The div structure for Artisteer 3.1 blocks is much simpler than it was. */ /* function bw_block_31() – 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_31() – 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_31() – Create a block header if the title text is specified Notes: link and icon parameters not yet supported. */ /* function artblockframe_31() – draw the frame around the block header */ /* function artblockcontentframe_31() – draw the frame around the block content */ /* function sartblock_31() – start an Artisteer style block */ /* function eartblock_31() – end an Artisteer style block Note: Not sure if the cleared blocks are actually needed */ /* Examples extracted from an actual page. <div class="art-box art-block widget widget_links" id="linkcat-2"> <div class="art-box-body art-block-body"> <div class="art-bar art-blockheader"> <h3 class="t">Blogroll</h3> </div> <div class="art-box art-blockcontent"> <div class="art-box-body art-blockcontent-body"> // content goes here <div class="cleared"></div> </div> </div> <div class="cleared"></div> </div> </div> <div class="art-box art-block widget widget_text" id="text-17"> <div class="art-box-body art-block-body"> <div class="art-bar art-blockheader"> <h3 class="t">a block</h3> </div> <div class="art-box art-blockcontent"> <div class="art-box-body art-blockcontent-body"> // <div class="textwidget">this is the content of a block in the lhs</div> <div class="cleared"></div> </div> </div> <div class="cleared"></div> </div> </div> <div class="art-box art-block widget widget_text" id="text-32"> <div class="art-box-body art-block-body"> <div class="art-bar art-blockheader"> <h3 class="t">a block</h3> </div> <div class="art-box art-blockcontent"> <div class="art-box-body art-blockcontent-body"> <div class="textwidget">this is the content of a block</div> <div class="cleared"></div> </div> </div> <div class="cleared"></div> </div> </div> <div class="cleared"></div> </div> </div> <div> <div class="art-box art-block"> <div class="art-box-body art-block-body"> <div class="art-bar art-blockheader"> <h3 class="t">titled</h3>View on GitHub View on Trac