This section allows you to view all posts where this member received or gave a like to.
1
This is working, only problem is, that i don't know how to set the page title yet.
Setting $context['page_title'] or $context['page_title_html_safe'] should work but doesn't...
Code: [Select]
EDIT: Got it working:
Code: [Select]
Setting $context['page_title'] or $context['page_title_html_safe'] should work but doesn't...
<?php
function template_custom_main(){
echo'
<span class="clear upperframe"><span></span></span>
<div class="roundframe"><div class="innerframe">';
echo'
<div class="cat_bar">
<h3 class="catbg">Hello everyone</h3>
</div>
<p>This is a custom page example. pretty cool, huh.</p>';
echo'
</div></div>
<span class="lowerframe"><span></span></span>';
}
//Path to SSI.php
require(dirname(__FILE__) . '/core/SSI.php');
[s]$context['page_title'] = "Custom Page";[/s]
//Load (template_)custom_main
wetem::load('custom_main');
//Display theme stuff
wetem::render();
EDIT: Got it working:
<?php
function template_custom_main(){
echo'
<span class="clear upperframe"><span></span></span>
<div class="roundframe"><div class="innerframe">';
echo'
<div class="cat_bar">
<h3 class="catbg">Hello everyone</h3>
</div>
<p>This is a custom page example. pretty cool, huh.</p>';
echo'
</div></div>
<span class="lowerframe"><span></span></span>';
}
//Path to SSI.php
require(dirname(__FILE__) . '/core/SSI.php');
//Load (template_)custom_main
wetem::load('custom_main');
//Page title. This will appear in the browser
$context['page_title_html_safe'] = "Custom Page";
//Display theme stuff
wetem::render();