diff options
-rw-r--r-- | doc/Comanche.md | 176 | ||||
-rw-r--r-- | doc/comanche.bb | 76 | ||||
-rw-r--r-- | include/bbcode.php | 2 | ||||
-rwxr-xr-x | include/items.php | 62 | ||||
-rw-r--r-- | mod/item.php | 70 | ||||
-rw-r--r-- | mod/layouts.php | 2 | ||||
-rw-r--r-- | mod/network.php | 1 | ||||
-rw-r--r-- | version.inc | 2 | ||||
-rw-r--r-- | view/theme/redbasic/schema/simple_white_on_black.css | 248 | ||||
-rw-r--r-- | view/theme/redbasic/schema/simple_white_on_black.php | 112 |
10 files changed, 380 insertions, 371 deletions
diff --git a/doc/Comanche.md b/doc/Comanche.md deleted file mode 100644 index 664412404..000000000 --- a/doc/Comanche.md +++ /dev/null @@ -1,176 +0,0 @@ -Comanche Page Description Language -================================== - - -Comanche is a markup language similar to bbcode with which to create elaborate and complex web pages by assembling them from a series of components - some of which are pre-built and others which can be defined on the fly. Comanche uses a Page Decription Language to create these pages. - -Comanche primarily chooses what content will appear in various regions of the page. The various regions have names and these names can change depending on what layout template you choose. - -Currently there are three layout templates, unless your site provides additional layouts. - - default - - The default template defines a "nav" region across the top, "aside" as a fixed width sidebar, - "content" for the main content region, and "footer" for a page footer. - - - full - - The full template defines the same as the default template with the exception that there is no "aside" region. - - - choklet - - The choklet template provides a number of fluid layout styles which can be specified by flavour: - - (default flavour) - a two column layout similar to the "default" template, but more fluid - bannertwo - a two column layout with a banner region, compatible with the "default" template on small displays - three - three column layout (adds a "right_aside" region to the default template) - edgestwo - two column layout with fixed side margins - edgesthree - three column layout with fixed side margins - full - three column layout with fixed side margins and adds a "header" region beneath the navigation bar - - -To choose a layout template, use the "template" tag. - - [template]full[/template] - -To choose the "choklet" template with the "three" flavour: - - [template=three]choklet[/template] - - -The default template will be used if no other template is specified. The template can use any names it desires for content regions. You will be using 'region' tags to decide what content to place in the respective regions. - - -Two "macros" have been defined for your use. - - $nav - replaced with the site navigation bar content. - $content - replaced with the main page content. - - -By default, $nav is placed in the "nav" page region and $content is placed in the "content" region. You only need to use these macros if you wish to re-arrange where these items appear, either to change the order or to move them to other regions. - - -To select a theme for your page, use the 'theme' tag. - - [theme]apw[/theme] - -This will select the theme named "apw". By default your channel's preferred theme will be used. - - [theme=dark]redbasic[/theme] - -This will select the theme named "redbasic" and load the "dark" theme schema for this theme. - -**Regions** - -Each region has a name, as noted above. You will specify the region of interest using a 'region' tag, which includes the name. Any content you wish placed in this region should be placed between the opening region tag and the closing tag. - - [region=aside]....content goes here....[/region] - [region=nav]....content goes here....[/region] - - - -**Menus and Blocks** - -Your webpage creation tools allow you to create menus and blocks, in addition to page content. These provide a chunk of existing content to be placed in whatever regions and whatever order you specify. Each of these has a name which you define when the menu or block is created. - - [menu]mymenu[/menu] - -This places the menu called "mymenu" at this location on the page, which must be inside a region. - - [menu=horizontal-menu]mymenu[/menu] - -This places the menu called "mymenu" at this location on the page, which must be inside a region. Additionally it adds the CSS class "horizontal-menu" to this menu. This *may* result in a menu that looks different than the default menu style, *if* the css for the current theme defines a "horizontal-menu" class. - - [block]contributors[/block] - -This places a block named "contributors" in this region. - - [block=someclass]contributors[/block] - -This places a block named "contributors" in this region. Additionally it applies the "someclass" class to the block. This replaces the default block classes "bblock widget". - - [block][var=wrap]none[/var]contributors[/block] - -The variable [var=wrap]none[/var] in a block removes the wrapping div element from the block. - - -**Widgets** - -Widgets are executable apps provided by the system which you can place on your page. Some widgets take arguments which allows you to tailor the widget to your purpose. (TODO: list available widgets and arguments). The base system provides - - profile - widget which duplicates the profile sidebar of your channel page. This widget takes no arguments - tagcloud - provides a tag cloud of categories - count - maximum number of category tags to list - - - -Widgets and arguments are specified with the 'widget' and 'var' tags. - - [widget=recent_visitors][var=count]24[/var][/widget] - -This loads the "recent_visitors" widget and supplies it with the argument "count" set to "24". - - -**Comments** - -The 'comment' tag is used to delimit comments. These comments will not appear on the rendered page. - - [comment]This is a comment[/comment] - - - -**Complex Example** - -Please note that pasting this example into a layout page is not likely to do anything useful as the chosen names (template, theme, regions, etc.) may not correspond to any existing webpage components. - - [comment]use an existing page template which provides a banner region plus 3 columns beneath it[/comment] - - [template]3-column-with-header[/template] - - [comment]Use the "darknight" theme[/comment] - - [theme]darkknight[/theme] - - [comment]Use the existing site navigation menu[/comment] - - [region=nav]$nav[/region] - - [region=side] - - [comment]Use my chosen menu and a couple of widgets[/comment] - - [menu]myfavouritemenu[/menu] - - [widget=recent_visitors] - [var=count]24[/var] - [var=names_only]1[/var] - [/widget] - - [widget=tagcloud][/widget] - [block]donate[/block] - - [/region] - - - - [region=middle] - - [comment]Show the normal page content[/comment] - - $content - - [/region] - - - - [region=right] - - [comment]Show my condensed channel "wall" feed and allow interaction if the observer is allowed to interact[/comment] - - [widget]channel[/widget] - - [/region] - -#include doc/macros/main_footer.bb; diff --git a/doc/comanche.bb b/doc/comanche.bb index eb881fbdc..2eaa15deb 100644 --- a/doc/comanche.bb +++ b/doc/comanche.bb @@ -4,22 +4,20 @@ Comanche is a markup language similar to bbcode with which to create elaborate a Comanche primarily chooses what content will appear in various regions of the page. The various regions have names and these names can change depending on what layout template you choose.
-Currently there are three layout templates, unless your site provides additional layouts (TODO list all templates)
+[b]Page Templates[/b]
+Currently there are five layout templates, unless your site provides additional layouts.
[code]
- default
-
+ [b]default[/b]
The default template defines a "nav" region across the top, "aside" as a fixed width sidebar,
"content" for the main content region, and "footer" for a page footer.
- full
-
+ [b]full[/b]
The full template defines the same as the default template with the exception that there is no "aside" region.
- choklet
-
+ [b]choklet[/b]
The choklet template provides a number of fluid layout styles which can be specified by flavour:
(default flavour) - a two column layout similar to the "default" template, but more fluid
@@ -29,9 +27,12 @@ Currently there are three layout templates, unless your site provides additional edgesthree - three column layout with fixed side margins
full - three column layout with fixed side margins and adds a "header" region beneath the navigation bar
- redable
-
- A template for reading longer texts. Three columns: aside, content and right_aside. For maximum readability it is advised to only use the middle content column.
+ [b]redable[/b]
+ A template for reading longer texts. Three columns: aside, content and right_aside.
+ For maximum readability it is advised to only use the middle content column.
+
+ [b]zen[/b]
+ Gives you the freedom to do everything yourself. Just a blank page with a content region.
[/code]
@@ -39,29 +40,24 @@ To choose a layout template, use the 'template' tag. [code]
[template]full[/template]
-[/code]
+[/code]
To choose the "choklet" template with the "three" flavour:
[code]
[template=three]choklet[/template]
-[/code]
-
-Or the "redable" (sic) template:
-[code]
- [template]redable[/template]
[/code]
-
The default template will be used if no other template is specified. The template can use any names it desires for content regions. You will be using 'region' tags to decide what content to place in the respective regions.
-
-Two "macros" have been defined for your use.
+Three "macros" have been defined for your use.
[code]
+ $htmlhead - replaced with the site head content.
$nav - replaced with the site navigation bar content.
$content - replaced with the main page content.
+
[/code]
By default, $nav is placed in the "nav" page region and $content is placed in the "content" region. You only need to use these macros if you wish to re-arrange where these items appear, either to change the order or to move them to other regions.
@@ -70,38 +66,61 @@ By default, $nav is placed in the "nav" page region and $content is pl To select a theme for your page, use the 'theme' tag.
[code]
[theme]apw[/theme]
+
[/code]
This will select the theme named "apw". By default your channel's preferred theme will be used.
[code]
[theme=passion]apw[/theme]
+
[/code]
This will select the theme named "apw" and select the "passion" schema (theme variant).
[b]Regions[/b]
-
Each region has a name, as noted above. You will specify the region of interest using a 'region' tag, which includes the name. Any content you wish placed in this region should be placed between the opening region tag and the closing tag.
[code]
+ [region=htmlhead]....content goes here....[/region]
[region=aside]....content goes here....[/region]
[region=nav]....content goes here....[/region]
+ [region=content]....content goes here....[/region]
+
[/code]
+[b]CSS and Javascript[/b]
+We have the possibility to include javascript and css libraries in the htmlhead region. At present we make use of jquery (js), bootstrap (css/js) and foundation (css/js).
+This will overwrite the selected themes htmlhead.
-[b]Menus and Blocks[/b]
+[code]
+ [region=htmlhead]
+ [css]bootstrap[/css]
+ [js]jquery[/js]
+ [js]bootstrap[/js]
+ [/region]
+
+[/code]
+[b]Menus and Blocks[/b]
Your webpage creation tools allow you to create menus and blocks, in addition to page content. These provide a chunk of existing content to be placed in whatever regions and whatever order you specify. Each of these has a name which you define when the menu or block is created.
+
[code]
[menu]mymenu[/menu]
+
[/code]
This places the menu called "mymenu" at this location on the page, which must be inside a region.
[code]
[menu=horizontal]mymenu[/menu]
+
[/code]
This places the menu called "mymenu" at this location on the page, which must be inside a region. Additionally it applies the "horizontal" class to the menu. "horizontal" is defined in the redbasic theme. It may or may not be available in other themes.
+[code]
+ [menu][var=wrap]none[/var]mymenu[/menu]
+
+[/code]
+The variable [var=wrap]none[/var] in a block removes the wrapping div element from the menu.
[code]
[block]contributors[/block]
@@ -110,43 +129,43 @@ This places a block named "contributors" in this region. [code]
[block=someclass]contributors[/block]
+
[/code]
This places a block named "contributors" in this region. Additionally it applies the "someclass" class to the block. This replaces the default block classes "bblock widget".
[code]
[block][var=wrap]none[/var]contributors[/block]
+
[/code]
The variable [var=wrap]none[/var] in a block removes the wrapping div element from the block.
[b]Widgets[/b]
-
Widgets are executable apps provided by the system which you can place on your page. Some widgets take arguments which allows you to tailor the widget to your purpose. (TODO: list available widgets and arguments). The base system provides
+
[code]
profile - widget which duplicates the profile sidebar of your channel page. This widget takes no arguments
tagcloud - provides a tag cloud of categories
count - maximum number of category tags to list
-[/code]
+[/code]
Widgets and arguments are specified with the 'widget' and 'var' tags.
[code]
[widget=recent_visitors][var=count]24[/var][/widget]
+
[/code]
This loads the "recent_visitors" widget and supplies it with the argument "count" set to "24".
-
[b]Comments[/b]
-
The 'comment' tag is used to delimit comments. These comments will not appear on the rendered page.
[code]
- [comment]This is a comment[/comment]
+ [comment]This is a comment[/comment]
+
[/code]
-
[b]Complex Example[/b]
-
[code]
[comment]use an existing page template which provides a banner region plus 3 columns beneath it[/comment]
@@ -195,6 +214,7 @@ The 'comment' tag is used to delimit comments. These comments will not appear on [widget]channel[/widget]
[/region]
+
[/code]
#include doc/macros/main_footer.bb;
diff --git a/include/bbcode.php b/include/bbcode.php index 0415d8a73..b8a62a2f2 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -1008,5 +1008,5 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true, $cache = false) function strip_bbimage($s) { - $Text = preg_replace("/\[[zi]mg(.*?)\](.*?)\[\/[zi]mg\]/ism", '', $Text); + return preg_replace("/\[[zi]mg(.*?)\](.*?)\[\/[zi]mg\]/ism", '', $s); } diff --git a/include/items.php b/include/items.php index 818e7f526..2b00b52f8 100755 --- a/include/items.php +++ b/include/items.php @@ -4842,6 +4842,17 @@ function comment_local_origin($item) { } +function gen_asld($items) { + $ret = array(); + if(! $items) + return $ret; + foreach($items as $item) { + $ret[] = i2asld($item); + } + return $ret; +} + + function i2asld($i) { if(! $i) @@ -4849,30 +4860,69 @@ function i2asld($i) { $ret = array(); + $ret['@context'] = array( 'http://www.w3.org/ns/activitystreams', 'zot' => 'http://purl.org/zot/protocol'); + if($i['verb']) { - $ret['@context'] = dirname($i['verb']); - $ret['@type'] = ucfirst(basename($i['verb'])); + if(strpos(dirname($i['verb'],'activitystrea.ms/schema/1.0'))) { + $ret['@type'] = ucfirst(basename($i['verb'])); + } + elseif(strpos(dirname($i['verb'],'purl.org/zot'))) { + $ret['@type'] = 'zot:' . ucfirst(basename($i['verb'])); + } } $ret['@id'] = $i['plink']; + $ret['published'] = datetime_convert('UTC','UTC',$i['created'],ATOM_TIME); - if($i['title']) - $ret['title'] = $i['title']; - $ret['content'] = bbcode($i['body']); + + // we need to pass the parent into this +// if($i['id'] != $i['parent'] && $i['obj_type'] === ACTIVITY_OBJ_NOTE) { +// $ret['inReplyTo'] = asencode_note +// } + + if($i['obj_type'] === ACTIVITY_OBJ_NOTE) + $ret['object'] = asencode_note($i); + $ret['actor'] = asencode_person($i['author']); - $ret['owner'] = asencode_person($i['owner']); return $ret; } +function asencode_note($i) { + + $ret = array(); + + $ret['@type'] = 'Note'; + $ret['@id'] = $i['plink']; + if($i['title']) + $ret['title'] = bbcode($i['title']); + $ret['content'] = bbcode($i['body']); + $ret['zot:owner'] = asencode_person($i['owner']); + $ret['published'] = datetime_convert('UTC','UTC',$i['created'],ATOM_TIME); + if($i['created'] !== $i['edited']) + $ret['updated'] = datetime_convert('UTC','UTC',$i['edited'],ATOM_TIME); + + return $ret; +} + function asencode_person($p) { $ret = array(); $ret['@type'] = 'Person'; $ret['@id'] = 'acct:' . $p['xchan_addr']; $ret['displayName'] = $p['xchan_name']; + $ret['icon'] = array( + '@type' => 'Link', + 'mediaType' => $p['xchan_photo_mimetype'], + 'href' => $p['xchan_photo_m'] + ); + $ret['url'] = array( + '@type' => 'Link', + 'mediaType' => 'text/html', + 'href' => $p['xchan_url'] + ); return $ret; } diff --git a/mod/item.php b/mod/item.php index 8365aefb0..94b32d01c 100644 --- a/mod/item.php +++ b/mod/item.php @@ -544,40 +544,6 @@ function item_post(&$a) { $body = preg_replace_callback('/\[img(.*?)\](.*?)\[\/img\]/ism','red_zrlify_img_callback',$body); - /** - * - * When a photo was uploaded into the message using the (profile wall) ajax - * uploader, The permissions are initially set to disallow anybody but the - * owner from seeing it. This is because the permissions may not yet have been - * set for the post. If it's private, the photo permissions should be set - * appropriately. But we didn't know the final permissions on the post until - * now. So now we'll look for links of uploaded photos and attachments that are in the - * post and set them to the same permissions as the post itself. - * - * If the post was end-to-end encrypted we can't find images and attachments in the body, - * use our media_str input instead which only contains these elements - but only do this - * when encrypted content exists because the photo/attachment may have been removed from - * the post and we should keep it private. If it's encrypted we have no way of knowing - * so we'll set the permissions regardless and realise that the media may not be - * referenced in the post. - * - * What is preventing us from being able to upload photos into comments is dealing with - * the photo and attachment permissions, since we don't always know who was in the - * distribution for the top level post. - * - * We might be able to provide this functionality with a lot of fiddling: - * - if the top level post is public (make the photo public) - * - if the top level post was written by us or a wall post that belongs to us (match the top level post) - * - if the top level post has privacy mentions, add those to the permissions. - * - otherwise disallow the photo *or* make the photo public. This is the part that gets messy. - */ - - if(! $preview) { - fix_attached_photo_permissions($profile_uid,$owner_xchan['xchan_hash'],((strpos($body,'[/crypt]')) ? $_POST['media_str'] : $body),$str_contact_allow,$str_group_allow,$str_contact_deny,$str_group_deny); - - fix_attached_file_permissions($channel,$observer['xchan_hash'],((strpos($body,'[/crypt]')) ? $_POST['media_str'] : $body),$str_contact_allow,$str_group_allow,$str_contact_deny,$str_group_deny); - - } @@ -636,6 +602,42 @@ function item_post(&$a) { $body = str_replace($match[1],'',$body); } } + + /** + * + * When a photo was uploaded into the message using the (profile wall) ajax + * uploader, The permissions are initially set to disallow anybody but the + * owner from seeing it. This is because the permissions may not yet have been + * set for the post. If it's private, the photo permissions should be set + * appropriately. But we didn't know the final permissions on the post until + * now. So now we'll look for links of uploaded photos and attachments that are in the + * post and set them to the same permissions as the post itself. + * + * If the post was end-to-end encrypted we can't find images and attachments in the body, + * use our media_str input instead which only contains these elements - but only do this + * when encrypted content exists because the photo/attachment may have been removed from + * the post and we should keep it private. If it's encrypted we have no way of knowing + * so we'll set the permissions regardless and realise that the media may not be + * referenced in the post. + * + * What is preventing us from being able to upload photos into comments is dealing with + * the photo and attachment permissions, since we don't always know who was in the + * distribution for the top level post. + * + * We might be able to provide this functionality with a lot of fiddling: + * - if the top level post is public (make the photo public) + * - if the top level post was written by us or a wall post that belongs to us (match the top level post) + * - if the top level post has privacy mentions, add those to the permissions. + * - otherwise disallow the photo *or* make the photo public. This is the part that gets messy. + */ + + if(! $preview) { + fix_attached_photo_permissions($profile_uid,$owner_xchan['xchan_hash'],((strpos($body,'[/crypt]')) ? $_POST['media_str'] : $body),$str_contact_allow,$str_group_allow,$str_contact_deny,$str_group_deny); + + fix_attached_file_permissions($channel,$observer['xchan_hash'],((strpos($body,'[/crypt]')) ? $_POST['media_str'] : $body),$str_contact_allow,$str_group_allow,$str_contact_deny,$str_group_deny); + + } + } // BBCODE end alert diff --git a/mod/layouts.php b/mod/layouts.php index daae1ba5a..fd77cfc37 100644 --- a/mod/layouts.php +++ b/mod/layouts.php @@ -173,7 +173,7 @@ function layouts_content(&$a) { $o .= replace_macros(get_markup_template('layoutlist.tpl'), array( '$title' => t('Layouts'), '$create' => t('Create'), - '$help' => array('text' => t('Help'), 'url' => 'help/Comanche', 'title' => t('Comanche page description language help')), + '$help' => array('text' => t('Help'), 'url' => 'help/comanche', 'title' => t('Comanche page description language help')), '$editor' => $editor, '$baseurl' => $url, '$name' => t('Layout Name'), diff --git a/mod/network.php b/mod/network.php index 9ebdf7198..6431883d5 100644 --- a/mod/network.php +++ b/mod/network.php @@ -505,7 +505,6 @@ function network_content(&$a, $update = 0, $load = false) { $mode = (($nouveau) ? 'network-new' : 'network'); - $o .= conversation($a,$items,$mode,$update,$page_mode); if(($items) && (! $update)) diff --git a/version.inc b/version.inc index bb5285ad8..df0133a63 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2015-05-31.1049 +2015-06-02.1051 diff --git a/view/theme/redbasic/schema/simple_white_on_black.css b/view/theme/redbasic/schema/simple_white_on_black.css index 761fe795b..90fafd76e 100644 --- a/view/theme/redbasic/schema/simple_white_on_black.css +++ b/view/theme/redbasic/schema/simple_white_on_black.css @@ -1,20 +1,12 @@ -.vcard { - border-bottom: 1px solid #000; -} - -#contact-block { - border-bottom: 1px solid #000; -} - -.widget { - border-bottom: 1px solid #000; +.vcard, #contact-block, .widget { + border-bottom: 1px solid #fff; + background-color: rgba(0,0,0,0.4); } .abook-pending-contact, .abook-permschange { background: #000; } - #cboxContent a { color: #000; } @@ -150,3 +142,237 @@ nav .dropdown-menu>li>a:hover,nav .dropdown-menu>li>a:focus{ nav .dropdown-menu { background-color: #000; } + +.rconnect { + color: #fff; + background-color: #000; +} + +a.rateme, div.rateme { + color: #fff; + background-color: #000; + border: 1px solid #000; +} + +a.rconnect, a.rateme, div.rateme { + color: #fff; +} + +.navbar-inverse { + background-image: -webkit-linear-gradient(top, #000 0%, #000 100%); + background-image: linear-gradient(to bottom, #000 0%, #000 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#000, endColorstr=#000, GradientType=0); + background-color: #000; + border-color: #000; +} + +.navbar-inverse .navbar-collapse, .navbar-inverse .navbar-toggle { + border-color: #000; +} + +.navbar-inverse .navbar-nav > .active > a { + background-image: -webkit-linear-gradient(top, #000 0%, #000 100%); + background-image: linear-gradient(to bottom, #000 0%, #000 100%); + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#000, endColorstr=#000, GradientType=0); +} + +.navbar-inverse .navbar-nav > .open > a, +.navbar-inverse .navbar-nav > .open > a:hover, +.navbar-inverse .navbar-nav > .open > a:focus { + background-color: #000; + color: #fff; +} + +.navbar-inverse .navbar-toggle:hover, +.navbar-inverse .navbar-toggle:focus { + background-color: #000; +} + +#nav-search-text { + border-color: #000; + background-color: #000; +} + +.autocomplete .selected { + background: #000; +} + +#nav-search-text-ac .autocomplete { + border: 1px solid #000; +} + +#usermenu-caret, .navbar-inverse .navbar-nav > li > a { + color: #eee; +} + +.navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus, .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus, .navbar-inverse .navbar-toggle .icon-bar, #nav-search-spinner, #avatar:hover + #usermenu-caret, #expand-aside, #expand-tabs { + color: #fff; +} + +.nav-tabs{ + border-bottom:1px solid #fff; +} + +.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:hover,.nav-tabs.nav-justified>.active>a:focus{ + border:1px solid #fff; +} + +.nav-tabs>li.active>a,.nav-tabs>li.active>a:hover,.nav-tabs>li.active>a:focus { + color: #fff; + background-color: #000; +} + +.nav-tabs.nav-justified > li > a { + color: #fff; +} + +.nav-tabs > li > a:hover, .nav-tabs > li > a:focus { + text-decoration: underline; + background-color: #000; + color: #fff; +} + +aside .nav > li > a:hover, aside .nav > li > a:focus { + text-decoration: underline; + background-color: #030303; +} + +a, a:visited, a:link, .fakelink, .fakelink:visited, .fakelink:link { + font-weight: bold; + color: #fff; +} + +a:hover, .fakelink:hover, .profile-import b, .field.checkbox:hover label { + color: #fff; +} + +.divgrow-showmore { + color: #fff; +} + +.field.checkbox:hover > div label { + border-color: #fff; +} + +.group-selected, .fileas-selected, .categories-selected, .search-selected, .active { + color: #fff !important; + text-decoration: underline !important; +} + +header #banner { + color: #000; +} + +body { + background-color: #000; + color: #fff; +} + +.jothidden > input { + border: 1px solid #000; + background-color: #000; +} + +.jothidden .bootstrap-tagsinput { + border-color: #000; + background-color: #000; +} + +.generic-content-wrapper-styled { + background-color: rgba(0,0,0,0.8); +} + +.wall-item-content-wrapper.comment, .hide-comments-outer { + background-color: rgba(0,0,0,0.4); + border-color: rgba(0,0,0,0.8); +} + +#photo-view-wrapper, .wall-item-content-wrapper, .wall-item-comment-wrapper, .section-title-wrapper, .section-subtitle-wrapper, .section-content-tools-wrapper, [id^="cloud-index-"]:hover td, .cloud-index-active, [id^="webpage-list-item-"]:hover td, [id^="block-list-item-"]:hover td, +[id^="layout-list-item-"]:hover td, [id^="menu-list-item-"]:hover td, [id^="mitem-list-item-"]:hover td, .onoffswitch-inner:after { + background-color: rgba(0,0,0,0.8); +} + +.onoffswitch-inner:before { + background-color: rgba(0,0,0,0.8); + color: #fff; +} + +.section-content-tools-wrapper, .section-content-wrapper, .section-content-wrapper-np { + background-color: rgba(0,0,0,0.4); +} + +.tool-icons, .admin-icons, a .drop-icons, .jot-icons, .item-tool, .like-rotator, .comment-icon, .widget h3 { + color: #eee; +} + +.profile-import input { + color: #fff; +} + +.autocomplete { + color: #fff; + background: #000; +} + +blockquote { + background-color: #000; + border-left: 3px solid #fff; + color: #eee; +} + +code { + border: 1px solid #eee; + background: #000; + color: #eee; +} + +pre { + background: #000; + color: #eee; + border:1px solid #fff; +} + +.notif-item a { + color: #fff; +} + +.notif-item a:hover { + color: #fff; +} + +.dropdown-menu { + background-color: #000; +} + +.dropdown-menu >li > a { + color: #fff; +} + +.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { + color: #fff; + background-color: #030303; + background-image: none; +} + +.open .dropdown-toggle.btn-default { + color: #fff; + background-color: #000; + border-color: #000; +} + +.preview { + background: url('../img/gray_and_black_diagonal_stripes_background_seamless.gif'); +} + + +@media (min-width: 768px) { + .nav-tabs.nav-justified > li > a { + border-bottom: 1px solid #fff; + } +} + +@media screen and (max-width: 767px) { + aside#region_1 { + border-right: 1px solid #000; + } + } diff --git a/view/theme/redbasic/schema/simple_white_on_black.php b/view/theme/redbasic/schema/simple_white_on_black.php deleted file mode 100644 index f940b7c64..000000000 --- a/view/theme/redbasic/schema/simple_white_on_black.php +++ /dev/null @@ -1,112 +0,0 @@ -<?php - - if (! $nav_bg) - $nav_bg = "#000"; - if (! $nav_gradient_top) - $nav_gradient_top = "#000"; - if (! $nav_gradient_bottom) - $nav_gradient_bottom = "#000"; - if (! $nav_active_gradient_top) - $nav_active_gradient_top = "#000"; - if (! $nav_active_gradient_bottom) - $nav_active_gradient_bottom = "#000"; - if (! $nav_bd) - $nav_bd = "#000"; - if (! $nav_icon_colour) - $nav_icon_colour = "#eee"; - if (! $nav_active_icon_colour) - $nav_active_icon_colour = "#fff"; - if (! $navtabs_borderc) - $navtabs_borderc = "#fff"; - if (! $navtabs_fontcolour) - $navtabs_fontcolour = "#fff"; - if (! $navtabs_bgcolour) - $navtabs_bgcolour = "#000"; - if (! $navtabs_linkcolour) - $navtabs_linkcolour = "color: #fff;"; - if (! $navtabs_linkchover) - $navtabs_linkchover = "color: #fff;"; - if (! $navtabs_bgchover) - $navtabs_bgchover = "#000"; - if (! $navtabs_decohover) - $navtabs_decohover = "underline"; - if (! $navaside_bghover) - $navaside_bghover = "#030303"; - if (! $link_colour) - $link_colour = "#fff"; - if (! $link_font_weight) - $link_font_weight = "bold"; - if (! $selected_active_colour) - $selected_active_colour = "#fff"; - if (! $selected_active_deco) - $selected_active_deco = "underline"; - if (! $banner_colour) - $banner_colour = "#000"; - if (! $search_background) - $search_background = "#000"; - if (! $bgcolour) - $bgcolour = "#000"; - if (! $genericcontent_bgcolour) - $genericcontent_bgcolour ='rgba(0,0,0,0.8)'; - if (! $item_colour) - $item_colour = "rgba(0,0,0,0.8)"; - if (! $comment_item_colour) - $comment_item_colour = "rgba(0,0,0,0.4)"; - if (! $comment_border_colour) - $comment_border_colour = "rgba(0,0,0,0.8)"; - if (! $toolicon_colour) - $toolicon_colour = '#eee'; - if (! $toolicon_activecolour) - $toolicon_activecolour = '#fff'; - if (! $font_colour) - $font_colour = "#fff"; - if (! $blockquote_colour) - $blockquote_colour = "#eee"; - if (! $blockquote_bgcolour) - $blockquote_bgcolour = "#000"; - if (! $blockquote_bordercolour) - $blockquote_bordercolour = "#fff"; - if (! $code_borderc) - $code_borderc = "#eee"; - if (! $code_bgcolour) - $code_bgcolour = "#000"; - if (! $code_txtcolour) - $code_txtcolour = "#eee"; - if (! $pre_borderc) - $pre_borderc = "#fff"; - if (! $pre_bgcolour) - $pre_bgcolour = "#000"; - if (! $pre_txtcolour) - $pre_txtcolour = "#eee"; - if (! $item_bordercolour) - $item_bordercolour = "#fff"; - if (! $notif_itemcolour) - $notif_itemcolour = "#fff"; - if (! $notif_itemhovercolour) - $notif_itemhovercolour = "#fff"; - if (! $acpopup_bgcolour) - $acpopup_bgcolour = "#000"; - if (! $acpopup_bordercolour) - $acpopup_bordercolour = "#fff"; - if (! $acpopup_tgbl_bgcolour) - $acpopup_tgbl_bgcolour = "#000"; - if (! $acpopup_hovercolour) - $acpopup_hovercolour = "#fff"; - if (! $dropdown_bgcolour) - $dropdown_bgcolour = "#000"; - if (! $dropdown_textcolour) - $dropdown_textcolour = "#fff"; - if (! $dropdown_txtcolhover) - $dropdown_txtcolhover = "#fff"; - if (! $dropdown_bgcolhover) - $dropdown_bgcolhover = "#030303"; - if (! $dropdown_bgimghover) - $dropdown_bgimghover = "background-image: none;"; - if (! $dropdown_togglecol) - $dropdown_togglecol = "#fff"; - if (! $dropdown_togglebgcol) - $dropdown_togglebgcol = "#000"; - if (! $dropdown_bordercol) - $dropdown_bordercol = "#000"; - if (! $preview_backgroundimg) - $preview_backgroundimg = "gray_and_black_diagonal_stripes_background_seamless.gif"; |