Skip to content
Permalink
Browse files

fixes #12 add 8 new skins and set Newspaper as default skin

  • Loading branch information...
plegall committed Aug 6, 2019
1 parent ac1ef41 commit 2e67776c80c5bc43d49556143a91a9ba8b1326ad
Showing with 62,916 additions and 7 deletions.
  1. +36 −0 admin/admin.inc.php
  2. +46 −0 admin/modus_admin.tpl
  3. +7 −0 css/base.css.tpl
  4. +12 −0 css/hf_base.css
  5. +16 −0 css/menuh.css.tpl
  6. +17 −0 css/open-sans/README.md
  7. +24 −0 css/open-sans/bower.json
  8. BIN css/open-sans/fonts/Bold/OpenSans-Bold.eot
  9. +958 −0 css/open-sans/fonts/Bold/OpenSans-Bold.svg
  10. BIN css/open-sans/fonts/Bold/OpenSans-Bold.ttf
  11. BIN css/open-sans/fonts/Bold/OpenSans-Bold.woff
  12. BIN css/open-sans/fonts/Bold/OpenSans-Bold.woff2
  13. BIN css/open-sans/fonts/BoldItalic/OpenSans-BoldItalic.eot
  14. +958 −0 css/open-sans/fonts/BoldItalic/OpenSans-BoldItalic.svg
  15. BIN css/open-sans/fonts/BoldItalic/OpenSans-BoldItalic.ttf
  16. BIN css/open-sans/fonts/BoldItalic/OpenSans-BoldItalic.woff
  17. BIN css/open-sans/fonts/BoldItalic/OpenSans-BoldItalic.woff2
  18. +1 −0 css/open-sans/fonts/DESCRIPTION.en_us.html
  19. BIN css/open-sans/fonts/ExtraBold/OpenSans-ExtraBold.eot
  20. +21,059 −0 css/open-sans/fonts/ExtraBold/OpenSans-ExtraBold.svg
  21. BIN css/open-sans/fonts/ExtraBold/OpenSans-ExtraBold.ttf
  22. BIN css/open-sans/fonts/ExtraBold/OpenSans-ExtraBold.woff
  23. BIN css/open-sans/fonts/ExtraBold/OpenSans-ExtraBold.woff2
  24. BIN css/open-sans/fonts/ExtraBoldItalic/OpenSans-ExtraBoldItalic.eot
  25. +958 −0 css/open-sans/fonts/ExtraBoldItalic/OpenSans-ExtraBoldItalic.svg
  26. BIN css/open-sans/fonts/ExtraBoldItalic/OpenSans-ExtraBoldItalic.ttf
  27. BIN css/open-sans/fonts/ExtraBoldItalic/OpenSans-ExtraBoldItalic.woff
  28. BIN css/open-sans/fonts/ExtraBoldItalic/OpenSans-ExtraBoldItalic.woff2
  29. BIN css/open-sans/fonts/Italic/OpenSans-Italic.eot
  30. +958 −0 css/open-sans/fonts/Italic/OpenSans-Italic.svg
  31. BIN css/open-sans/fonts/Italic/OpenSans-Italic.ttf
  32. BIN css/open-sans/fonts/Italic/OpenSans-Italic.woff
  33. BIN css/open-sans/fonts/Italic/OpenSans-Italic.woff2
  34. +202 −0 css/open-sans/fonts/LICENSE.txt
  35. BIN css/open-sans/fonts/Light/OpenSans-Light.eot
  36. +958 −0 css/open-sans/fonts/Light/OpenSans-Light.svg
  37. BIN css/open-sans/fonts/Light/OpenSans-Light.ttf
  38. BIN css/open-sans/fonts/Light/OpenSans-Light.woff
  39. BIN css/open-sans/fonts/Light/OpenSans-Light.woff2
  40. BIN css/open-sans/fonts/LightItalic/OpenSans-LightItalic.eot
  41. +958 −0 css/open-sans/fonts/LightItalic/OpenSans-LightItalic.svg
  42. BIN css/open-sans/fonts/LightItalic/OpenSans-LightItalic.ttf
  43. BIN css/open-sans/fonts/LightItalic/OpenSans-LightItalic.woff
  44. BIN css/open-sans/fonts/LightItalic/OpenSans-LightItalic.woff2
  45. +103 −0 css/open-sans/fonts/METADATA.pb
  46. BIN css/open-sans/fonts/Regular/OpenSans-Regular.eot
  47. +958 −0 css/open-sans/fonts/Regular/OpenSans-Regular.svg
  48. BIN css/open-sans/fonts/Regular/OpenSans-Regular.ttf
  49. BIN css/open-sans/fonts/Regular/OpenSans-Regular.woff
  50. BIN css/open-sans/fonts/Regular/OpenSans-Regular.woff2
  51. BIN css/open-sans/fonts/Semibold/OpenSans-Semibold.eot
  52. +21,053 −0 css/open-sans/fonts/Semibold/OpenSans-Semibold.svg
  53. BIN css/open-sans/fonts/Semibold/OpenSans-Semibold.ttf
  54. BIN css/open-sans/fonts/Semibold/OpenSans-Semibold.woff
  55. BIN css/open-sans/fonts/Semibold/OpenSans-Semibold.woff2
  56. BIN css/open-sans/fonts/SemiboldItalic/OpenSans-SemiboldItalic.eot
  57. +958 −0 css/open-sans/fonts/SemiboldItalic/OpenSans-SemiboldItalic.svg
  58. BIN css/open-sans/fonts/SemiboldItalic/OpenSans-SemiboldItalic.ttf
  59. BIN css/open-sans/fonts/SemiboldItalic/OpenSans-SemiboldItalic.woff
  60. BIN css/open-sans/fonts/SemiboldItalic/OpenSans-SemiboldItalic.woff2
  61. +85 −0 css/open-sans/index.html
  62. +10 −0 css/open-sans/open-sans.css
  63. +90 −0 css/open-sans/open-sans.expanded.css
  64. +133 −0 css/open-sans/open-sans.less
  65. +90 −0 css/open-sans/open-sans.prefixed.css
  66. +12 −0 css/open-sans/open-sans.scss
  67. +2,653 −0 css/open-sans/package-lock.json
  68. +54 −0 css/open-sans/package.json
  69. +8 −0 css/open-sans/sass/_Bold.scss
  70. +8 −0 css/open-sans/sass/_BoldItalic.scss
  71. +8 −0 css/open-sans/sass/_ExtraBold.scss
  72. +8 −0 css/open-sans/sass/_ExtraBoldItalic.scss
  73. +8 −0 css/open-sans/sass/_Italic.scss
  74. +8 −0 css/open-sans/sass/_Light.scss
  75. +8 −0 css/open-sans/sass/_LightItalic.scss
  76. +8 −0 css/open-sans/sass/_Regular.scss
  77. +8 −0 css/open-sans/sass/_Semibold.scss
  78. +8 −0 css/open-sans/sass/_SemiboldItalic.scss
  79. +4 −0 css/open-sans/sass/_mixins.scss
  80. +2 −0 css/open-sans/sass/_variables.scss
  81. +12 −0 css/open-sans/sass/open-sans.scss
  82. +2 −2 functions.inc.php
  83. +7 −0 language/ar_SA/index.php
  84. +7 −0 language/bg_BG/index.php
  85. +7 −0 language/br_FR/index.php
  86. +7 −0 language/ca_ES/index.php
  87. +7 −0 language/cs_CZ/index.php
  88. +7 −0 language/da_DK/index.php
  89. +7 −0 language/el_GR/index.php
  90. +7 −0 language/it_IT/index.php
  91. +7 −0 language/pl_PL/index.php
  92. +7 −0 language/pt_PT/index.php
  93. BIN skins/blueberry-screenshot.jpg
  94. +1,149 −0 skins/blueberry.css
  95. +75 −0 skins/blueberry.inc.php
  96. BIN skins/cafe_latte-screenshot.jpg
  97. +1,123 −0 skins/cafe_latte.css
  98. +75 −0 skins/cafe_latte.inc.php
  99. BIN skins/clear-screenshot.jpg
  100. BIN skins/dark-screenshot.jpg
  101. BIN skins/dark_lagoon-screenshot.jpg
  102. BIN skins/dark_radish-screenshot.jpg
  103. BIN skins/dark_sky-screenshot.jpg
  104. BIN skins/debug-screenshot.jpg
  105. BIN skins/grey-screenshot.jpg
  106. BIN skins/neon_orange-screenshot.jpg
  107. +1,095 −0 skins/neon_orange.css
  108. +75 −0 skins/neon_orange.inc.php
  109. BIN skins/neon_pink-screenshot.jpg
  110. +1,097 −0 skins/neon_pink.css
  111. +75 −0 skins/neon_pink.inc.php
  112. BIN skins/newspaper-screenshot.jpg
  113. +925 −0 skins/newspaper.css
  114. +87 −0 skins/newspaper.inc.php
  115. BIN skins/quartz-screenshot.jpg
  116. +1,129 −0 skins/quartz.css
  117. +87 −0 skins/quartz.inc.php
  118. BIN skins/splash-screenshot.jpg
  119. +1,088 −0 skins/splash.css
  120. +63 −0 skins/splash.inc.php
  121. BIN skins/swimming_pool-screenshot.jpg
  122. +1,145 −0 skins/swimming_pool.css
  123. +75 −0 skins/swimming_pool.inc.php
  124. +7 −1 template/header.tpl
  125. +2 −2 template/thumbnails.tpl
  126. +7 −2 themeconf.inc.php
@@ -4,6 +4,8 @@
global $template;
include_once( dirname(dirname(__FILE__)).'/functions.inc.php');
include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
$default_conf = modus_get_default_config();
load_language('theme.lang', dirname(__FILE__).'/../');
@@ -42,6 +44,40 @@
$page['infos'][] = l10n('Information data registered in database');
}
// *************** tabs ********************
$tabs = array(
array(
'code' => 'config',
'label' => l10n('Configuration'),
),
);
$tab_codes = array_map(
function ($a) { return $a["code"]; },
$tabs
);
if (isset($_GET['tab']) and in_array($_GET['tab'], $tab_codes))
{
$page['tab'] = $_GET['tab'];
}
else
{
$page['tab'] = $tabs[0]['code'];
}
$tabsheet = new tabsheet();
foreach ($tabs as $tab)
{
$tabsheet->add(
$tab['code'],
$tab['label'],
'admin.php?page=theme&theme=modus'
);
}
$tabsheet->select($page['tab']);
$tabsheet->assign();
// *************** template init ********************
@@ -1,3 +1,4 @@
{include file='include/colorbox.inc.tpl'}
{combine_script id='common' load='footer' path='admin/themes/default/js/common.js'}
{combine_script id='jquery.ui.slider' require='jquery.ui' load='footer' path='themes/default/js/ui/minified/jquery.ui.slider.min.js'}
{combine_css path="themes/default/js/ui/theme/jquery.ui.slider.css"}
@@ -21,6 +22,26 @@
#album_square_thumbs {
margin-top:5px;
}

.themeShot {
margin:10px 0;
}
.themeShot img {
width: 280px;
}
.themeBox {
padding:5px 5px 10px 5px;
background-color: #e5e5e5;
}
.themeDefault {
background-color: #333;
}
.themeDefault .themeName {
color:#fff;
}
.themeDefault a {
color:#aaa;
}
{/html_style}


@@ -47,6 +68,12 @@ jQuery(document).ready(function() {
}
});

jQuery(".themeBoxes a").colorbox({ rel:'group1' });

jQuery("input[name='skin']").change(function() {
jQuery("input[name='skin']").parents(".themeBox").removeClass("themeDefault");
jQuery(this).parents(".themeBox").addClass("themeDefault");
});
});
{/footer_script}

@@ -56,9 +83,28 @@ jQuery(document).ready(function() {


<fieldset><legend>{'Skin'|translate}</legend>
<div class="themeBoxes font-checkbox">
{foreach from=$available_skins item=skin_name key=skin_code}
<div class="themeBox {if $skin_code==$SKIN}themeDefault{/if}">
<label class="font-checkbox">
<div class="themeName">
<span class="icon-dot-circled"></span>
<input type="radio" name="skin" value="{$skin_code}" {if $skin_code==$SKIN}checked{/if}>
{$skin_name}
</div>
<div class="themeShot">
<img src="{$ROOT_URL}themes/modus/skins/{$skin_code}-screenshot.jpg"/>
</div>
</label>
<a href="{$ROOT_URL}themes/modus/skins/{$skin_code}-screenshot.jpg" class="icon-zoom-in" title="{$skin_name}">{'Preview'|translate}</a>
</div>
{/foreach}
</div>
{*
<select name="skin">
{html_options options=$available_skins selected=$SKIN}
</select>
*}
</fieldset>

<fieldset><legend>{'Album thumbnails'|translate}</legend>
@@ -194,6 +194,13 @@ LEGEND {
}
{/if}
.titrePage H2 span.badge::before {
content:'[';
}
.titrePage H2 span.badge::after {
content:']';
}
.content .navigationBar, .content .additional_info, .content .calendarBar {
margin: 8px 4px;
text-align: center;
@@ -0,0 +1,12 @@
body {
display: flex;
flex-direction: column;
}
#menubar .menuInfoCat::before {
content:'';
}
#menubar .menuInfoCat::after {
content:'';
}
#content {flex: 1 0 auto;}
#copyright{flex-shrink: 0;}
@@ -15,6 +15,22 @@
font-weight: bold;
}

#menubar .menuInfoCat {
padding:0px 5px;
font-size: 90%;
border-radius: 20px;
font-weight: bold;
background-color: {$skin.menubar.badgeBackgroundColor};
color: {$skin.menubar.badgeColor};
}

#menubar .menuInfoCat::before {
content:'[';
}
#menubar .menuInfoCat::after {
content:']';
}

#menubar .menuInfoCatByChild {
font-size: 80%;
font-style: italic;
@@ -0,0 +1,17 @@
# Open Sans @font-face kit

I split the SASS file, so the developer can decide which fonts and styles she or he really needs.

Installable via [Bower](http://twitter.github.com/bower/):
```
bower install open-sans-fontface
```

## Demo
__Our repository:__ [http://fontfacekit.github.com/open-sans](http://fontfacekit.github.com/open-sans)

__Google Web Fonts:__ [http://www.google.com/fonts/specimen/Open+Sans](http://www.google.com/fonts/specimen/Open+Sans)


## Maintain your own font-face in FontFaceKit
Contact @gustavohenke if you want to maintain your own font-face in this repository.
@@ -0,0 +1,24 @@
{
"name": "open-sans-fontface",
"main": [
"./open-sans.css",
"./fonts/**/*"
],
"homepage": "https://github.com/FontFaceKit/open-sans",
"authors": [
"Gustavo Henke <gustavo@injoin.com.br>",
"Martin Domke <martin.domke@gateprotect.com>"
],
"description": "The Open Sans fontface",
"keywords": [
"font"
],
"license": "Apache License version 2.0",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
Binary file not shown.

0 comments on commit 2e67776

Please sign in to comment.
You can’t perform that action at this time.