Ejemplo n.º 1
0
<?php

// The url to send to view_source.php
// first encode the basic info
$strCatId = Examples::GetCategoryId();
$strUrl = __VIRTUAL_DIRECTORY__ . __EXAMPLES__ . '/view_source.php/' . $strCatId . '/' . Examples::GetExampleId();
if ($strCatId == "plugin") {
    $strFile = Examples::GetPluginFile();
    $strUrl .= '/' . $strFile . '/' . $strFile;
} else {
    $strUrl .= '/' . basename(QApplication::$ScriptName);
}
if (!isset($mainPage)) {
    ?>
			<button id="viewSource">View Source</button>
<?php 
}
?>
		</section>
		<footer>
			<div id="tagline"><a href="http://qcubed.github.com/" title="QCubed Homepage"><img id="logo" src="<?php 
_p(__VIRTUAL_DIRECTORY__ . __IMAGE_ASSETS__ . '/qcubed_logo_footer.png', false);
?>
" alt="QCubed Framework" /> <span class="version"><?php 
_p(QCUBED_VERSION);
?>
</span></a></div>
		</footer>
		
		<script type="text/javascript">
			// jQuery isn't always available