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.
Not a member yet? Click here to register.
Forgot Password?

Html codes in different parts of the website

Asked Modified Viewed 1,085 times
A
atsmod
A
atsmod 10
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
asked
Newbie

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
0 replies

2 posts

C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

In your current theme - theme.php file, find, render_poge() function. Do it there.


function render_page() {
?>
html code here.
<?php
echo CONTENT; // this is the CMS output.
}
0 replies
A
atsmod
A
atsmod 10
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
answered
Newbie

this is my theme.php
i don't know where to add
i've tried in many spots but give me crach page
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);
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 2 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
A
A
atsmod 10
  • Newbie, joined since
  • Contributed 7 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet