So I used it as a base with some modification.
I forgot to show you in the video. The theme is responsive so it can be adapted for any size of Desktop
if ($xoTheme->template->_tpl_vars['xoops_showlblock']):
$_from = $xoTheme->template->_tpl_vars['xoBlocks']['canvas_left']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $xoTheme->template->_tpl_vars['block'] => $kex):
echo $kex["content"];
endforeach; endif; unset($_from);
endif;
if ($xoTheme->template->_tpl_vars['xoBlocks']['page_topleft'] || $xoTheme->template->_tpl_vars['xoBlocks']['page_topcenter'] || $xoTheme->template->_tpl_vars['xoBlocks']['page_topright']):
$_from = $xoTheme->template->_tpl_vars['xoBlocks']['page_topcenter']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $xoTheme->template->_tpl_vars['block'] => $kex):
echo $kex["content"];
endforeach; endif; unset($_from);
echo '<{$xoops_slogan}> => "'.htmlspecialchars($GLOBALS['xoopsConfig']['slogan'], ENT_QUOTES).'"';
<{$xoops_sitename}> - "'.htmlspecialchars($GLOBALS['xoopsConfig']['sitename'], ENT_QUOTES).'"
<{if $xoops_showlblock}>
<{foreach item=block from=$xoBlocks.canvas_left}>
<{if $block.title}>
<div class="blockTitle"><{$block.title}></div>
<{/if}>
<div class="blockContent"><{$block.content}></div>
<{/foreach}>
<{/if}>
<{if $xoops_showlblock}>
<{foreach item=block from=$xoBlocks.canvas_left}>
<{if $block.title}>
<div class="blockTitle"><{$block.title}></div>
<{/if}>
<div class="blockContent"><{$block.content}></div>
<{/foreach}>
<{/if}>
<?php
if (file_exists("mainfile.php")) {
include("mainfile.php");
}
include(XOOPS_ROOT_PATH."/header.php");
echo '<{$xoops_banner}>';
include(XOOPS_ROOT_PATH."/footer.php");
?>
$video['sourceico'] = '<img src="' . XOOPS_URL . '/modules/' . $xoopsModule -> getVar( 'dirname' ) . '/images/icon/' . $video_arr['vidsource'] . '.png" alt="Source" title="Source" style="width: 16px; vertical-align: middle;">';
$video['icons'] = xtubeDisplayIcons($video_arr['published'], $video_arr['status'], $video_arr['hits']);
<{$video.sourceico}>
<{$video.icons}>
$ht = new RMHtaccess('page: '.$page->id());
$rewrite = $ht->canWrite() && $ht->isCapable();
$rewriteRule = "# begin page: ".$page->id()."nRewriteRule ^".$page->getVar('custom_title')."/?(.*)$ modules/qpages/index.php?page=".$page->getVar('nameid')." [L]n# end page: ".$page->id();