{"id":32150,"date":"2014-10-10T16:26:48","date_gmt":"2014-10-10T16:26:48","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/admin-color-schema\/"},"modified":"2014-12-22T19:09:43","modified_gmt":"2014-12-22T19:09:43","slug":"admin-color-schema","status":"closed","type":"plugin","link":"https:\/\/en-gb.wordpress.org\/plugins\/admin-color-schema\/","author":14078747,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.4.3","stable_tag":"0.4.4","tested":"4.1.0","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"Hyyan Admin Color Schema","header_author":"Hyyan Abo Fakher","header_description":"","assets_banners_color":"","last_updated":"2014-12-22 19:09:43","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/hyyan\/admin-color-schema\/","header_author_uri":"https:\/\/github.com\/hyyan","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1949,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.4","0.4.1","0.4.2","0.4.3","0.4.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1539218","resolution":"1","location":"plugin"}},"screenshots":{"1":"Showing the dark example"}},"plugin_section":[],"plugin_tags":[83,3791,1257,3706,3792],"plugin_category":[],"plugin_contributors":[81435],"plugin_business_model":[],"class_list":["post-32150","plugin","type-plugin","status-closed","hentry","plugin_tags-admin","plugin_tags-admin-color-scheme","plugin_tags-color","plugin_tags-color-scheme","plugin_tags-scheme","plugin_contributors-hyyan","plugin_committers-hyyan"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/admin-color-schema.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/admin-color-schema\/trunk\/screenshot-1.png?rev=1539218","caption":"Showing the dark example"}],"raw_content":"<!--section=description-->\n<p>The plugin to enable wordpress themes to add its own admin color schemas directly from theme<\/p>\n\n<p><strong>Features<\/strong><\/p>\n\n<ol>\n<li>Adding new admin color shemas directly with theme<\/li>\n<li>Activating specific admin color schema for every new registered user automatically<\/li>\n<li>Removing admin color picker from users profile<\/li>\n<li>Applying selected admin color shema on the wordpress adminbar in the frontend<\/li>\n<\/ol>\n\n<p><strong>What I need<\/strong><\/p>\n\n<p>You will need <em>scss<\/em> for fast theme generating based on the wordpress scss files,\nBut of course you can still use normal CSS file.<\/p>\n\n<p><strong>Contributing<\/strong><\/p>\n\n<p>Everyone is welcome to help contribute and improve this plugin. There are several \nways you can contribute:<\/p>\n\n<ul>\n<li>Reporting issues (please read <a href=\"https:\/\/github.com\/necolas\/issue-guidelines\">issue guidelines<\/a>)<\/li>\n<li>Suggesting new features<\/li>\n<li>Writing or refactoring code<\/li>\n<li>Fixing <a href=\"https:\/\/github.com\/hyyan\/admin-color-schema\/issues\">issues<\/a><\/li>\n<\/ul>\n\n<p><strong>Eaxmple<\/strong><\/p>\n\n<p>The plugin comes with an example to see how the plugin works , it is under example\/Dark folder.<\/p>\n\n<p>To use the example :<\/p>\n\n<ol>\n<li>Copy example\/Dark to your\/theme\/folder\/color-schema\/Dark<\/li>\n<li>Activate the new schema from you profile<\/li>\n<\/ol>\n\n<p><strong>Plugin configutaion<\/strong><\/p>\n\n<p>The plugin comes with following configuration as default :<\/p>\n\n<pre><code>&lt;? php\n$default = array(\n    \/\/ path relative to the theme dir \n    'path' =&gt; '\/color-schema',\n    \/\/ default color-schema to activate for every new user\n    'default' =&gt; '',\n    \/\/ if true the user will be no more able to change its dashboard color schema\n    \/\/ and the default one will be used\n    'disable_color_picker' =&gt; false,\n    \/\/ enable color-schema on fontend\n    'enbale-on-frontend' =&gt; true,\n);\n?&gt;\n<\/code><\/pre>\n\n<p>You can override the default configuration using <em>add_filter<\/em> function like \nin the following example :<\/p>\n\n<pre><code>&lt;?php\n\n\/\/ in the your theme's functions.php file\nadd_filter('Hyyan\\AdminColorSchema.options', function(array $default) {\n\n    \/\/ read schemas from \"admin-color-schema\" folder relative to current theme\n    $default['path'] = '\/admin-color-schema';\n\n    \/\/ use Bluetheme as default schema for every new user\n    $default['default'] = 'BlueTheme';\n\n    return $default;\n});\n?&gt;\n<\/code><\/pre>\n\n<p><strong>Create new schema<\/strong><\/p>\n\n<p>If you are using the default path in the plugin configuration then :<\/p>\n\n<ol>\n<li>Create <em>color-schema<\/em> in your theme root dir<\/li>\n<li>Create new schema dir for example : <em>(vivid)<\/em> in the <em>color-schema<\/em> dir<\/li>\n<li>Create <em>schema.ini<\/em> file and configure it <\/li>\n<li><p>create <em>colors.scss<\/em> then complie it into <code>colors.css<\/code><\/p>\n\n<p>; schema.ini\n; ==============\n; \n; the name of your theme if not set the current dir name will  be used\n; for example if your theme live in \"color-schema\/vivid\" then \"vivid\" will be used as name of theme\nname= my create theme<\/p>\n\n<p>;your translaion domain if not set the 'defualt' domain will be used\n;the domain will be used to translate the theme name\ndomain= default<\/p>\n\n<p>; colors preview (4 colors)\ncolors []= #52accc\ncolors []= #e5f8ff\ncolors []= #096484\ncolors []= #e1a948<\/p>\n\n<p>; icons colors preview (4 colors)\nicons []= #52accc\nicons []= #e5f8ff\nicons []= #096484\nicons []= #e1a948<\/p>\n\n<p>\/\/ colors.scss\n\/\/ ============<\/p>\n\n<p>$base-color: #52accc;\n$icon-color: #e5f8ff;\n$highlight-color: #096484;\n$notification-color: #e1a948;\n$button-color: #e1a948;<\/p>\n\n<p>$menu-submenu-text: #e2ecf1;\n$menu-submenu-focus-text: #fff;\n$menu-submenu-background: #4796b3;<\/p>\n\n<p>\/\/ require the path relative to your wordpres (wp-admin) folder\n@import \".....\/wp-admin\/css\/colors\/_admin.scss\";<\/p><\/li>\n<\/ol>\n\n<p>You are done ...<\/p>\n\n<p>Go to your profile now and you will see your new color schema whiche you can \nactivate\n\u00a0<\/p>\n\n<!--section=installation-->\n<p><strong>Classical Way<\/strong><\/p>\n\n<p>Extract the zip file and just drop the contents in the wp-content\/plugins\/ directory of your WordPress installation and then activate the Plugin from Plugins page.<\/p>\n\n<h3>Composer way<\/h3>\n\n<ol>\n<li>run composer command : <code>composer require hyyan\/admin-color-schema<\/code><\/li>\n<\/ol>\n\n<!--section=changelog-->\n<p>=0.4.4=<\/p>\n\n<ul>\n<li>Tested on wordpress 4.1.0<\/li>\n<\/ul>\n\n<p>=0.4.3=<\/p>\n\n<ul>\n<li>Fixed notice message when schema can't be loaded<\/li>\n<\/ul>\n\n<p>=0.4.2=<\/p>\n\n<ul>\n<li>Prevented direct access for the plugin file<\/li>\n<\/ul>\n\n<p>=0.4.1=<\/p>\n\n<ul>\n<li>Fixed errors in the wordpress text file<\/li>\n<\/ul>\n\n<p>=0.4=<\/p>\n\n<ul>\n<li>Added support for wordpress repository<\/li>\n<\/ul>\n\n<p>=0.4=<\/p>\n\n<p>*Added support for wordpress repository<\/p>\n\n<p>=0.3=<\/p>\n\n<ul>\n<li>Changed the plugin name to <code>Hyyan Admin Color Schema<\/code><\/li>\n<\/ul>\n\n<p>=0.2=<\/p>\n\n<p>The release is the same as <code>0.1.1<\/code> but <code>0.1.1<\/code> is wrong release according\nto the semantic versioning specification<\/p>\n\n<p>=0.1.1=<\/p>\n\n<ul>\n<li>Added support for \"github-updater\" plugin<\/li>\n<li>prevented \"removeColorPicker\" method from checking if user can manage options<\/li>\n<\/ul>","raw_excerpt":"Enable wordpress theme to add its own admin color schemas directly from theme","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/32150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=32150"}],"author":[{"embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/hyyan"}],"wp:attachment":[{"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=32150"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=32150"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=32150"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=32150"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=32150"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/en-gb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=32150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}