Commit ff93cfc8 authored by phani00's avatar phani00

initial commit

parents
Copyright (c) 2010-2018 the Hubzilla Community
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
# phanidark theme
developing a theme from scratch, NOT forked from boet or redbasic.
dark theme, ability to display stream content in two, perhaps more columns.
to install it go to the hub's webroot and issue the following command:
<code>util/add_theme_repo https://github.com/phani00/phanidark.git plusbasic</code>
Copyright (c) 2010-2018 the Hubzilla Community
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
# phanidark theme
developing a theme from scratch, NOT forked from boet or redbasic.
dark theme, ability to display stream content in two, perhaps more columns.
to install it go to the hub's webroot and issue the following command:
<code>util/add_theme_repo https://github.com/phani00/phanidark.git plusbasic</code>
.wall-item-content.conv-list-mode {
max-width: 280px;
height:200px;
min-height: 200px;
overflow: hidden;
}
.thread-wrapper.toplevel_item.conv-list-mode {
width: 300px;
height: 300px;
float: left;
margin-left: 5px;
margin-bottom: 35px;
}
/*
section {
left: 0px;
width: 800px;
margin-left: auto;
margin-right: auto;
}
body {background-color: #d00 !important;}
.page-content-wrapper {background: #fff;
color: #000;
border-radius: 20px;
box-shadow: 5px 5px 5px #111;
}
h3.page-title {
padding-top: 30px;
color: #033}
.page-body {padding: 40px;}
.page-body strong {color: #033;}
.nav-links {margin-top: 5px;}
*/
\ No newline at end of file
@media screen and (min-width: 767px) {
nav.navbar {
padding-top: 1px;
padding-bottom: 1px
}
nav .badge {
top: 0px;
left: -0.25rem;
}
.contextual-help-content-open {
top: 2.5rem;
}
aside {
padding-top: 3.5rem;
}
section {
padding-top: 3.5rem;
}
#jGrowl.top-right {
top: 3.5rem;
right: 15px;
}
}
.rotleft1 {
-webkit-transform: rotate(-1deg);
-moz-transform: rotate(-1deg);
-ms-transform: rotate(-1deg);
-o-transform: rotate(-1deg);
}
.rotleft2 {
-webkit-transform: rotate(-2deg);
-moz-transform: rotate(-2deg);
-ms-transform: rotate(-2deg);
-o-transform: rotate(-2deg);
}
.rotleft3 {
-webkit-transform: rotate(-3deg);
-moz-transform: rotate(-3deg);
-ms-transform: rotate(-3deg);
-o-transform: rotate(-3deg);
}
.rotleft4 {
-webkit-transform: rotate(-4deg);
-moz-transform: rotate(-4deg);
-ms-transform: rotate(-4deg);
-o-transform: rotate(-4deg);
}
.rotright1 {
-webkit-transform: rotate(1deg);
-moz-transform: rotate(1deg);
-ms-transform: rotate(1deg);
-o-transform: rotate(1deg);
}
.rotright2 {
-webkit-transform: rotate(2deg);
-moz-transform: rotate(2deg);
-ms-transform: rotate(2deg);
-o-transform: rotate(2deg);
}
.rotright3 {
-webkit-transform: rotate(3deg);
-moz-transform: rotate(3deg);
-ms-transform: rotate(3deg);
-o-transform: rotate(3deg);
}
.rotright4 {
-webkit-transform: rotate(4deg);
-moz-transform: rotate(4deg);
-ms-transform: rotate(4deg);
-o-transform: rotate(4deg);
}
This diff is collapsed.
/**
* phototheme theme specific JavaScript
*/
$(document).ready(function() {
// CSS3 calc() fallback (for unsupported browsers)
$('body').append('<div id="css3-calc" style="width: 10px; width: calc(10px + 10px); display: none;"></div>');
if( $('#css3-calc').width() == 10) {
$(window).resize(function() {
if($(window).width() < 992) {
$('main').css('width', $(window).width() + $('aside').outerWidth() );
} else {
$('main').css('width', '100%' );
}
});
}
$('#css3-calc').remove(); // Remove the test element
if($(window).width() >= 992) {
$('#left_aside_wrapper, #right_aside_wrapper').stick_in_parent({
offset_top: parseInt($('aside').css('padding-top')),
parent: 'main',
spacer: '.aside_spacer'
});
}
$('#expand-aside').on('click', toggleAside);
$('section').on('click', function() {
if($('main').hasClass('region_1-on')){
toggleAside();
}
});
var left_aside_height = $('#left_aside_wrapper').height();
$('#left_aside_wrapper').on('click', function() {
if(left_aside_height != $('#left_aside_wrapper').height()) {
$(document.body).trigger("sticky_kit:recalc");
left_aside_height = $('#left_aside_wrapper').height();
}
});
var right_aside_height = $('#right_aside_wrapper').height();
$('#right_aside_wrapper').on('click', function() {
if(right_aside_height != $('#right_aside_wrapper').height()) {
$(document.body).trigger("sticky_kit:recalc");
right_aside_height = $('#right_aside_wrapper').height();
}
});
$('.usermenu').click(function() {
if($('#navbar-collapse-1, #navbar-collapse-2').hasClass('show')){
$('#navbar-collapse-1, #navbar-collapse-2').removeClass('show');
}
});
$('#menu-btn').click(function() {
if($('#navbar-collapse-1').hasClass('show')){
$('#navbar-collapse-1').removeClass('show');
}
});
$('.notifications-btn').click(function(e) {
e.preventDefault();
e.stopPropagation();
if($('#navbar-collapse-2').hasClass('show')){
$('#navbar-collapse-2').removeClass('show');
}
});
$("input[data-role=cat-tagsinput]").tagsinput({
tagClass: 'badge badge-pill badge-warning text-dark'
});
$('a.disabled').click(function(e) {
e.preventDefault();
e.stopPropagation();
});
var doctitle = document.title;
function checkNotify() {
var notifyUpdateElem = document.getElementById('notify-update');
if(notifyUpdateElem !== null) {
if(notifyUpdateElem.innerHTML !== "")
document.title = "(" + notifyUpdateElem.innerHTML + ") " + doctitle;
else
document.title = doctitle;
}
}
setInterval(function () {checkNotify();}, 10 * 1000);
});
function makeFullScreen(full) {
if(typeof full=='undefined' || full == true) {
$('main').addClass('fullscreen');
$('header, nav, aside, #fullscreen-btn').attr('style','display:none !important');
$('#inline-btn').show();
}
else {
$('main').removeClass('fullscreen');
$('header, nav, aside, #fullscreen-btn').show();
$('#inline-btn').hide();
$(document.body).trigger("sticky_kit:recalc");
}
}
function toggleAside() {
$('#expand-aside-icon').toggleClass('fa-arrow-circle-right').toggleClass('fa-arrow-circle-left');
if($('main').hasClass('region_1-on')){
$('html, body').css('overflow-x', '');
$('main').removeClass('region_1-on')
$('#overlay').remove();
$('#left_aside_wrapper').trigger("sticky_kit:detach");
}
else {
$('html, body').css('overflow-x', 'hidden');
$('main').addClass('region_1-on')
$('<div id="overlay"></div>').appendTo('section');
$('#left_aside_wrapper').stick_in_parent({
offset_top: parseInt($('aside').css('padding-top')),
parent: 'main',
spacer: '.aside_spacer'
});
}
}
[region=aside]
[widget=activity_order][/widget]
[widget=activity_filter][/widget]
[widget=savedsearch][/widget]
[widget=suggestions][/widget]
[widget=notes][/widget]
[/region]
[region=content]
[widget=affinity][/widget]
$content
[/region]
[region=right_aside]
[widget=notifications][/widget]
[widget=newmember][/widget]
[/region]
<?php
namespace Zotlabs\Theme;
class PhanidarkConfig {
function get_schemas() {
$files = glob('view/theme/phanidark/schema/*.php');
$scheme_choices = [];
if($files) {
if(in_array('view/theme/phanidark/schema/default.php', $files)) {
$scheme_choices['---'] = t('Default');
$scheme_choices['focus'] = t('Focus (Hubzilla default)');
}
else {
$scheme_choices['---'] = t('Focus (Hubzilla default)');
}
foreach($files as $file) {
$f = basename($file, ".php");
if($f != 'default') {
$scheme_name = $f;
$scheme_choices[$f] = $scheme_name;
}
}
}
return $scheme_choices;
}
function get() {
if(! local_channel()) {
return;
}
$arr = array();
$arr['narrow_navbar'] = get_pconfig(local_channel(),'phanidark', 'narrow_navbar' );
$arr['nav_bg'] = get_pconfig(local_channel(),'phanidark', 'nav_bg' );
$arr['nav_icon_colour'] = get_pconfig(local_channel(),'phanidark', 'nav_icon_colour' );
$arr['nav_active_icon_colour'] = get_pconfig(local_channel(),'phanidark', 'nav_active_icon_colour' );
$arr['link_colour'] = get_pconfig(local_channel(),'phanidark', 'link_colour' );
$arr['banner_colour'] = get_pconfig(local_channel(),'phanidark', 'banner_colour' );
$arr['bgcolour'] = get_pconfig(local_channel(),'phanidark', 'background_colour' );
$arr['background_image'] = get_pconfig(local_channel(),'phanidark', 'background_image' );
$arr['item_colour'] = get_pconfig(local_channel(),'phanidark', 'item_colour' );
$arr['comment_item_colour'] = get_pconfig(local_channel(),'phanidark', 'comment_item_colour' );
$arr['font_size'] = get_pconfig(local_channel(),'phanidark', 'font_size' );
$arr['font_colour'] = get_pconfig(local_channel(),'phanidark', 'font_colour' );
$arr['radius'] = get_pconfig(local_channel(),'phanidark', 'radius' );
$arr['shadow'] = get_pconfig(local_channel(),'phanidark', 'photo_shadow' );
$arr['converse_width']=get_pconfig(local_channel(),"phanidark","converse_width");
$arr['top_photo']=get_pconfig(local_channel(),"phanidark","top_photo");
$arr['reply_photo']=get_pconfig(local_channel(),"phanidark","reply_photo");
$arr['advanced_theming'] = get_pconfig(local_channel(), 'phanidark', 'advanced_theming');
return $this->form($arr);
}
function post() {
if(!local_channel()) {
return;
}
if (isset($_POST['phanidark-settings-submit'])) {
set_pconfig(local_channel(), 'phanidark', 'narrow_navbar', $_POST['phanidark_narrow_navbar']);
set_pconfig(local_channel(), 'phanidark', 'nav_bg', $_POST['phanidark_nav_bg']);
set_pconfig(local_channel(), 'phanidark', 'nav_icon_colour', $_POST['phanidark_nav_icon_colour']);
set_pconfig(local_channel(), 'phanidark', 'nav_active_icon_colour', $_POST['phanidark_nav_active_icon_colour']);
set_pconfig(local_channel(), 'phanidark', 'link_colour', $_POST['phanidark_link_colour']);
set_pconfig(local_channel(), 'phanidark', 'background_colour', $_POST['phanidark_background_colour']);
set_pconfig(local_channel(), 'phanidark', 'banner_colour', $_POST['phanidark_banner_colour']);
set_pconfig(local_channel(), 'phanidark', 'background_image', $_POST['phanidark_background_image']);
set_pconfig(local_channel(), 'phanidark', 'item_colour', $_POST['phanidark_item_colour']);
set_pconfig(local_channel(), 'phanidark', 'comment_item_colour', $_POST['phanidark_comment_item_colour']);
set_pconfig(local_channel(), 'phanidark', 'font_size', $_POST['phanidark_font_size']);
set_pconfig(local_channel(), 'phanidark', 'font_colour', $_POST['phanidark_font_colour']);
set_pconfig(local_channel(), 'phanidark', 'radius', $_POST['phanidark_radius']);
set_pconfig(local_channel(), 'phanidark', 'photo_shadow', $_POST['phanidark_shadow']);
set_pconfig(local_channel(), 'phanidark', 'converse_width', $_POST['phanidark_converse_width']);
set_pconfig(local_channel(), 'phanidark', 'top_photo', $_POST['phanidark_top_photo']);
set_pconfig(local_channel(), 'phanidark', 'reply_photo', $_POST['phanidark_reply_photo']);
set_pconfig(local_channel(), 'phanidark', 'advanced_theming', $_POST['phanidark_advanced_theming']);
}
}
function form($arr) {
if(get_pconfig(local_channel(), 'phanidark', 'advanced_theming'))
$expert = 1;
$o .= replace_macros(get_markup_template('theme_settings.tpl'), array(
'$submit' => t('Submit'),
'$baseurl' => z_root(),
'$theme' => \App::$channel['channel_theme'],
'$expert' => $expert,
'$title' => t("Theme settings"),
'$narrow_navbar' => array('phanidark_narrow_navbar',t('Narrow navbar'),$arr['narrow_navbar'], '', array(t('No'),t('Yes'))),
'$nav_bg' => array('phanidark_nav_bg', t('Navigation bar background color'), $arr['nav_bg']),
'$nav_icon_colour' => array('phanidark_nav_icon_colour', t('Navigation bar icon color '), $arr['nav_icon_colour']),
'$nav_active_icon_colour' => array('phanidark_nav_active_icon_colour', t('Navigation bar active icon color '), $arr['nav_active_icon_colour']),
'$link_colour' => array('phanidark_link_colour', t('Link color'), $arr['link_colour'], '', $link_colours),
'$banner_colour' => array('phanidark_banner_colour', t('Set font-color for banner'), $arr['banner_colour']),
'$bgcolour' => array('phanidark_background_colour', t('Set the background color'), $arr['bgcolour']),
'$background_image' => array('phanidark_background_image', t('Set the background image'), $arr['background_image']),
'$item_colour' => array('phanidark_item_colour', t('Set the background color of items'), $arr['item_colour']),
'$comment_item_colour' => array('phanidark_comment_item_colour', t('Set the background color of comments'), $arr['comment_item_colour']),
'$font_size' => array('phanidark_font_size', t('Set font-size for the entire application'), $arr['font_size'], t('Examples: 1rem, 100%, 16px')),
'$font_colour' => array('phanidark_font_colour', t('Set font-color for posts and comments'), $arr['font_colour']),
'$radius' => array('phanidark_radius', t('Set radius of corners'), $arr['radius'], t('Example: 4px')),
'$shadow' => array('phanidark_shadow', t('Set shadow depth of photos'), $arr['shadow']),
'$converse_width' => array('phanidark_converse_width',t('Set maximum width of content region in pixel'),$arr['converse_width'], t('Leave empty for default width')),
'$top_photo' => array('phanidark_top_photo', t('Set size of conversation author photo'), $arr['top_photo']),
'$reply_photo' => array('phanidark_reply_photo', t('Set size of followup author photos'), $arr['reply_photo']),
'$advanced_theming' => ['phanidark_advanced_theming', t('Show advanced settings'), $arr['advanced_theming'], '', [t('No'), t('Yes')]]
));
return $o;
}
}
<!DOCTYPE html >
<html prefix="og: http://ogp.me/ns#">
<head>
<title><?php if(x($page,'title')) echo $page['title'] ?></title>
<script>var baseurl="<?php echo z_root() ?>";</script>
<?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?>
</head>
<body <?php if($page['direction']) echo 'dir="rtl"' ?> >
<?php if(x($page,'banner')) echo $page['banner']; ?>
<header><?php if(x($page,'header')) echo $page['header']; ?></header>
<nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-dark"><?php if(x($page,'nav')) echo $page['nav']; ?></nav>
<main>
<div class="content">
<div class="columns">
<aside id="region_1">
<div class="aside_spacer">
<div id="left_aside_wrapper">
<?php //if(x($page,'right_aside')) echo $page['right_aside']; ?>
<?php if(x($page,'aside')) echo $page['aside']; ?>
</div>
</div>
</aside>
<section id="region_2"><?php if(x($page,'content')) echo $page['content']; ?>
<div id="page-footer"></div>
<div id="pause"></div>
</section>
<aside id="region_3" class="d-none d-xl-table-cell"><div class="aside_spacer"><div id="right_aside_wrapper"><?php if(x($page,'right_aside')) echo $page['right_aside']; ?></div></div></aside>
</div>
</div>
</main>
<footer><?php if(x($page,'footer')) echo $page['footer']; ?></footer>
</body>
</html>
<?php
if(! App::$install) {
// Get the UID of the channel owner
$uid = get_theme_uid();
if($uid) {
load_pconfig($uid,'phanidark');
}
// Load the owners pconfig
$nav_bg = get_pconfig($uid, 'phanidark', 'nav_bg');
$nav_icon_colour = get_pconfig($uid, 'phanidark', 'nav_icon_colour');
$nav_active_icon_colour = get_pconfig($uid, 'phanidark', 'nav_active_icon_colour');
$banner_colour = get_pconfig($uid,'phanidark','banner_colour');
$narrow_navbar = get_pconfig($uid,'phanidark','narrow_navbar');
$link_colour = get_pconfig($uid, 'phanidark', 'link_colour');
$schema = get_pconfig($uid,'phanidark','schema');
$bgcolour = get_pconfig($uid, 'phanidark', 'background_colour');
$background_image = get_pconfig($uid, 'phanidark', 'background_image');
$item_colour = get_pconfig($uid, 'phanidark', 'item_colour');
$comment_item_colour = get_pconfig($uid, 'phanidark', 'comment_item_colour');
$font_size = get_pconfig($uid, 'phanidark', 'font_size');
$font_colour = get_pconfig($uid, 'phanidark', 'font_colour');
$radius = get_pconfig($uid, 'phanidark', 'radius');
$shadow = get_pconfig($uid,'phanidark','photo_shadow');
$converse_width=get_pconfig($uid,'phanidark','converse_width');
$top_photo=get_pconfig($uid,'phanidark','top_photo');
$reply_photo=get_pconfig($uid,'phanidark','reply_photo');
}
// Now load the scheme. If a value is changed above, we'll keep the settings
// If not, we'll keep those defined by the schema
// Setting $schema to '' wasn't working for some reason, so we'll check it's
// not --- like the mobile theme does instead.
// Allow layouts to over-ride the schema
if($_REQUEST['schema']) {
$schema = $_REQUEST['schema'];
}
if (($schema) && ($schema != '---')) {
// Check it exists, because this setting gets distributed to clones
if(file_exists('view/theme/phanidark/schema/' . $schema . '.php')) {
$schemefile = 'view/theme/phanidark/schema/' . $schema . '.php';
require_once ($schemefile);
}
if(file_exists('view/theme/phanidark/schema/' . $schema . '.css')) {
$schemecss = file_get_contents('view/theme/phanidark/schema/' . $schema . '.css');
}
}
// Allow admins to set a default schema for the hub.
// default.php and default.css MUST be symlinks to existing schema files in view/theme/phanidark/schema
if ((!$schema) || ($schema == '---')) {
if(file_exists('view/theme/phanidark/schema/default.php')) {
$schemefile = 'view/theme/phanidark/schema/default.php';
require_once ($schemefile);
}
if(file_exists('view/theme/phanidark/schema/default.css')) {
$schemecss = file_get_contents('view/theme/phanidark/schema/default.css');
}
}
//Set some defaults - we have to do this after pulling owner settings, and we have to check for each setting
//individually. If we don't, we'll have problems if a user has set one, but not all options.
if (! $nav_bg)
$nav_bg = '#343a40';
if (! $nav_icon_colour)
$nav_icon_colour = 'rgba(255, 255, 255, 0.5)';
if (! $nav_active_icon_colour)
$nav_active_icon_colour = 'rgba(255, 255, 255, 0.75)';
if (! $link_colour)
$link_colour = '#007bff';
if (! $banner_colour)
$banner_colour = '#fff';
if (! $bgcolour)
$bgcolour = 'rgb(254,254,254)';
if (! $background_image)
$background_image ='';
if (! $item_colour)
$item_colour = 'rgb(238,238,238)';
if (! $comment_item_colour)
$comment_item_colour = 'rgb(255,255,255)';
if (! $item_opacity)
$item_opacity = '1';
if (! $font_size)
$font_size = '0.875rem';
if (! $font_colour)
$font_colour = '#4d4d4d';
if (! $radius)
$radius = '0.25rem';
if (! $shadow)
$shadow = '0';
if (! $converse_width)
$converse_width = '790';
if(! $top_photo)
$top_photo = '2.3rem';
if(! $reply_photo)
$reply_photo = '2.3rem';
// Apply the settings
if(file_exists('view/theme/phanidark/css/style.css')) {
$x = file_get_contents('view/theme/phanidark/css/style.css');
if($narrow_navbar && file_exists('view/theme/phanidark/css/narrow_navbar.css')) {
$x .= file_get_contents('view/theme/phanidark/css/narrow_navbar.css');
}
if($schemecss) {
$x .= $schemecss;
}
$aside_width = 288;
// left aside and right aside are 285px + converse width
$main_width = (($aside_width * 2) + intval($converse_width));
// prevent main_width smaller than 768px
$main_width = (($main_width < 768) ? 768 : $main_width);
$options = array (
'$nav_bg' => $nav_bg,
'$nav_icon_colour' => $nav_icon_colour,
'$nav_active_icon_colour' => $nav_active_icon_colour,
'$link_colour' => $link_colour,
'$banner_colour' => $banner_colour,
'$bgcolour' => $bgcolour,
'$background_image' => $background_image,
'$item_colour' => $item_colour,
'$comment_item_colour' => $comment_item_colour,
'$font_size' => $font_size,
'$font_colour' => $font_colour,
'$radius' => $radius,
'$shadow' => $shadow,
'$converse_width' => $converse_width,
'$nav_float_min_opacity' => $nav_float_min_opacity,
'$nav_percent_min_opacity' => $nav_percent_min_opacity,
'$top_photo' => $top_photo,
'$reply_photo' => $reply_photo,
'$pmenu_top' => $pmenu_top,
'$pmenu_reply' => $pmenu_reply,
'$main_width' => $main_width,
'$aside_width' => $aside_width
);
echo str_replace(array_keys($options), array_values($options), $x);
}
// Set the schema to the default schema in derived themes. See the documentation for creating derived themes how to override this.
if(local_channel() && App::$channel && App::$channel['channel_theme'] != 'phanidark')
set_pconfig(local_channel(), 'phanidark', 'schema', '---');
<?php
/**
* * Name: phanidark
* * Description: Hubzilla dark theme, incl. multicolumn display of stream.
* * Version: 0.1
* * MinVersion: 0.1.1
* * MaxVersion: 6.0
* * Author: phani
* * Maintainer: phani
*/
function phanidark_init(&$a) {
}
<?php
head_add_css('/library/fork-awesome/css/fork-awesome.min.css');
head_add_css('/vendor/twbs/bootstrap/dist/css/bootstrap.min.css');
head_add_css('/library/bootstrap-tagsinput/bootstrap-tagsinput.css');
head_add_css('/view/css/bootstrap-red.css');
head_add_css('/library/datetimepicker/jquery.datetimepicker.css');
head_add_css('/library/bootstrap-colorpicker/dist/css/bootstrap-colorpicker.min.css');
require_once('view/php/theme_init.php');
head_add_js('/vendor/twbs/bootstrap/dist/js/bootstrap.bundle.min.js');
head_add_js('/library/bootbox/bootbox.min.js');
head_add_js('/library/bootstrap-tagsinput/bootstrap-tagsinput.js');
head_add_js('/library/datetimepicker/jquery.datetimepicker.js');
head_add_js('/library/bootstrap-colorpicker/dist/js/bootstrap-colorpicker.js');
.generic-content-wrapper {
background-color: transparent;
}
textarea, input, select
{
color: #BBB !important;
background: #333 !important;