Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Html codes in different parts of the website

Hello.
I'm very new with phpfusion, and i have a question. how it's possible to add some html codes in different parts of the website, like: under header, in footer, in download page, after the first post in forums...
thanks.
I tried ad manager infusion but do not appear in admin panel
In your current theme - theme.php file, find, render_poge() function. Do it there.

CodeDownload  

function render_page() {
?>
html code here.
<?php
echo CONTENT; // this is the CMS output.
}

this is my theme.php
i don't know where to add
i've tried in many spots but give me crach page
CodeDownload  
if (!defined('IN_FUSION')) {
 die('Access Denied');
}

require_once INCLUDES.'theme_functions_include.php';
require_once 'theme_autoloader.php';

define('THEME_BULLET', '&middot;');
define('BOOTSTRAP', TRUE);
define('FONTAWESOME', TRUE);

if (!defined('ATOM9_LOCALE')) {
 if (file_exists(THEME.'locale/'.LANGUAGE.'.php')) {
 define('ATOM9_LOCALE', THEME.'locale/'.LANGUAGE.'.php');
 } else {
 define('ATOM9_LOCALE', THEME.'locale/English.php');
 }
}

function render_page(){
 Atom9Theme\Producer::GetInstance()->render_page();
}

function opentable($title = '', $class = '') {
 echo '<div class="mainpanel '.$class.'">';
 echo $title ? '<div class="heading">'.$title.'</div>' : '';
 echo '<div class="body">';
}

function closetable() {
 echo '</div>';
 echo '</div>';
}

function openside($title = '') {
 echo '<div class="sidepanel">';
 echo $title ? '<div class="heading">'.$title.'</div>' : '';
 echo '<div class="body">';
}

function closeside() {
 echo '</div>';
 echo '</div>';
}

$theme_settings = get_theme_settings('Atom9');
$ignition_pack = !empty($theme_settings['ignition_pack']) ? $theme_settings['ignition_pack'] : 'DefaultPack';
define('IGNITION_PACK', THEME.'IgnitionPacks/'.$ignition_pack.'/');

Atom9Theme\Core::GetInstance()->GetIgnitionPacks($ignition_pack);

CodeDownload  
function render_page(){
 Atom9Theme\Producer::GetInstance()->render_page();
}



go to the render_page() method in Atom9Theme
Thread Information
Author
Replies
4 posts
Views
242 times
Last Post
Last updated on 2 months ago
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Chan, Chan2, atsmod