Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit 3d15e2f

Browse files
author
SamBrishes
committed
Add Version 0.3.1
1 parent b2ebf6b commit 3d15e2f

File tree

11 files changed

+431
-96
lines changed

11 files changed

+431
-96
lines changed

CHANGELOG.md

Lines changed: 48 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,52 @@
11
CHANGELOG
22
===========
3-
##### Version 0.3.0
4-
* Info: Only tested with Wolf CMS 0.8.3(.1)!
5-
* Add: Configurable Navigation width
6-
* Add: 3 new admin color schemes
7-
* Add: Support for all core plugins.
8-
* Update: Dashicon Font 1.07
9-
* Update: Re-Display User Avatars
10-
* Update: Re-Display the "View this page" button
11-
* Update: Re-Display the "Last updated by" text
12-
* Update: "Page-Content-Parts" Selector Design
13-
* Update: Pseudo Widgets on Pages, Snippets and Layouts Form
14-
* Update: Replace file-type-images (File Manager)
15-
* Update: Tables and Buttons (Comments Plugin)
16-
* Update: Some icons are changed
17-
* Update: Normal label font-weight
18-
* Update: A few minor adjustments
19-
* Update: Back-End "Login" and "Forgot Password" Form
20-
* Update: Compatible with Opera 15 and IE 9
21-
* Update: Renamed "color" folder into "colors"
22-
* Update: Each admin color sheme + structure.
23-
* BugFix: Hover-Bug on Table-Lists and UL-Lists (Comments Plugin)
24-
* BugFix: Swapped Remove and Add link icons
25-
* BugFix: Design-Probs on a too large Counter Badge (Comments Plugin)
3+
###### Version 0.3.1 (Alpha)
4+
- Add: Themer plugin by [@svanlaere](https://github.com/svanlaere).
265

27-
##### Version 0.2.0
28-
* Info: Last Update for Wolf CMS Version 0.8.1 / 0.8.2!
29-
* Add: The other 7 WordPress admin color schemes.
30-
* Add: Colorized status types for Draft, Preview, Published, Hidden and Archived.
31-
* Add: Some missed (default) class-definitions.
32-
* Add: Design for the official Comment Plugin.
33-
* Update: Combine both editor stylesheets (+ Some adjustments).
34-
* Update: The 'Pseudo-Widgets' design on the 'Edit Page' page.
35-
* Update: Add general link (and link:hover) colors.
36-
* Update: Some files and codes were merged.
37-
* Update: The Input Fields and Button Sets.
38-
* Update: Some many other elements, colors, styles, ...
39-
* Removed: The color on non-linked plugin titles.
40-
* Removed: The parent-dependence on (almost) all elements.
41-
* Removed: The 'Add Snippet' and 'Add Layout' title buttons.
42-
* Removed: The 'View Page' title button on the 'Edit Page' Pages.
43-
* BugFix: Undesigned 'Add Snippet' and 'Add Layout' pages.
44-
* BugFix: Hover Bug on the level-0 'table row'.
45-
* BugFix: Removed User avatars, which destroys the table height.
46-
* BugFix: Some other Design-Bugs and "default css overrides".
6+
###### Version 0.3.0 (Alpha)
7+
- Info: Only tested with Wolf CMS 0.8.3(.1)!
8+
- Add: Configurable Navigation width
9+
- Add: 3 new admin color schemes
10+
- Add: Support for all core plugins.
11+
- Update: Dashicon Font 1.07
12+
- Update: Re-Display User Avatars
13+
- Update: Re-Display the "View this page" button
14+
- Update: Re-Display the "Last updated by" text
15+
- Update: "Page-Content-Parts" Selector Design
16+
- Update: Pseudo Widgets on Pages, Snippets and Layouts Form
17+
- Update: Replace file-type-images (File Manager)
18+
- Update: Tables and Buttons (Comments Plugin)
19+
- Update: Some icons are changed
20+
- Update: Normal label font-weight
21+
- Update: A few minor adjustments
22+
- Update: Back-End "Login" and "Forgot Password" Form
23+
- Update: Compatible with Opera 15 and IE 9
24+
- Update: Renamed "color" folder into "colors"
25+
- Update: Each admin color sheme + structure.
26+
- BugFix: Hover-Bug on Table-Lists and UL-Lists (Comments Plugin)
27+
- BugFix: Swapped Remove and Add link icons
28+
- BugFix: Design-Probs on a too large Counter Badge (Comments Plugin)
4729

48-
##### Version 0.1.0
49-
* First Alpha Version.
30+
###### Version 0.2.0 (Alpha)
31+
- Info: Last Update for Wolf CMS Version 0.8.1 / 0.8.2!
32+
- Add: The other 7 WordPress admin color schemes.
33+
- Add: Colorized status types for Draft, Preview, Published, Hidden and Archived.
34+
- Add: Some missed (default) class-definitions.
35+
- Add: Design for the official Comment Plugin.
36+
- Update: Combine both editor stylesheets (+ Some adjustments).
37+
- Update: The 'Pseudo-Widgets' design on the 'Edit Page' page.
38+
- Update: Add general link (and link:hover) colors.
39+
- Update: Some files and codes were merged.
40+
- Update: The Input Fields and Button Sets.
41+
- Update: Some many other elements, colors, styles, ...
42+
- Removed: The color on non-linked plugin titles.
43+
- Removed: The parent-dependence on (almost) all elements.
44+
- Removed: The 'Add Snippet' and 'Add Layout' title buttons.
45+
- Removed: The 'View Page' title button on the 'Edit Page' Pages.
46+
- BugFix: Undesigned 'Add Snippet' and 'Add Layout' pages.
47+
- BugFix: Hover Bug on the level-0 'table row'.
48+
- BugFix: Removed User avatars, which destroys the table height.
49+
- BugFix: Some other Design-Bugs and "default css overrides".
50+
51+
###### Version 0.1.0 (Alpha)
52+
- First Alpha Version.

README.md

Lines changed: 40 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,53 @@
11
WordPress 3.8 AdminTheme
22
===========================
3-
> Version: 0.3.0 Alpha<br />
4-
> Author: SamBrishes <[email protected]>
3+
> Version: 0.3.1 (Alpha)<br />
4+
> Author: SamBrishes <[email protected]>
55
66
Wolf + WordPress = <3?
77

8-
This AdminTheme dresses the Admin-Area of the Wolf CMS with a WordPress like garment. Tested with
9-
the Wolf CMS 0.3.8(.1) only, requires a CSS 3 capable browser!
10-
11-
## Screenshots
12-
Check out the [```./screenshots/```](https://github.com/SamBrishes/wolfcms-wordpress-admintheme/tree/master/screenshots)
13-
directory to see some ... screenshots!
14-
15-
## Features
16-
* [x] Open Sans and Dashicon Font (1.07)
17-
* [x] Many CSS 3 Stuff (Image Replacements, ...)
18-
* [x] 8 wp-original + 3 new admin color schemes
19-
* [x] Configurable Navigation Width
20-
* [x] Compatible with Chrome, Firefox 17+, Opera 15+ and IE 9
21-
* [x] Supports all Wolf-Core plugins
22-
23-
## Installation
24-
1. Download and Unpack the folder.
8+
This AdminTheme dresses the backend of the Wolf CMS 0.8.3(.1) in a WordPress like garment.<br />
9+
Check out the [Screenshot Directory](https://github.com/pawedWolf/wolfcms-wordpress-admintheme/tree/master/screenshots)
10+
to see how the WordPress AdminTheme looks like.
11+
12+
Features
13+
--------
14+
- Use the Open Sans and Dashicon Font (1.07).
15+
- Contains all 8 wp-original + 3 costum admin color schemes.
16+
- A few configurations to adapt and personalize the theme.
17+
- Optional Themer plugin, by [@svanlaere](https://github.com/svanlaere), to easily customize the admin theme.
18+
- Compatible with Chrome, Firefox 17+, Opera 15+ and IE 9
19+
- Supports all Wolf-Core plugins.
20+
21+
Installation
22+
------------
23+
1. Download and Unpack this Repository.
2524
2. Copy the "wordpress-3.8" folder to your ```wolf/admin/themes``` directory.
26-
3. Visit your old *Wolf CMS* Backend and go to the ```Administration``` > ```Settings``` page.
27-
4. Select the ```wordpress-3.8``` theme on the ```Administration Theme``` option.
28-
5. Click on the ```Save``` Button and view your new *Wolf CMS* Backend!
25+
3. Visit your old Wolf CMS Backend and go to the ```Administration``` > ```Settings``` page.
26+
4. Select the ```WordPress 3.8``` option on the ```Administration Theme``` dropdown field.
27+
5. Click on the ```Save``` button.
2928

30-
## Configuration
31-
Open the ```styles.css```stylesheet, located in the ```wordpress-3.8``` directory, in your
32-
favorite editor. Follow the instructions there.
29+
#### Themer Plugin
30+
To use the awesome themer plugin, developed by [@svanlaere](https://github.com/svanlaere):
3331

34-
#### Available Settings
35-
* Change the Navigation-Width
36-
* Available Sizes: Between 160 and 250 (10-Step-Way)
37-
* Change the admin color scheme
38-
* Default, Light, Blue, Coffee, Sunrise, Ectoplasm, Midnight, Ocean
39-
* (New in 0.3.0) Frog, Wolf, pytesNET
32+
1. Copy the "themer" folder to your ```wolf/plugins``` directory.
33+
2. Visit your old Wolf CMS Backend and go to the ```Administration``` > ```Plugins``` page.
34+
3. Enable the ```Themer``` plugin and click on ```Settings```.
35+
4. Personalize your ```WordPress 3.8``` admin theme.
4036

41-
## Browser Compatibility
42-
Tested, under an WinVista 32-Bit OS, with the following browsers:
37+
Configuration
38+
-------------
39+
Use the included ```themer``` plugin (see above) or open the main ```styles.css``` stylesheet,
40+
located in the ```wordpress-3.8``` directory, in your favorite editor and follow the instructions
41+
there.
4342

44-
* Google Chrome
45-
* Mozilla Firefox 17+
46-
* Opera Browser 15+
47-
* Internet Explorer 9
43+
#### Available Settings
44+
* Change the width of the left navigation.
45+
* Available Sizes: Between 160 and 260 (10-Step-Way)
46+
* Change the admin color scheme.
47+
* Default, Light, Blue, Coffee, Sunrise, Ectoplasm, Midnight, Ocean, Frog, Wolf, Fox, pytesNET
4848

49-
#### Untested Browsers
50-
* IE > 9 + Edge Browser
51-
* Safari Browser
52-
* Each Mobile Browser
53-
* Each other Desktop Browser
49+
---------------------------
5450

55-
#### Browser Log
56-
> **Chrome (< 40):** Can't find any older versions of Chrome.<br />
57-
> **Firefox (< 17):** Doesn't support (-moz-)box-sizing on table cells, [Bug](https://bugzilla.mozilla.org/show_bug.cgi?id=338554).<br />
58-
> **Opera (< 15):** Does anyone use Opera 12 or lower?<br />
59-
> **Internet Explorer (> 10):** IE 10 and above doesn't run on WinVista.<br />
60-
> **Internet Explorer (< 9):** Some CSS 3-Stuff aren't (fully) supported on IE 8 and below.<br />
61-
> **Edge:** The Edge Explorer doesn't run on WinVista.<br />
62-
> **Safari:** Don't own any Apple Device, Windows Support has discontinued.
51+
**Thanks for Using :3**
6352

64-
**Thanks for Using!**
53+
---------------------------

themer/ThemerController.php

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
<?php
2+
/*
3+
| pawFramework
4+
| @file ./ThemerController.php
5+
| @author svanlaere
6+
| @version 1.0.0 [1.0.0] - Stable
7+
|
8+
| @license X11 / MIT License
9+
| @copyright Copyright © 2015 pytesNET
10+
*/
11+
if(!defined("IN_CMS")){ exit(); }
12+
if(!isset($_SESSION)) { session_start(); }
13+
14+
error_reporting(E_ALL);
15+
16+
class ThemerController extends PluginController{
17+
/*
18+
| CHECK PERMISSIONS
19+
| @since 1.0.0
20+
*/
21+
private static function _checkPermission(){
22+
AuthUser::load();
23+
if(!AuthUser::isLoggedIn()){
24+
redirect(get_url("login")); die();
25+
}
26+
}
27+
28+
/*
29+
| CONSTRUCTOR
30+
| @since 1.0.0
31+
*/
32+
public function __construct(){
33+
// This allows us to check if we're being called in the front or the back.
34+
if(defined("CMS_BACKEND")){
35+
$this->setLayout('backend');
36+
$this->assignToLayout("sidebar", new View("../../plugins/themer/views/sidebar"));
37+
} else {
38+
$settings = Plugin::getAllSettings("themer");
39+
$layout = Layout::findById($settings["layout"]);
40+
$this->setLayout($layout->name);
41+
}
42+
}
43+
44+
/*
45+
| GET COLORS
46+
| @since 1.0.0
47+
*/
48+
public function getColors(){
49+
$themes = array();
50+
$dir = CORE_ROOT . "/admin/themes/wordpress-3.8/css/colors/";
51+
if(file_exists($dir)){
52+
if($handle = opendir($dir)){
53+
while(($file = readdir($handle)) !== false){
54+
if(strpos($file, ".") !== 0){
55+
$themes[$file] = Inflector::humanize($file);
56+
}
57+
}
58+
}
59+
closedir($handle);
60+
}
61+
asort($themes);
62+
63+
$themes = array_map(function($e){
64+
return pathinfo($e, PATHINFO_FILENAME);
65+
}, $themes);
66+
return $themes;
67+
}
68+
69+
/*
70+
| INDEX PAGE
71+
| @since 1.0.0
72+
*/
73+
public function index(){
74+
//$this->display("themer/views/index");
75+
}
76+
77+
/*
78+
| SETTINGS PAGE
79+
| @since 1.0.0
80+
*/
81+
public function settings(){
82+
$settings = Plugin::getAllSettings("themer");
83+
$this->display("themer/views/settings", array(
84+
"colors" => $this->getColors(),
85+
"settings" => Plugin::getAllSettings("themer")
86+
));
87+
}
88+
89+
/*
90+
| SAVE SETTINGS
91+
| @since 1.0.0
92+
*/
93+
function savesettings(){
94+
if(isset($_POST["settings"]) && isset($_POST["settings"]["action"])){
95+
$settings = array(
96+
"color" => "default.css",
97+
"sidebar_width" => "180"
98+
);
99+
if($_POST["settings"]["action"] != "reset"){
100+
foreach($_POST["settings"] as $key => $value) {
101+
if(in_array($key, array("color", "sidebar_width"))){
102+
$settings[$key] = mysql_escape_string($value);
103+
}
104+
}
105+
}
106+
107+
if(Plugin::setAllSettings($settings, "themer")){
108+
Flash::set("success", __("The settings have been saved."));
109+
} else {
110+
Flash::set("error", __("An error occured trying to save the settings."));
111+
}
112+
} else {
113+
Flash::set("error", __("Could not save settings, no settings found."));
114+
}
115+
redirect(get_url("plugin/themer/settings")); die();
116+
}
117+
}

themer/enable.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
/*
3+
| pawFramework
4+
| @file ./enable.php
5+
| @author svanlaere
6+
| @version 1.0.0 [1.0.0] - Stable
7+
|
8+
| @license X11 / MIT License
9+
| @copyright Copyright © 2015 pytesNET
10+
*/
11+
if(!defined("IN_CMS")){ exit(); }
12+
13+
$themename = "wordpress-3.8";
14+
$themes = Setting::getThemes();
15+
16+
if(!array_key_exists($themename, $themes)){
17+
Plugin::deactivate("themer");
18+
Flash::set("error", __("This plugin requires the :themename admin theme!"));
19+
} else {
20+
$settings = array(
21+
"color" => "default.css",
22+
"sidebar_width" => "180"
23+
);
24+
Plugin::setAllSettings($settings, "themer");
25+
}
26+
27+
if(version_compare(PHP_VERSION, "5.3.0") <= 0){
28+
Plugin::deactivate("themer");
29+
Flash::set("error", __("This plugin requires PHP 5.3 or higher!"));
30+
}

themer/i18n/de-message.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
/*
3+
| Themer i18n Translation File
4+
| @file ./i18n/de-message.php
5+
| @author SamBrishes <[email protected]>
6+
| @version 1.0.0 - Stable
7+
| @creator pawDEV I18N Creator Tool
8+
| by pytesNET
9+
*/
10+
if(!defined("IN_CMS")){ die(); }
11+
12+
$return = array();
13+
14+
$return["This plugin requires the :themename admin theme!"] = "Dieses Plugin erfordert das :themename Admin Design!";
15+
$return["This plugin requires PHP 5.3 or higher!"] = "Dieses Plugin erfordert PHP 5.3 oder besser!";
16+
$return["A WordPress AdminTheme configuration plugin."] = "Ein WordPress Admin-Design Konfigurationsplugin.";
17+
$return["Wordpress admin theme"] = "WordPress Admin Design";
18+
$return["The settings have been saved."] = "Die Einstellungen wurden gespeichert.";
19+
$return["An error occured trying to save the settings."] = "Ein Fehler trat beim Speichern der Einstellungen auf.";
20+
$return["Could not save settings, no settings found."] = "Fehler: Keine Einstellungen gefunden.";
21+
$return["Settings for Wordpress admin theme"] = "Einstellungen für das WordPress Admin Design";
22+
$return["Sidebar width"] = "Sidebar Breite";
23+
$return["Set your desired value in pixels. Default value: 180"] = "Trage die gewünschte Breite in Pixel ein. Standard: 180";
24+
$return["Color scheme"] = "Farbschema";
25+
$return["Set your favorite colorscheme. Default value: Default"] = "Wähle das gewünschte Farbschema. Standard: Default";
26+
$return["Save Settings"] = "Einstellungen Speichern";
27+
$return["Reset Settings"] = "Einstellungen Zurücksetzen";
28+
29+
return $return;

0 commit comments

Comments
 (0)