Skip to content

Commit

Permalink
Update (0.7.x) Stable Build
Browse files Browse the repository at this point in the history
  • Loading branch information
bijju089 committed Oct 2, 2023
1 parent b014f44 commit d3601f8
Show file tree
Hide file tree
Showing 17 changed files with 368 additions and 42 deletions.
13 changes: 12 additions & 1 deletion upload/custom/templates/Aurora/_language/en_UK.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
"addons/serverid_label": "Discord Server ID",
"addons/channelid_info_label": "To get channel ID, go to Discord Server, then right click on channel > Copy ID.",
"addons/channelid_label": "Discord Channel ID",
"navbar/modernnav_info": "To move the store button to center, go to Configuration > Navigation and change the Store position. The button is automatically enabled if theres Custom Page or Module called Store.",
"navbar/navbarminimal_label": "Minimal",
"navbar/navbarclean_label": "Clean",
"navbar/navbarmodern_label": "Modern",
"navbar/navbardynamic_label": "Dynamic",
"navbar/navbarelegant_label": "Elegant",
"navbar/navbarlogo_info_label": "This is a logo in the middle of navbar.",
Expand All @@ -33,9 +35,10 @@
"navbar/navbarexclude_info_label": "Exclude specified links seperated with {{slashCodeStart}}/{{slashCodeEnd}} from the navigation bar.",
"navbar/navbarsticky_label": "Sticky navbar",
"navbar/navbarstyle_info_label": "Sets style of content below the sticky navbar.",
"navbar/navbartype_info_label": "Select a type of navbar that appears at top.",
"navbar/navbartype_info_label": "Select a type of navbar that appears at top. This won't work if Navbar Style is Modern.",
"navbar/navbarstyle_label": "Navbar style",
"navbar/navbartype_label": "Navbar type",
"navbar/btncolour_label": "Store Button Colour",
"navbar/upload_image": "Upload Image",
"navbar/upload_banner": "Upload Banner",
"navbar/social_link": "Social Link",
Expand All @@ -52,6 +55,7 @@
"navigation/support_page": "Support",
"navigation/custom_page": "Custom Code",
"navigation/addons_page": "Addons",
"navigation/about_page": "About",
"card/card_title": "Title",
"card/card_link": "Link",
"card/card_visibleimage": "Image 1",
Expand All @@ -76,8 +80,15 @@
"home/review_info": "This template is still in beta, there may be bugs and missing functions. Keep an eye on updates {{riLinkStart}}here{{riLinkEnd}}.",
"home/update_available": "Update Available",
"home/download_update": "Download Update",
"home/require_support": "Require Support?",
"home/require_support_desc": "Join our <b>Discord server</b> for issues, questions, suggestions, theme updates, guides and more.",
"home/join_discord": "Join Discord",
"home/rate_theme": "Love Aurora?",
"home/rate_theme_desc": "Thanks for using our theme, leave a 5-star positive review on NamelessMC resource page.",
"home/rate_now": "Rate Aurora",
"custom/leave_blank_to_disable": "Leave blank to disable",
"frontend/click_to_join": "Click to join",
"frontend/click_to_copy": "Click to copy",
"frontend/members_online": "Users Online",
"frontend/players_online": "Players Online",
"frontend/portal_there_are_currently": "There are currently",
Expand Down
158 changes: 158 additions & 0 deletions upload/custom/templates/Aurora/aurora/modern_navbar.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
{assign var="navbarexcludeexploded" value="/"|@explode:$NAVBAREXCLUDE}
<div style="background-image:url('{$BANNER_IMAGE}'); padding-bottom: 65px; margin-top:0px!important; border-bottom-left-radius: 85% 20%; border-bottom-right-radius: 85% 20%;">
<div class="ui secondary small menu" id="navbar" style="background: transparent !important;">
<a class="toc item">
<i class="sidebar icon navbar-item" style="color:white;"></i>
</a>
<div class="ui container" style="justify-content: center;" id="pcnavbar">
{foreach from=$NAV_LINKS key=name item=item}
{if isset($item.items)}
<div class="ui pointing dropdown link">
<button class="ui aurora navbar button"
style="cursor: pointer; color: rgba(255, 255, 255, 0.6);">{$item.icon}
{$item.title} <i class="dropdown icon navbar-item"></i></button>
<div class="menu">
<div class="header">{$item.title}</div>
{foreach from=$item.items item=dropdown}
{if isset($dropdown.separator)}
<div class="divider navbar-item"></div>
{else}
<a class="item navbar-item" href="{$dropdown.link}" target="{$dropdown.target}">
{$dropdown.icon}{$dropdown.title}</a>
{/if}
{/foreach}
</div>
</div>
{else}
{if $item.title == 'Store'}
{if !in_array($item.title, $navbarexcludeexploded)}
<button class="ui store navbar button" onclick="location.href='{$item.link}'" style="cursor: pointer; color:white;">
{$item.icon}{$item.title}
</button>
{/if}
{else}
{if !in_array($item.title, $navbarexcludeexploded)}
<button class="ui aurora navbar button" onclick="location.href='{$item.link}'" style="cursor: pointer; color: rgba(255, 255, 255, 0.6);">
{$item.icon}{$item.title}
</button>
{/if}
{/if} {/if}
{/foreach}
</div>
</div>
<div class="ui secondary small menu" id="navbar" style="background: transparent !important;">
<div class="ui container" style="justify-content: end;">
{foreach from=$USER_SECTION key=name item=item}
{if isset($item.items)}
{if ($name == "account")}
<a class="ui mini circular image" data-toggle="popup" data-position="bottom right" id="button-{$name}"
style="background: transparent !important; cursor: pointer; margin-top: -55px; color: rgba(255, 255, 255, 0.6);">{$item.icon}</a>
{else}
<a class="ui small default icon button" data-toggle="popup" data-position="bottom right" id="button-{$name}"
style="background: transparent !important; margin-top: -55px; color: rgba(255, 255, 255, 0.6);">{$item.icon}</a>
{/if}
<div class="ui basic popup" style="margin-top:20px;">
<h4 class="ui header">{$item.title}</h4>
<div class="ui relaxed link list" id="list-{$name}">
{foreach from=$item.items item=dropdown}
{if isset($dropdown.separator)}
<div class="ui divider"></div>
{else}
{if isset($dropdown.action)}
<a class="item" href="#" data-link="{$dropdown.link}" data-action="{$dropdown.action}">
{$dropdown.icon} {$dropdown.title}
</a>
{else}
<a class="item" href="{$dropdown.link}" target="{$dropdown.target}">
{$dropdown.icon} {$dropdown.title}
</a>
{/if}
{/if}
{/foreach}
</div>
{if !empty($item.meta)}
<div class="ui link list">
<div class="ui divider"></div>
<a class="item" href="{$item.link}">{$item.meta}</a>
</div>
{/if}
</div>
{else}
{if ($name == "panel")}
<a class="ui small primary icon button" href="{$item.link}" target="{$item.target}"
style="background: transparent !important; margin-top: -55px; color: rgba(255, 255, 255, 0.6);">{$item.icon}</a>
{elseif ($name == "register")}
<a class="ui small default button" href="{$item.link}" target="{$item.target}"
style="background: transparent; margin-top: -55px; color: rgba(255, 255, 255, 0.6);">{$item.title}</a>
{else}
<a class="ui small default button" href="{$item.link}" target="{$item.target}"
style="background: transparent; margin-top: -55px; color: rgba(255, 255, 255, 0.6);">{$item.title}</a>
{/if}
{/if}
{/foreach}
</div>
</div>
<div class="ui stackable three column grid">
<div class="column" style="text-align: center; margin-top: 2.8rem; display: none;" id="mobnavbar">
<div class="ui steps">
<div class="step" style="background: transparent; color: white; flex-direction: row;">
{if $DISCORDVIEW eq '1'}
<i class="discord icon" id="dslink"></i>
{/if}
{if $MINECRAFTVIEW eq '1'}
<i class="circle play icon" onclick="copy('#ip')"></i>
{/if}
</div>
</div>
</div>
{if $DISCORDVIEW eq '1'}
<div class="column" style="text-align: center; margin-top: 2rem;" id="pcnavbar">
<div class="ui steps">
<div class="step" style="background: transparent;color: white;border: none;">
<i class="discord icon"></i>
<div class="content">
<div class="title" style="text-transform: uppercase;">{$DISCORD_SERVER['members']} Users Online</div>
<div onclick="dslinkopen()" class="ui vertical animated button">
<div class="hidden content">
<div class="description" style="color: white;"><strong>{$CLICK_TO_JOIN}</strong>
</div>
</div>
<div class="visible content">
<div class="description" style="color: white;"><strong>{$DISCORD_SERVER['name']}</strong></div>
</div>
</div>
</div>
</div>
</div>
</div>
{else}
<div class="column" id="pcnavbar"></div>
{/if}
<div class="column" style="text-align: center;">
<div class="ui medium image">
<img src="{$LOGO_IMAGE}" style="cursor:pointer; display: unset; max-width: 100%; height: auto;">
</div>
</div>
{if $MINECRAFTVIEW eq '1'}
<div class="column" style="text-align: center; margin-top: 2rem;" id="pcnavbar">
<div class="ui steps">
<div class="step" style="background: transparent; color: white;">
<i class="circle play icon"></i>
<div class="content" class="ui text shape">
<div class="title" id="minecraftplayers" style="text-transform: uppercase;margin-top:1px;">Loading..</div>
<div onclick="copy('#ip')" class="ui vertical animated button">
<div class="hidden content">
<div class="description" style="color: white;"><strong>{$CLICK_TO_COPY}</strong>
</div>
</div>
<div class="visible content">
<div class="description" style="color: white;"><strong>{$MINECRAFTDOMAIN}</strong></div>
</div>
</div>
</div>
</div>
</div>
</div>
{/if}
</div>
</div>
16 changes: 10 additions & 6 deletions upload/custom/templates/Aurora/aurora/theme.tpl
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
<style>
@import 'http://dtoolz.cxstudios.org/custom/templates/Aurora/css/fomantic.css';
/* Custom theme variables */
@site: material;
@button: raised;
@menu: chubby;
.ui.store.navbar.button {
color: white;
background: {$BTNCOLOUR};
font-weight: heavy;
transition: all 0.2s ease-in-out;
}
.ui.store.navbar.button:hover {
color: rgba(255, 255, 255, 1);
box-shadow: 0 5px 15px rgba(145, 92, 182, .4);
}
</style>
8 changes: 8 additions & 0 deletions upload/custom/templates/Aurora/css/aurora.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@
}
}

.ui.vertical.animated.button {
background: none;
border: none;
color: #fff;
cursor: pointer;
padding: 0;
text-align: center;
}
/*
* [ GHOST MODULE ]
*/
Expand Down
2 changes: 2 additions & 0 deletions upload/custom/templates/Aurora/footer.tpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
</div>
</div>



{if $FOOTERSTYLE eq '0'}
<div class="ui inverted vertical footer segment" id="footer">
<div class="ui container">
Expand Down
27 changes: 13 additions & 14 deletions upload/custom/templates/Aurora/header.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,23 @@ value="{$PAGE_KEYWORDS}"}{else}{assign var="PAGEKEYWORDS" value=" "}{/if}
</style>
{/if}
<style>
{if $NEW_SCROLLBAR eq '0' }
::-webkit-scrollbar {
width: 7px;
}
::-webkit-scrollbar {
width: 6px;
background-color: #f3f6fa;
}
::-webkit-scrollbar-thumb {
background: #555;
border-radius: 5px;
}
::-webkit-scrollbar-thumb {
background: #d4d4d5;
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
background: #333;
}
::-webkit-scrollbar-thumb:hover {
background: #c3c4c6;
}
::-webkit-scrollbar-track {
background: #ddd;
}
{/if}
</style>
{include file='aurora/theme.tpl'}

Expand Down
4 changes: 4 additions & 0 deletions upload/custom/templates/Aurora/navbar.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@

<div class="pusher">
<div id="wrapper">
{if $NAVBARSTYLE eq '2'}
{include file='aurora/modern_navbar.tpl'}
{else}
<div class="ui secondary {if $NAVBARTYPE eq '0'} pointing {/if} menu" style="height: 55px;" id="navbar">
<div class="ui container">
{if $NAVBARSTYLE eq '0'}{if isset($LOGO_IMAGE)}<img class="ui small image" style="max-width:80px;"src="{$LOGO_IMAGE}" id="pcnavbar"> {else} <h2>{$SITE_NAME} </h2> {/if}{/if}
Expand Down Expand Up @@ -174,6 +177,7 @@
{/if}
</div>
{/if}
{/if}
<div class="ui container">
{if $WELCOMESECTION eq '0' && !isset($LOGGED_IN_USER)}
<div class="ui clearing segment">
Expand Down
8 changes: 4 additions & 4 deletions upload/custom/templates/Aurora/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public function __construct($cache, $smarty, $language, $user, $pages) {
$template = [
'name' => 'Aurora',
'version' => '0.6',
'nl_version' => '2.1.1',
'author' => '<a href="https://cxstudios.xyz/" target="_blank">BijjuXD</a>',
'nl_version' => '2.1.2',
'author' => '<a href="https://cxstudios.org/" target="_blank">BijjuXD</a>',
];

$template['path'] = (defined('CONFIG_PATH') ? CONFIG_PATH : '') . '/custom/templates/' . $template['name'] . '/';
Expand Down Expand Up @@ -76,7 +76,7 @@ public function __construct($cache, $smarty, $language, $user, $pages) {
$smarty->assign([
'CLICK_TO_JOIN' => AuroraUtil::getLanguage('frontend', 'click_to_join'),
'MEMBERS_ONLINE' => AuroraUtil::getLanguage('frontend', 'members_online'),
'CLICK_TO_COPY' => AuroraUtil::getLanguage('general', 'click_to_copy_tooltip'),
'CLICK_TO_COPY' => AuroraUtil::getLanguage('frontend', 'click_to_copy'),
'PLAYERS_ONLINE' => AuroraUtil::getLanguage('frontend', 'players_online'),
'AURORA_VER' => AuroraUtil::getLanguage('frontend', 'template_version', [
'version' => '' . $template["version"] . ''
Expand Down Expand Up @@ -161,7 +161,7 @@ public function onPageLoad() {
$this->_template['path'] . 'js/core/core.js?v=203' => [],
$this->_template['path'] . 'js/core/user.js' => [],
$this->_template['path'] . 'js/core/pages.js?v=203' => [],
$this->_template['path'] . 'js/portal/firefly.js' => [],

]);

foreach ($this->_pages->getAjaxScripts() as $script) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php

/**
/*
* Contains misc utility methods.
*
* Special thanks to Vertisan
*/
/*
* Aurora Template
* @version 0.6
* @version 0.7
* @license MIT
*/

Expand Down Expand Up @@ -96,11 +98,7 @@ public static function initialise()

$settings_data = [
'darkMode' => 0,
'colorsStyle' => 0,
'primaryColor' => '#dc3545',
'navbarColor' => '#000000',
'footerColor' => '#000000',
'outlineColor' => '#000000',
'btnColour' => '#dc3545',
'navbarType' => 0,
'navbarStyle' => 0,
'discordView' => 1,
Expand Down
Loading

0 comments on commit d3601f8

Please sign in to comment.