<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) PHPFusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: footer_includes.php
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
//Add your custom include files for the footer here
<?php
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) PHPFusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: footer_includes.php
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
//Add your custom include files for the footer here
<?php include '/home/xxxxxx/public_html/ads/ads.php'; ?>
/* Code to display ad(s) */
<?php $buttons1 = new digiAds (null, ); ?>
<script language="javascript" type="text/javascript" src="/ads/js.php"></script>
<?php
add_to_head("<link ref='....'>"); will add your stylesheet into the header of the HTML when PHPFusion reloads.
add_to_footer("<script type='text/javascript' src='.....'>"); will add it to the very bottom of the HTML when PHPFusion Reloads.
add_to_jquery("
// purely JS code
alert('hi');
"); // will add it to the Jquery compiler of the PHPFusion when reload
?>
add_to_footer(" put everything in here ");
function theme_functions($param, $param2, $param3) {
// has echo
echo "something";
}
// and you do this..
theme_functions($a,$b,$c); // already has echo.... but you need to push it to footer section...
// what you do is...
// But caution.... PHP version less than 5.4 have Memory Overflow hackers intrusion vulnerability.
ob_start();
theme_functions($a, $b, $c);
$html_of_the_above = ob_get_contents();
ob_end_clean();
add_to_footer($html_of_the_above);
Quote
Due to this inflexibility in earlier functions which contains ECHO. Refrain from doing so when coding your own function. Return as a string in your design. It makes using that function twice as easy -- at least it will be output handler friendly stuff..
$buttons1 = new digiAds (null, 'what-is-this');
echo $buttons1
Category Forum
General DiscussionLabels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions