Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Trader (http://www.bvlist.com/forumdisplay.php?f=29)
-   -   updating functions (http://www.bvlist.com/showthread.php?t=10778)

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:

tiloup 4th June 2016 22:53

Thanks You ! ♫


All times are GMT +2. The time now is 07:51.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.