add left right themes
|
@ -2,4 +2,5 @@
|
|||
|
||||
- ussrbasic
|
||||
- ussrbasicpub
|
||||
- ussrbasictwopanel
|
||||
- ussrbasicleft
|
||||
- ussrbasicright
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 128 KiB After Width: | Height: | Size: 128 KiB |
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* ussrbasicpub theme specific JavaScript
|
||||
* ussrbasicleft theme specific JavaScript
|
||||
*/
|
||||
|
||||
$(document).ready(function() {
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=admin][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=appcategories][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,8 @@
|
|||
[region=aside]
|
||||
[widget=appstore][/widget]
|
||||
[widget=appcategories][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,10 @@
|
|||
[region=aside]
|
||||
[widget=archive][var=articles]1[/var][/widget]
|
||||
[widget=categories][var=articles]1[/var][/widget]
|
||||
[widget=tasklist][/widget]
|
||||
[widget=notes][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=design_tools][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=fullprofile][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,9 @@
|
|||
[region=aside]
|
||||
[widget=categories][var=cards]1[/var][/widget]
|
||||
[widget=tasklist][/widget]
|
||||
[widget=notes][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=cdav][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,13 @@
|
|||
[region=banner]
|
||||
[widget=cover_photo][/widget]
|
||||
[/region]
|
||||
[region=aside]
|
||||
[widget=fullprofile][/widget]
|
||||
[widget=tagcloud_wall][var=limit]50[/var][/widget]
|
||||
[widget=categories][/widget]
|
||||
[widget=archive][var=wall]1[/var][/widget]
|
||||
[widget=common_friends][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=vcard][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,11 @@
|
|||
[region=aside]
|
||||
[widget=vcard][/widget]
|
||||
[widget=chatroom_list][/widget]
|
||||
[widget=bookmarkedchats][/widget]
|
||||
[widget=suggestedchats][/widget]
|
||||
[widget=chatroom_members][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=vcard][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=fullprofile][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=profile][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,10 @@
|
|||
[region=aside]
|
||||
[widget=follow][/widget]
|
||||
[widget=collections][var=mode][connections[/arg][/widget]
|
||||
[widget=suggestions][/widget]
|
||||
[widget=findpeople][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,10 @@
|
|||
[region=aside]
|
||||
[widget=vcard][/widget]
|
||||
[widget=collections][var=mode]abook[/var][/widget]
|
||||
[widget=suggestions][/widget]
|
||||
[widget=findpeople][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=settings_menu][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,10 @@
|
|||
[region=aside]
|
||||
[widget=findpeople][/widget]
|
||||
[widget=dirsort][/widget]
|
||||
[widget=dirtags][/widget]
|
||||
[widget=suggestions][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=vcard][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=design_tools][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=design_tools][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=design_tools][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=fullprofile][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=collections][var=mode]groups[/var][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=helpindex][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=hq_controls][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=fullprofile][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=design_tools][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=settings_menu][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,8 @@
|
|||
[region=aside]
|
||||
[widget=mailmenu][/widget]
|
||||
[widget=conversations][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=design_tools][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=mailmenu][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,8 @@
|
|||
[region=aside]
|
||||
[widget=design_tools][/widget]
|
||||
[widget=menu_preview][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,6 @@
|
|||
[region=aside]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,17 @@
|
|||
[region=aside]
|
||||
[widget=notifications][/widget]
|
||||
[widget=activity_order][/widget]
|
||||
[widget=activity_filter][/widget]
|
||||
[widget=savedsearch][/widget]
|
||||
[widget=suggestions][/widget]
|
||||
[widget=notes][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
|
||||
[region=content]
|
||||
[widget=affinity][/widget]
|
||||
$content
|
||||
[/region]
|
||||
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,8 @@
|
|||
[region=aside]
|
||||
[widget=vcard][/widget]
|
||||
[widget=photo_albums][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=fullprofile][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=fullprofile][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=fullprofile][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=fullprofile][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=pubtagcloud][var=trending]8[/var][var=limit]20[/var][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=vcard][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,11 @@
|
|||
[region=aside]
|
||||
[widget=pubsites][/widget]
|
||||
[widget=vcard][/widget]
|
||||
[widget=rating][/widget]
|
||||
[widget=suggestions][/widget]
|
||||
[widget=findpeople][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,6 @@
|
|||
[region=aside]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=settings_menu][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,6 @@
|
|||
[region=aside]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=settings_menu][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,8 @@
|
|||
[region=aside]
|
||||
[widget=follow][/widget]
|
||||
[widget=findpeople][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=fullprofile][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,6 @@
|
|||
[region=aside]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,7 @@
|
|||
[region=aside]
|
||||
[widget=fullprofile][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,8 @@
|
|||
[region=aside]
|
||||
[widget=design_tools][/widget]
|
||||
[widget=website_portation_tools][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,8 @@
|
|||
[region=aside]
|
||||
[widget=vcard][/widget]
|
||||
[widget=wiki_pages][/widget]
|
||||
[widget=notifications][/widget]
|
||||
[widget=newmember][/widget]
|
||||
[/region]
|
||||
[region=right_aside]
|
||||
[/region]
|
|
@ -0,0 +1,128 @@
|
|||
<?php
|
||||
|
||||
namespace Zotlabs\Theme;
|
||||
|
||||
class UssrbasicleftConfig {
|
||||
|
||||
function get_schemas() {
|
||||
$files = glob('view/theme/ussrbasicleft/schema/*.php');
|
||||
|
||||
$scheme_choices = [];
|
||||
|
||||
if($files) {
|
||||
|
||||
if(in_array('view/theme/ussrbasicleft/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(),'ussrbasicleft', 'narrow_navbar' );
|
||||
$arr['nav_bg'] = get_pconfig(local_channel(),'ussrbasicleft', 'nav_bg' );
|
||||
$arr['nav_icon_colour'] = get_pconfig(local_channel(),'ussrbasicleft', 'nav_icon_colour' );
|
||||
$arr['nav_active_icon_colour'] = get_pconfig(local_channel(),'ussrbasicleft', 'nav_active_icon_colour' );
|
||||
$arr['link_colour'] = get_pconfig(local_channel(),'ussrbasicleft', 'link_colour' );
|
||||
$arr['banner_colour'] = get_pconfig(local_channel(),'ussrbasicleft', 'banner_colour' );
|
||||
$arr['bgcolour'] = get_pconfig(local_channel(),'ussrbasicleft', 'background_colour' );
|
||||
$arr['background_image'] = get_pconfig(local_channel(),'ussrbasicleft', 'background_image' );
|
||||
$arr['item_colour'] = get_pconfig(local_channel(),'ussrbasicleft', 'item_colour' );
|
||||
$arr['comment_item_colour'] = get_pconfig(local_channel(),'ussrbasicleft', 'comment_item_colour' );
|
||||
$arr['font_size'] = get_pconfig(local_channel(),'ussrbasicleft', 'font_size' );
|
||||
$arr['font_colour'] = get_pconfig(local_channel(),'ussrbasicleft', 'font_colour' );
|
||||
$arr['radius'] = get_pconfig(local_channel(),'ussrbasicleft', 'radius' );
|
||||
$arr['shadow'] = get_pconfig(local_channel(),'ussrbasicleft', 'photo_shadow' );
|
||||
$arr['converse_width']=get_pconfig(local_channel(),"ussrbasicleft","converse_width");
|
||||
$arr['top_photo']=get_pconfig(local_channel(),"ussrbasicleft","top_photo");
|
||||
$arr['reply_photo']=get_pconfig(local_channel(),"ussrbasicleft","reply_photo");
|
||||
$arr['advanced_theming'] = get_pconfig(local_channel(), 'ussrbasicleft', 'advanced_theming');
|
||||
return $this->form($arr);
|
||||
}
|
||||
|
||||
function post() {
|
||||
if(!local_channel()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (isset($_POST['ussrbasicleft-settings-submit'])) {
|
||||
set_pconfig(local_channel(), 'ussrbasicleft', 'narrow_navbar', $_POST['ussrbasicleft_narrow_navbar']);
|
||||
set_pconfig(local_channel(), 'ussrbasicleft', 'nav_bg', $_POST['ussrbasicleft_nav_bg']);
|
||||
set_pconfig(local_channel(), 'ussrbasicleft', 'nav_icon_colour', $_POST['ussrbasicleft_nav_icon_colour']);
|
||||
set_pconfig(local_channel(), 'ussrbasicleft', 'nav_active_icon_colour', $_POST['ussrbasicleft_nav_active_icon_colour']);
|
||||
set_pconfig(local_channel(), 'ussrbasicleft', 'link_colour', $_POST['ussrbasicleft_link_colour']);
|
||||
set_pconfig(local_channel(), 'ussrbasicleft', 'background_colour', $_POST['ussrbasicleft_background_colour']);
|
||||
set_pconfig(local_channel(), 'ussrbasicleft', 'banner_colour', $_POST['ussrbasicleft_banner_colour']);
|
||||
set_pconfig(local_channel(), 'ussrbasicleft', 'background_image', $_POST['ussrbasicleft_background_image']);
|
||||
set_pconfig(local_channel(), 'ussrbasicleft', 'item_colour', $_POST['ussrbasicleft_item_colour']);
|
||||
set_pconfig(local_channel(), 'ussrbasicleft', 'comment_item_colour', $_POST['ussrbasicleft_comment_item_colour']);
|
||||
set_pconfig(local_channel(), 'ussrbasicleft', 'font_size', $_POST['ussrbasicleft_font_size']);
|
||||
set_pconfig(local_channel(), 'ussrbasicleft', 'font_colour', $_POST['ussrbasicleft_font_colour']);
|
||||
set_pconfig(local_channel(), 'ussrbasicleft', 'radius', $_POST['ussrbasicleft_radius']);
|
||||
set_pconfig(local_channel(), 'ussrbasicleft', 'photo_shadow', $_POST['ussrbasicleft_shadow']);
|
||||
set_pconfig(local_channel(), 'ussrbasicleft', 'converse_width', $_POST['ussrbasicleft_converse_width']);
|
||||
set_pconfig(local_channel(), 'ussrbasicleft', 'top_photo', $_POST['ussrbasicleft_top_photo']);
|
||||
set_pconfig(local_channel(), 'ussrbasicleft', 'reply_photo', $_POST['ussrbasicleft_reply_photo']);
|
||||
set_pconfig(local_channel(), 'ussrbasicleft', 'advanced_theming', $_POST['ussrbasicleft_advanced_theming']);
|
||||
}
|
||||
}
|
||||
|
||||
function form($arr) {
|
||||
|
||||
if(get_pconfig(local_channel(), 'ussrbasicleft', '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('ussrbasicleft_narrow_navbar',t('Narrow navbar'),$arr['narrow_navbar'], '', array(t('No'),t('Yes'))),
|
||||
'$nav_bg' => array('ussrbasicleft_nav_bg', t('Navigation bar background color'), $arr['nav_bg']),
|
||||
'$nav_icon_colour' => array('ussrbasicleft_nav_icon_colour', t('Navigation bar icon color '), $arr['nav_icon_colour']),
|
||||
'$nav_active_icon_colour' => array('ussrbasicleft_nav_active_icon_colour', t('Navigation bar active icon color '), $arr['nav_active_icon_colour']),
|
||||
'$link_colour' => array('ussrbasicleft_link_colour', t('Link color'), $arr['link_colour'], '', $link_colours),
|
||||
'$banner_colour' => array('ussrbasicleft_banner_colour', t('Set font-color for banner'), $arr['banner_colour']),
|
||||
'$bgcolour' => array('ussrbasicleft_background_colour', t('Set the background color'), $arr['bgcolour']),
|
||||
'$background_image' => array('ussrbasicleft_background_image', t('Set the background image'), $arr['background_image']),
|
||||
'$item_colour' => array('ussrbasicleft_item_colour', t('Set the background color of items'), $arr['item_colour']),
|
||||
'$comment_item_colour' => array('ussrbasicleft_comment_item_colour', t('Set the background color of comments'), $arr['comment_item_colour']),
|
||||
'$font_size' => array('ussrbasicleft_font_size', t('Set font-size for the entire application'), $arr['font_size'], t('Examples: 1rem, 100%, 16px')),
|
||||
'$font_colour' => array('ussrbasicleft_font_colour', t('Set font-color for posts and comments'), $arr['font_colour']),
|
||||
'$radius' => array('ussrbasicleft_radius', t('Set radius of corners'), $arr['radius'], t('Example: 4px')),
|
||||
'$shadow' => array('ussrbasicleft_shadow', t('Set shadow depth of photos'), $arr['shadow']),
|
||||
'$converse_width' => array('ussrbasicleft_converse_width',t('Set maximum width of content region in pixel'),$arr['converse_width'], t('Leave empty for default width')),
|
||||
'$top_photo' => array('ussrbasicleft_top_photo', t('Set size of conversation author photo'), $arr['top_photo']),
|
||||
'$reply_photo' => array('ussrbasicleft_reply_photo', t('Set size of followup author photos'), $arr['reply_photo']),
|
||||
'$advanced_theming' => ['ussrbasicleft_advanced_theming', t('Show advanced settings'), $arr['advanced_theming'], '', [t('No'), t('Yes')]]
|
||||
));
|
||||
|
||||
return $o;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,163 @@
|
|||
<?php
|
||||
|
||||
if(! App::$install) {
|
||||
|
||||
// Get the UID of the channel owner
|
||||
$uid = get_theme_uid();
|
||||
|
||||
if($uid) {
|
||||
load_pconfig($uid,'ussrbasicleft');
|
||||
}
|
||||
|
||||
// Load the owners pconfig
|
||||
$nav_bg = get_pconfig($uid, 'ussrbasicleft', 'nav_bg');
|
||||
$nav_icon_colour = get_pconfig($uid, 'ussrbasicleft', 'nav_icon_colour');
|
||||
$nav_active_icon_colour = get_pconfig($uid, 'ussrbasicleft', 'nav_active_icon_colour');
|
||||
$banner_colour = get_pconfig($uid,'ussrbasicleft','banner_colour');
|
||||
$narrow_navbar = get_pconfig($uid,'ussrbasicleft','narrow_navbar');
|
||||
$link_colour = get_pconfig($uid, 'ussrbasicleft', 'link_colour');
|
||||
$schema = get_pconfig($uid,'ussrbasicleft','schema');
|
||||
$bgcolour = get_pconfig($uid, 'ussrbasicleft', 'background_colour');
|
||||
$background_image = get_pconfig($uid, 'ussrbasicleft', 'background_image');
|
||||
$item_colour = get_pconfig($uid, 'ussrbasicleft', 'item_colour');
|
||||
$comment_item_colour = get_pconfig($uid, 'ussrbasicleft', 'comment_item_colour');
|
||||
$font_size = get_pconfig($uid, 'ussrbasicleft', 'font_size');
|
||||
$font_colour = get_pconfig($uid, 'ussrbasicleft', 'font_colour');
|
||||
$radius = get_pconfig($uid, 'ussrbasicleft', 'radius');
|
||||
$shadow = get_pconfig($uid,'ussrbasicleft','photo_shadow');
|
||||
$converse_width=get_pconfig($uid,'ussrbasicleft','converse_width');
|
||||
$top_photo=get_pconfig($uid,'ussrbasicleft','top_photo');
|
||||
$reply_photo=get_pconfig($uid,'ussrbasicleft','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/ussrbasicleft/schema/' . $schema . '.php')) {
|
||||
$schemefile = 'view/theme/ussrbasicleft/schema/' . $schema . '.php';
|
||||
require_once ($schemefile);
|
||||
}
|
||||
|
||||
if(file_exists('view/theme/ussrbasicleft/schema/' . $schema . '.css')) {
|
||||
$schemecss = file_get_contents('view/theme/ussrbasicleft/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/ussrbasicleft/schema
|
||||
if ((!$schema) || ($schema == '---')) {
|
||||
|
||||
if(file_exists('view/theme/ussrbasicleft/schema/default.php')) {
|
||||
$schemefile = 'view/theme/ussrbasicleft/schema/default.php';
|
||||
require_once ($schemefile);
|
||||
}
|
||||
|
||||
if(file_exists('view/theme/ussrbasicleft/schema/default.css')) {
|
||||
$schemecss = file_get_contents('view/theme/ussrbasicleft/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/ussrbasicleft/css/style.css')) {
|
||||
|
||||
$x = file_get_contents('view/theme/ussrbasicleft/css/style.css');
|
||||
|
||||
if($narrow_navbar && file_exists('view/theme/ussrbasicleft/css/narrow_navbar.css')) {
|
||||
$x .= file_get_contents('view/theme/ussrbasicleft/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'] != 'ussrbasicleft')
|
||||
// set_pconfig(local_channel(), 'ussrbasicleft', 'schema', '---');
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* * Name: Ussrbasictwopanel
|
||||
* * Name: Ussrbasicleft
|
||||
* * Description: zlax theme (removed like button and contact's minus circle)
|
||||
* * Version: 2.23
|
||||
* * MinVersion: 3.8
|
||||
|
@ -11,7 +11,7 @@
|
|||
* * Maintainer: Mario Vavti
|
||||
*/
|
||||
|
||||
function ussrbasictwopanel_init(&$a) {
|
||||
function ussrbasicleft_init(&$a) {
|
||||
|
||||
App::$theme_info['extends'] = 'redbasic';
|
||||
|
|
@ -22,13 +22,13 @@
|
|||
|
||||
<script>
|
||||
$(function(){
|
||||
$('#id_ussrbasictwopanel_nav_bg, #id_ussrbasictwopanel_nav_icon_colour, #id_ussrbasictwopanel_nav_active_icon_colour, #id_ussrbasictwopanel_banner_colour').colorpicker({format: 'rgba'});
|
||||
$('#id_ussrbasictwopanel_link_colour,#id_ussrbasictwopanel_background_colour').colorpicker();
|
||||
$('#id_ussrbasictwopanel_toolicon_colour,#id_ussrbasictwopanel_toolicon_activecolour,#id_ussrbasictwopanel_font_colour').colorpicker();
|
||||
$('#id_ussrbasictwopanel_item_colour,#id_ussrbasictwopanel_comment_item_colour,#id_ussrbasictwopanel_comment_border_colour').colorpicker({format: 'rgba'});
|
||||
$('#id_ussrbasicleft_nav_bg, #id_ussrbasicleft_nav_icon_colour, #id_ussrbasicleft_nav_active_icon_colour, #id_ussrbasicleft_banner_colour').colorpicker({format: 'rgba'});
|
||||
$('#id_ussrbasicleft_link_colour,#id_ussrbasicleft_background_colour').colorpicker();
|
||||
$('#id_ussrbasicleft_toolicon_colour,#id_ussrbasicleft_toolicon_activecolour,#id_ussrbasicleft_font_colour').colorpicker();
|
||||
$('#id_ussrbasicleft_item_colour,#id_ussrbasicleft_comment_item_colour,#id_ussrbasicleft_comment_border_colour').colorpicker({format: 'rgba'});
|
||||
});
|
||||
</script>
|
||||
{{/if}}
|
||||
<div class="settings-submit-wrapper" >
|
||||
<button type="submit" name="ussrbasictwopanel-settings-submit" class="btn btn-primary">{{$submit}}</button>
|
||||
<button type="submit" name="ussrbasicleft-settings-submit" class="btn btn-primary">{{$submit}}</button>
|
||||
</div>
|
|
@ -0,0 +1,15 @@
|
|||
|
||||
.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;
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
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;}
|
||||
*/
|
|
@ -0,0 +1,30 @@
|
|||
@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;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,58 @@
|
|||
|
||||
.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);
|
||||
}
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* Ussrbasictwopanel
|
||||
* Ussrbasicright
|
||||
*
|
||||
* Based on duepuntozero Friendica style
|
||||
* Originally by Fabio Comuni <fabrix.xm@gmail.com>
|
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 128 KiB |
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* ussrbasictwopanel theme specific JavaScript
|
||||
* ussrbasicright theme specific JavaScript
|
||||
*/
|
||||
|
||||
$(document).ready(function() {
|