Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Torrent Trader
Reply
  #1  
Old 21st March 2016, 09:36
BamBam0077 BamBam0077 is offline
Banned
 
Join Date: Jul 2013
P2P
Posts: 410
Default 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>
      <br />"
);



Fresh Approach:
PHP Code:
// END CMS FRAME
function cms_end_frame() {
    
    echo 
"</div></div>
          <div class='myFrame-foot'></div>
          </div><br />"
;

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.
Reply With Quote
  #2  
Old 4th June 2016, 22:53
tiloup tiloup is offline
Member
 
Join Date: Mar 2012
P2P
Posts: 1
Default
Thanks You ! ♫
Reply With Quote
Reply

Tags
functions , updating

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 15:17. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.