Current File : //root/panel/dryden/ui/tpl/newthemethemeby.class.php
<?php
/**
 * @copyright 2014-2015 Sentora Project (http://www.sentora.org/) 
 * Sentora is a GPL fork of the ZPanel Project whose original header follows:
 *
 * Generic template place holder class.
 * @package zpanelx
 * @subpackage dryden -> ui -> tpl
 * @version 1.0.0
 * @author Bobby Allen (ballen@bobbyallen.me)
 * @copyright ZPanel Project (http://www.zpanelcp.com/)
 * @link http://www.zpanelcp.com/
 * @license GPL (http://www.gnu.org/licenses/gpl.html)
 */
// newthemethemeby.class.php 
class ui_tpl_newthemethemeby
{

	public static function Template() 
	{
          global $zdbh;
		$sql = "SELECT * FROM x_new_theme_settings WHERE x_key='powered_by_file_name'";
        $numrows = $zdbh->prepare($sql);
	    $numrows->execute();
	    $rowdomains = $numrows->fetch();
		$logo_img='<img class="sentora_logo_sig" src="etc/styles/Zentora-master/img/style/'.$rowdomains['x_value'].'" border="0" width="35" height="35" />';
		$sql = "SELECT * FROM x_new_theme_settings WHERE x_key='powered_by_URL'";
        $numrows = $zdbh->prepare($sql);
	    $numrows->execute();
	    $rowdomains = $numrows->fetch();
		$get_url=$rowdomains['x_value'];
		$sql = "SELECT * FROM x_new_theme_settings WHERE x_key='themed_by_content'";
        $numrows = $zdbh->prepare($sql);
	    $numrows->execute();
	    $rowdomains = $numrows->fetch();
		$get_tooltip=$rowdomains['x_value'];
		$return='<p class="navbar-text pull-right footerImg">Theme by <a href="'.$get_url.'" data-toggle="tooltip" data-placement="top" data-original-title="'.$get_tooltip.'" target="_blank">'.$logo_img.'</a></p>';
		return $return;
    }
}