BamBam0077 |
21st March 2016 09:36 |
updating functions
Old Approach:
PHP Code:
//BEGIN FRAME function begin_frame($caption = "-", $align = "justify"){ global $THEME, $site_config; $blockId = 'f-' . sha1($caption); print("<div class='myFrame'> <div class='myFrame-caption'>$caption<a style='float:right; clear:right;' href='#' class='showHide' id='$blockId'></a></div> <div class='myFrame-content'> <div class='slidingDiv$blockId'>"); }
Fresh Approach:
PHP Code:
// CMS BEGIN FRAME function cms_begin_frame( $cms_title_caption = "-", $cms_block_alignment= "justify") {
$cms_block_ID = 'f-' . sha1($cms_title_caption); echo "<div class='myFrame'> <div class='myFrame-caption'> $cms_title_caption <a style='float:right;clear: right;' class='showHide' id='$cms_block_ID' href='#'></a></div> <div class='myFrame-content'> <div class='slidingDiv$cms_block_ID'>"; }
Old Approach:
PHP Code:
//END FRAME function end_frame() { global $THEME, $site_config; print("</div></div> <div class='myFrame-foot'></div> </div> "); }
Fresh Approach:
PHP Code:
// END CMS FRAME function cms_end_frame() { echo "</div></div> <div class='myFrame-foot'></div> </div>"; }
Above was taken from block.php which is found in the following location, /www/themes/default/block.php
I will show more examples the more I dig into this base. :music:
|