update branch
This commit is contained in:
@ -15,17 +15,29 @@ class CCMS
|
||||
// }
|
||||
|
||||
|
||||
// public static function getSiteVars()
|
||||
// {
|
||||
// $siteVars = DB::table("settings")->where('status', 1)->orderby('display_order')->first();
|
||||
// return $siteVars;
|
||||
// }
|
||||
public static function getSiteVars()
|
||||
{
|
||||
$siteVars = DB::table("settings")->where('status', 1)->orderby('display_order')->first();
|
||||
return $siteVars;
|
||||
}
|
||||
|
||||
public static function createMenuLink($text, $URL)
|
||||
{
|
||||
$isActive = request()->fullUrl() == $URL;
|
||||
$activeClass = $isActive ? 'active' : '';
|
||||
?>
|
||||
<li>
|
||||
<a class="nav-link menu-link <?php echo $activeClass; ?>" href="<?php echo $URL; ?>"><i class="ri-file-text-line "></i> <span data-key="t-landing">
|
||||
<?php echo $text; ?>
|
||||
</span></a>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
// private function initDB()
|
||||
// {
|
||||
// static $initialized = false;
|
||||
// if (!$initialized) {
|
||||
|
||||
|
||||
|
||||
// if (!(DB::table('users')->first())) {
|
||||
// DB::statement("INSERT INTO `tbl_users` (`name`,`email`,`username`,`password`,`status`) VALUES ('Prajwal Adhikari','prajwalbro@hotmail.com','prajwalbro@hotmail.com','$2y$10$3zlF9VeXexzWKRDPZuDio.W7RZIC3tU.cjwMoLzG8ki8bVwAQn1WW','1');");
|
||||
|
Reference in New Issue
Block a user