diff options
Diffstat (limited to 'contrib/themes/borders')
-rwxr-xr-x | contrib/themes/borders/images/ampache.gif | bin | 0 -> 3136 bytes | |||
-rw-r--r-- | contrib/themes/borders/images/blankalbum.gif | bin | 0 -> 1437 bytes | |||
-rw-r--r-- | contrib/themes/borders/readme.txt | 21 | ||||
-rw-r--r-- | contrib/themes/borders/templates/style.inc | 369 | ||||
-rw-r--r-- | contrib/themes/borders/theme.cfg.php | 71 |
5 files changed, 461 insertions, 0 deletions
diff --git a/contrib/themes/borders/images/ampache.gif b/contrib/themes/borders/images/ampache.gif Binary files differnew file mode 100755 index 00000000..6d14b699 --- /dev/null +++ b/contrib/themes/borders/images/ampache.gif diff --git a/contrib/themes/borders/images/blankalbum.gif b/contrib/themes/borders/images/blankalbum.gif Binary files differnew file mode 100644 index 00000000..a83219d8 --- /dev/null +++ b/contrib/themes/borders/images/blankalbum.gif diff --git a/contrib/themes/borders/readme.txt b/contrib/themes/borders/readme.txt new file mode 100644 index 00000000..19bc64ba --- /dev/null +++ b/contrib/themes/borders/readme.txt @@ -0,0 +1,21 @@ + This ampache theme does not use any graphics in generating the backgrounds, so the colors can be changed to +whatever you want. The main feature of this theme is the borders. The borders can easily be customized at the +top of themes/borders/templates/style.inc. There is a primary border around all the boxes, and a relief line across +the top and the left side. + + This them will overide your font with "Comic Sans MS". This can be disabled in the top of the file +themes/borders/templates/style.inc. It also tells you how to get this font in linux. + + This theme was created against svn 577 + +Issues + +1. If you use black (or something real dark) as a color; + If you set your background (bg_color1) to black, some of the text wont be readable, especially on mouseover. + If your background is black you will lose the shading and some text on themes/borders/images/ampache.gif. + this is the image at the top of the page. + If you set most frames (row_color3) to black, you should replace themes/borders/images/blankalbum.gif + + + +If you have any questions, bugs or improvements, give me a holler. randyperkins@randyperkins.com diff --git a/contrib/themes/borders/templates/style.inc b/contrib/themes/borders/templates/style.inc new file mode 100644 index 00000000..f5b66e5d --- /dev/null +++ b/contrib/themes/borders/templates/style.inc @@ -0,0 +1,369 @@ +<?php +/* + + Copyright (c) 2001 - 2005 Ampache.org + All rights reserved. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +*/ + +/*! + @header Style File + @discussion this is the css that is included on every page of + ampache, mod this to change the look and feel of the site +*/ + + + +# CUSTOMIZE THIS CSS FILE HERE + +# the following line changes the font to Comic Sans MS +# if you dont have that font on linux check out http://corefonts.sourceforge.net/ +# or on debian i use the package msttcorefonts +# if you dont like your fonts overridden at all comment out the first line and uncomment the second one + +$font = "Comic Sans MS, " . conf('font'); +#$font = "conf('font')"; + + +# customize the main border here +$border = "outset 5pt"; + +# this is the thin inside border on the top and left side of the main border +$relief_border = "solid 1pt " . conf('bg_color2'); + +# this is the border on the active_nav item +$relief_border2 = "solid 1pt " . conf('row_color1'); + + + + +?> +<style type="text/css"> +<!-- + body + { + background: <?php echo conf('bg_color1'); ?>; + font-family: <?php echo $font ?>; + font-size: <?php echo conf('font_size'); ?>px; + color: <?php echo conf('font_color2'); ?>; + } + + p + { + color: <?php echo conf('font_color2'); ?>; + font-family: <?php echo $font?>; + font-size: <?php echo conf('font_size'); ?>px; + } + a + { + color: <?php echo conf('font_color1') ?>; + font-family: <?php echo $font?>; + text-decoration: none; + } + a:visited + { + color: <?php echo conf('font_color3') ?>; + font-family: <?php echo $font?>; + text-decoration: none; + } + a:hover + { + color: <?php echo conf('font_color2'); ?>; + font-family: <?php echo $font?>; + text-decoration: underline; + } + table a:hover + { + color: <?php echo conf('bg_color1') ?>; + font-family: <?php echo $font?>; + text-decoration: underline; + } + a:active + { + color: <?php echo conf('font_color2') ?>; + font-family: <?php echo $font?>; + text-decoration: none; + } + .border + { + background:<?php echo conf('bg_color2'); ?>; + border-collapse: separate; + border: <?php echo "$border " . conf('row_color1'); ?>; + border-spacing: 0pt; + } + .border tr td:first-child + { + # this is the one thats put the border down the left side; + border-left: <?php echo "$relief_border"; ?>; + } + .border tr table tr td:first-child + { + # gets rid of funkyness on left side in albums.php; + border-left: solid 0pt <?php echo conf('bg_color2'); ?>; + } + .border .even:first-child td + { + # adds line on top in albums.php; + border-top: <?php echo "$relief_border"; ?>; + } + .border .even .even:first-child td + { + # removes extra line from random play on index.php; + border-top: solid 0pt <?php echo conf('bg_color2'); ?>; + } + .border .even:first-child tr td + { + # gets rid of double line on top in albums.php; + border-top: solid 0pt <?php echo conf('bg_color2'); ?>; + } + .table-header + { + background: <?php echo conf('base_color2')?> ; + vertical-align: top; + } + .table-header td + { + border-bottom: <?php echo "$relief_border"; ?>; + border-top: <?php echo "$relief_border"; ?>; + text-align: center; + font-size: larger; + } + .table-header th + { + border-bottom: <?php echo "$relief_border"; ?>; + border-top: <?php echo "$relief_border"; ?>; + } + .table-header th:first-child + { + #border-top: <?php echo "$relief_border"; ?>; + #border-bottom: <?php echo "$relief_border"; ?>; + border-left: <?php echo "$relief_border"; ?>; + } + .tabledata + { + background:<?php echo conf('bg_color2'); ?>; + border-collapse: separate; + border: <?php echo "$border " . conf('row_color1'); ?>; + } + .tabledata tr td:first-child + { + # this line is for the playlist page; + border-left: solid 1pt <?php echo conf('bg_color2'); ?>; + } + .text-box + { + padding-left:5px; + padding-top:5px; + margin-bottom:10px; + background: <?php echo conf('base_color1'); ?>; + border-collapse: separate; + border: <?php echo "$border " . conf('base_color1'); ?>; + } + .text-box .tabledata + { + # these next 2 lines fix the show catalog box; + border: outset 0pt <?php echo conf('base_color1'); ?>; + background: <?php echo conf('base_color1'); ?>; + #border-left: solid 0pt <?php echo conf('bg_color2'); ?>; + } + .text-box .tabledata tr td + { + # this line removes a red line from the left of the show catalog box; + border-left: solid 0pt <?php echo conf('bg_color2'); ?>; + } + +/*************** Main Menu *****************/ + #mainmenu { + float: left; + width: 99%; + margin: 0; + padding: 0; + list-style: none; + border-collapse: separate; + border: <?php echo "$border " . conf('row_color1'); ?>; + border-spacing: 0pt; + background: <?php echo conf('base_color2')?> ; + } + #mainmenu li { + float: left; + margin: 0; + padding: 0 20px 0 20px; + display: inline; + background: <?php echo conf('base_color2')?> ; + border-top: <?php echo "$relief_border"; ?>; + border-right: <?php echo "$relief_border"; ?>; + text-align: center; + font-size: larger; + } + #mainmenu li:first-child + { + border-left: <?php echo "$relief_border"; ?>; + } + #mainmenu li.active { + vertical-align: top; + text-align: center; + border: <?php echo "$relief_border2"; ?>; + background:<?php echo conf('bg_color2'); ?>; + } + #mainmenu a { + color: <?php echo conf('font_color1') ?>; + font-family: <?php echo $font?>; + text-decoration: none; + } + #mainmenu a:hover { + color: <?php echo conf('bg_color1') ?>; + font-family: <?php echo $font?>; + text-decoration: underline; + } + #mainmenu a:active { + color: <?php echo conf('font_color2') ?>; + font-family: <?php echo $font?>; + text-decoration: none; + } +/*************** END Main Menu *************/ +/*************** Admin Menu *************/ + #adminmenu { + width: 99%; + float: left; + margin: 0; + padding: 0; + list-style: none; + border-collapse: separate; + border: <?php echo "$border " . conf('row_color1'); ?>; + border-spacing: 0pt; + background: <?php echo conf('base_color2')?> ; + } + #adminmenu li { + float: left; + margin: 0; + padding: 0 20px 0 20px; + background: <?php echo conf('base_color2')?> ; + border-top: <?php echo "$relief_border"; ?>; + border-right: <?php echo "$relief_border"; ?>; + text-align: center; + font-size: larger; + display: inline; + } + #adminmenu li:first-child + { + border-left: <?php echo "$relief_border"; ?>; + } + #adminmenu li.active { + vertical-align: top; + text-align: center; + border: <?php echo "$relief_border2"; ?>; + background:<?php echo conf('bg_color2'); ?>; + } + #adminmenu a { + text-decoration: none; + } + #adminmenu a:hover { + color: <?php echo conf('bg_color1') ?>; + font-family: <?php echo $font?>; + text-decoration: underline; + } + #adminmenu a:active { + color: #000; + } +/*************** END Main Menu *************/ +/*************** Page Header *********************/ + #pageheader { + background: <?php echo conf('bgcolor1');?>; + } +/*************** END Page Header *****************/ + + td + { + padding: 0px 8px 0px 8px; + color: <?php echo conf('font_color2') ?>; + font-family: <?php echo $font?>; + font-size: <?php echo conf('font_size'); ?>px; + } + th + { + padding-right: 10px; + } + input + { + color: <?php echo conf('font_color2'); ?>; + font-family: <?php echo $font; ?>; + font-size: <?php echo conf('font_size'); ?>px; + font-weight: bold; + background-color: <?php echo conf('base_color2') ?>; + } + .header1 + { + color: <?php echo conf('font_color2'); ?>; + font-family: <?php echo $font; ?>; + font-size: <?php echo conf('font_size') + 6; ?>px; + font-weight: 900; + } + .header2 + { + color: <?php echo conf('font_color2'); ?>; + font-family: <?php echo $font; ?>; + font-size: <?php echo conf('font_size') + 2; ?>px; + font-weight: 900; + } + .navitem + { + background: <?php echo conf('base_color2')?>; + vertical-align: top; + text-align: center; + border: <?php echo "$relief_border"; ?>; + } + .active_navitem + { + background: <?php echo conf('bg_color2')?>; + vertical-align: top; + text-align: center; + border: <?php echo "$relief_border2"; ?>; + } + .odd + { + background:<?php echo conf('row_color2'); ?>; + font-size: <?php echo conf('font_size'); ?>px; + } + .even + { + background:<?php echo conf('row_color3'); ?>; + font-size: <?php echo conf('font_size'); ?>px; + } + .error + { + color: <?php echo conf('error_color'); ?>; + } + .fatalerror + { + padding-top: 3px; + padding-bottom: 3px; + color: <?php echo conf('error_color'); ?>; + border-right:4px solid <?php echo conf('error_color'); ?>; + border-bottom:4px solid <?php echo conf('error_color'); ?>; + border-left:4px solid <?php echo conf('error_color'); ?>; + border-top:4px solid <?php echo conf('error_color'); ?>; + font-size: <?php echo conf('font_size')+2; ?>px; + font-weight: 900; + text-align: center; + } + .alphabet + { + font-size: <?php echo conf('font_size'); ?>px; + font-weight: normal; + } +--> +</style> diff --git a/contrib/themes/borders/theme.cfg.php b/contrib/themes/borders/theme.cfg.php new file mode 100644 index 00000000..6e7a0d95 --- /dev/null +++ b/contrib/themes/borders/theme.cfg.php @@ -0,0 +1,71 @@ +################## +#<?php exit(); ?># +################## + +########################### +# Classic Ampache Theme +########################### + +# Theme Name +# This is the actual name of the theme that +# will be displayed in the preferences screen +# DEFAULT: ampache-theme +name = "Borders" + +# Theme Author +# This is just a way of giving credit to the +# person who actually created this theme +# DEFAULT: N/A +author = "Randy Perkins" + +# Theme Maintainer +# This is just a way of listing who is responsible for +# maintaining this theme incase it's not working right +# please include an e-mail address so you can be contacted +# DEFAULT: N/A +maintainer = "Randy Perkins <randyperkins@randyperkins.com>" + +# Theme Colors +################### +[color] +################### +# Below is a list of the default colors for this theme, upon +# applying this theme the users color preferences will be reset +# to what is listed below... + +# Background Color 1 +bg_color1 = "#06c7ee" + +# Background Color 2 +bg_color2 = "#ef9494" + +# Base Color 1 +base_color1 = "#aab3ff" + +# Base Color 2 +base_color2 = "#f0b3b3" + +# Font Color 1 +font_color1 = "#0000ee" + + +# Font Color 2 +font_color2 = "#000000" + +# Font Color 3 +font_color3 = "#551a8b" + +# Row Color 1 +# this is used in style.css in .headrow but .headrow is not used +# i am going to use it as a border color +row_color1 = "#ef4f4f" + +# Row Color 2 +row_color2 = "#e1afaf" + +# Row Color 3 +row_color3 = "#f9c1c1" + +# Error Color +error_color = "#990033" + |