<?php
if (!defined('SMF'))
die('Hack Attempt...');
function DonatemcMain()
{
global $context, $scripturl, $txt, $smcFunc;
loadTemplate('Donatemc');
$context['page_title'] = $txt['donatemc_PageTitle'];
$context['page_title_html_safe'] = $smcFunc['htmlspecialchars'](un_htmlspecialchars($context['page_title']));
$context['linktree'][] = array(
'url' => $scripturl. '?action=donatemc',
'name' => 'Donation (Minecraft)',
);
$context['donatemc_Head'] = 'Donation (Minecraft)';
$context['donatemc_Body'] = 'Hello World!';
}
echo '
Paypal Button Code Here
Paypal Button Code Here
Paypal Button Code Here
Paypal Button Code Here
Paypal Button Code Here
Paypal Button Code Here
Paypal Button Code Here
Paypal Button Code Here
';
?>
<?php
function template_main()
{
global $context;
// Catbg header
echo '<div class="cat_bar">
<h3 class="catbg">', $context['donatemc_Head'], '</h3>
</div>';
// Windowbg2 Content
echo '<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">', $context['donatemc_Body'], '</div>
<span class="botslice"><span></span></span>
</div><br />';
}
?>
// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
$actionArray = array(
// Start Custom Home Action
'home' => array('Home.php', 'HomeMain'),
// End Custom Home Action
// Start Custom Donation (Minecraft) Action
'donatemc' => array('Donatemc.php', 'DonatemcMain'),
// End Custom Donation (Minecraft) Action
$txt['message_index'] = 'Message Index'; $txt['news'] = 'News'; $txt['forums'] = 'Forums'; $txt['home'] = 'Home'; $txt['donatemc'] = 'Donatemc';
// Start Custom Donation (Minecraft) Action $txt['donatemc'] = 'Donatemc'; $txt['donatemc_PageTitle'] = 'Website Name Here - Donation (Minecraft)'; // End Custom Donation (Minecraft) Action
// Start Custom Donation (Minecraft) Action $txt['whoall_donatemc'] = 'Viewing <a href="' . $scripturl . '?action=donatemc">Index Title</a>.'; // End Custom Donation (Minecraft) Action
'donatemc' => array( 'title' => 'Server', 'show' => true, 'sub_buttons' => array( 'donatemc' => array( 'title' => 'Donate (Minecraft)', 'href' => $scripturl . '?action=donatemc', 'show' => true, ), 'votemc' => array( 'title' => 'Vote (Minecraft)', 'href' => $scripturl . '?action=votemc', 'show' => true, ), 'donaters' => array( 'title' => 'Donate (soon)', 'href' => $scripturl . '?action=soon', 'show' => true, ), 'voters' => array( 'title' => 'Vote (soon)', 'href' => $scripturl . '?action=soon', 'show' => true, ), ), ),
<html>
....
<body>
<div id="main_container">
<div id="more_divs">
...
<?php
echo "<hr>This is from echo1. Copy?<hr>";
// include("...") maybe?
?>
</div>
<div id="etc_etc">
...
<?php
echo "<hr>This is from echo2. Copy?<hr>";
//include("..") maybe?
?>
</div>
...
</div> //main_container
</body>
</html>
<?php
function template_main()
{
global $context;
// Catbg header
echo '<div class="cat_bar">
<h3 class="catbg">'.$context['donatemc_Head'].'</h3>
</div>';
// Windowbg2 Content
echo '<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content"><ul><li>'.$context['donatemc_Body'].'</li><li>'.$context['donatemc_Button'].'</li></ul></div>
<span class="botslice"><span></span></span>
</div><br />';
}
?>
<?php
if (!defined('SMF'))
die('Hack Attempt...');
function DonatemcMain()
{
global $context, $scripturl, $txt, $smcFunc;
loadTemplate('Donatemc');
$context['page_title'] = $txt['donatemc_PageTitle'];
$context['page_title_html_safe'] = $smcFunc['htmlspecialchars'](un_htmlspecialchars($context['page_title']));
$context['linktree'][] = array(
'url' => $scripturl. '?action=donatemc',
'name' => 'Donation (Minecraft)',
);
$context['donatemc_Head'] = 'Donation (Minecraft)';
$context['donatemc_Body'] = 'Hello World!';
$context['donatemc_Button'] = 'PAYPAL BUTTON CODE';
}
?>
.content ul {
width: 100%;
}
.content ul li {
width: 50%;
display: inline-block;
float: left;
}
.content ul li {
list-style-type: none;
}