Changeset 2133621
- Timestamp:
- 08/04/2019 02:10:35 PM (7 years ago)
- Location:
- admin-panel-background-color
- Files:
-
- 79 added
- 16 edited
-
assets/banner-772x250.jpg (added)
-
assets/icon-128x128.png (added)
-
assets/icon-256x256.png (added)
-
assets/screenshot-1.png (added)
-
trunk/README.txt (modified) (1 diff)
-
trunk/admin-panel-background-color.php (modified) (1 diff)
-
trunk/admin/js/admin.js (modified) (1 diff)
-
trunk/composer.json (modified) (1 diff)
-
trunk/src/Admin.php (modified) (9 diffs)
-
trunk/src/I18n.php (modified) (1 diff)
-
trunk/src/Loader.php (modified) (1 diff)
-
trunk/src/Main.php (modified) (2 diffs)
-
trunk/src/PublicClass.php (modified) (1 diff)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/ClassLoader.php (modified) (6 diffs)
-
trunk/vendor/composer/LICENSE (modified) (1 diff)
-
trunk/vendor/composer/autoload_classmap.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/scssphp (added)
-
trunk/vendor/scssphp/.travis.yml (added)
-
trunk/vendor/scssphp/LICENSE.md (added)
-
trunk/vendor/scssphp/Makefile (added)
-
trunk/vendor/scssphp/README.md (added)
-
trunk/vendor/scssphp/composer.json (added)
-
trunk/vendor/scssphp/phpunit.xml.dist (added)
-
trunk/vendor/scssphp/pscss (added)
-
trunk/vendor/scssphp/scss.inc.php (added)
-
trunk/vendor/scssphp/tests (added)
-
trunk/vendor/scssphp/tests/ApiTest.php (added)
-
trunk/vendor/scssphp/tests/ExceptionTest.php (added)
-
trunk/vendor/scssphp/tests/InputTest.php (added)
-
trunk/vendor/scssphp/tests/compare-scss.sh (added)
-
trunk/vendor/scssphp/tests/inputs (added)
-
trunk/vendor/scssphp/tests/inputs/builtins.scss (added)
-
trunk/vendor/scssphp/tests/inputs/comments.scss (added)
-
trunk/vendor/scssphp/tests/inputs/compass_extract.scss (added)
-
trunk/vendor/scssphp/tests/inputs/content.scss (added)
-
trunk/vendor/scssphp/tests/inputs/content_with_function.scss (added)
-
trunk/vendor/scssphp/tests/inputs/default_args.scss (added)
-
trunk/vendor/scssphp/tests/inputs/directives.scss (added)
-
trunk/vendor/scssphp/tests/inputs/extends.scss (added)
-
trunk/vendor/scssphp/tests/inputs/filter_effects.scss (added)
-
trunk/vendor/scssphp/tests/inputs/functions.scss (added)
-
trunk/vendor/scssphp/tests/inputs/ie7.scss (added)
-
trunk/vendor/scssphp/tests/inputs/if.scss (added)
-
trunk/vendor/scssphp/tests/inputs/if_on_null.scss (added)
-
trunk/vendor/scssphp/tests/inputs/import.scss (added)
-
trunk/vendor/scssphp/tests/inputs/imports (added)
-
trunk/vendor/scssphp/tests/inputs/imports/_partial.scss (added)
-
trunk/vendor/scssphp/tests/inputs/imports/simple.scss (added)
-
trunk/vendor/scssphp/tests/inputs/interpolation.scss (added)
-
trunk/vendor/scssphp/tests/inputs/keyword_args.scss (added)
-
trunk/vendor/scssphp/tests/inputs/list.scss (added)
-
trunk/vendor/scssphp/tests/inputs/looping.scss (added)
-
trunk/vendor/scssphp/tests/inputs/media.scss (added)
-
trunk/vendor/scssphp/tests/inputs/mixins.scss (added)
-
trunk/vendor/scssphp/tests/inputs/nesting.scss (added)
-
trunk/vendor/scssphp/tests/inputs/null.scss (added)
-
trunk/vendor/scssphp/tests/inputs/operators.scss (added)
-
trunk/vendor/scssphp/tests/inputs/placeholder_selector.scss (added)
-
trunk/vendor/scssphp/tests/inputs/scss_css.scss (added)
-
trunk/vendor/scssphp/tests/inputs/selectors.scss (added)
-
trunk/vendor/scssphp/tests/inputs/values.scss (added)
-
trunk/vendor/scssphp/tests/inputs/variables.scss (added)
-
trunk/vendor/scssphp/tests/outputs (added)
-
trunk/vendor/scssphp/tests/outputs/builtins.css (added)
-
trunk/vendor/scssphp/tests/outputs/comments.css (added)
-
trunk/vendor/scssphp/tests/outputs/compass_extract.css (added)
-
trunk/vendor/scssphp/tests/outputs/content.css (added)
-
trunk/vendor/scssphp/tests/outputs/content_with_function.css (added)
-
trunk/vendor/scssphp/tests/outputs/default_args.css (added)
-
trunk/vendor/scssphp/tests/outputs/directives.css (added)
-
trunk/vendor/scssphp/tests/outputs/extends.css (added)
-
trunk/vendor/scssphp/tests/outputs/filter_effects.css (added)
-
trunk/vendor/scssphp/tests/outputs/functions.css (added)
-
trunk/vendor/scssphp/tests/outputs/ie7.css (added)
-
trunk/vendor/scssphp/tests/outputs/if.css (added)
-
trunk/vendor/scssphp/tests/outputs/if_on_null.css (added)
-
trunk/vendor/scssphp/tests/outputs/import.css (added)
-
trunk/vendor/scssphp/tests/outputs/interpolation.css (added)
-
trunk/vendor/scssphp/tests/outputs/keyword_args.css (added)
-
trunk/vendor/scssphp/tests/outputs/list.css (added)
-
trunk/vendor/scssphp/tests/outputs/looping.css (added)
-
trunk/vendor/scssphp/tests/outputs/media.css (added)
-
trunk/vendor/scssphp/tests/outputs/mixins.css (added)
-
trunk/vendor/scssphp/tests/outputs/nesting.css (added)
-
trunk/vendor/scssphp/tests/outputs/null.css (added)
-
trunk/vendor/scssphp/tests/outputs/operators.css (added)
-
trunk/vendor/scssphp/tests/outputs/placeholder_selector.css (added)
-
trunk/vendor/scssphp/tests/outputs/scss_css.css (added)
-
trunk/vendor/scssphp/tests/outputs/selectors.css (added)
-
trunk/vendor/scssphp/tests/outputs/values.css (added)
-
trunk/vendor/scssphp/tests/outputs/variables.css (added)
Legend:
- Unmodified
- Added
- Removed
-
admin-panel-background-color/trunk/README.txt
r1876275 r2133621 1 1 === Plugin Name === 2 2 Contributors: castellar120 3 Requires at least: 4.9.54 Tested up to: 4.9.53 Requires at least: 5.2.2 4 Tested up to: 5.2.2 5 5 Stable tag: trunk 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html 8 8 9 Plugin that makes possible to customize background color of the admin panel. Optionfor that will appear under profile page (Path from admin panel main menu is Users -> Your Profile).9 Plugin that makes possible to customize color scheme of the admin panel. Options for that will appear under profile page (Path from admin panel main menu is Users -> Your Profile). 10 10 11 11 == Description == 12 12 13 Plugin that makes possible to customize background color of the admin panel. Optionfor that will appear under profile page (Path from admin panel main menu is Users -> Your Profile).13 Plugin that makes possible to customize color scheme of the admin panel. Options for that will appear under profile page (Path from admin panel main menu is Users -> Your Profile). -
admin-panel-background-color/trunk/admin-panel-background-color.php
r1876278 r2133621 15 15 * Domain Path: /languages 16 16 */ 17 session_start(); 17 18 18 19 require "vendor/autoload.php"; 19 20 use Casia\Abcolor\Main;21 20 22 21 // If this file is called directly, abort. -
admin-panel-background-color/trunk/admin/js/admin.js
r1876297 r2133621 30 30 */ 31 31 $('body').css('background-color',phpVars.activeBackground); 32 33 var abcolorColor1Options = { 34 defaultColor: false, 35 change: function(event, ui){ 36 // We can also pass the url value separately from ajaxurl for front end AJAX implementations 37 //Some event will trigger the ajax call, you can push whatever data to the server, simply passing it to the "data" object in ajax call 38 $.ajax({ 39 url: phpVars.ajaxurl, // this is the object instantiated in wp_localize_script function 40 data:{ 41 'action': 'compileScssAjax', // this is the function in your functions.php that will be triggered, 42 'c1': '#' + ui.color._color.toString(16) 43 }, 44 success: function( response ) 45 { 46 $('.abcolor_style').text(response); 47 } 48 }); 49 }, 50 clear: function() {}, 51 hide: true, 52 palettes: true 53 }; 54 55 var abcolorColor2Options = { 56 defaultColor: false, 57 change: function(event, ui){ 58 $.ajax({ 59 url: phpVars.ajaxurl, // this is the object instantiated in wp_localize_script function 60 data:{ 61 'action': 'compileScssAjax', // this is the function in your functions.php that will be triggered, 62 'c2': '#' + ui.color._color.toString(16) 63 }, 64 success: function( response ) 65 { 66 $('.abcolor_style').text(response); 67 } 68 }); 69 }, 70 clear: function() {}, 71 hide: true, 72 palettes: true 73 }; 74 75 var abcolorColor3Options = { 76 defaultColor: false, 77 change: function(event, ui){ 78 $.ajax({ 79 url: phpVars.ajaxurl, // this is the object instantiated in wp_localize_script function 80 data:{ 81 'action': 'compileScssAjax', // this is the function in your functions.php that will be triggered, 82 'c3': '#' + ui.color._color.toString(16) 83 }, 84 success: function( response ) 85 { 86 $('.abcolor_style').text(response); 87 } 88 }); 89 }, 90 clear: function() {}, 91 hide: true, 92 palettes: true 93 }; 94 95 var abcolorColor4Options = { 96 defaultColor: false, 97 change: function(event, ui){ 98 $.ajax({ 99 url: phpVars.ajaxurl, // this is the object instantiated in wp_localize_script function 100 data:{ 101 'action': 'compileScssAjax', // this is the function in your functions.php that will be triggered, 102 'c4': '#' + ui.color._color.toString(16) 103 }, 104 success: function( response ) 105 { 106 $('.abcolor_style').text(response); 107 } 108 }); 109 }, 110 clear: function() {}, 111 hide: true, 112 palettes: true 113 }; 114 115 $("#abcolor_color1").wpColorPicker(abcolorColor1Options); 116 $("#abcolor_color2").wpColorPicker(abcolorColor2Options); 117 $("#abcolor_color3").wpColorPicker(abcolorColor3Options); 118 $("#abcolor_color4").wpColorPicker(abcolorColor4Options); 119 120 $('#abcolor_color1').iris('color', phpVars.color1); 121 $('#abcolor_color2').iris('color', phpVars.color2); 122 $('#abcolor_color3').iris('color', phpVars.color3); 123 $('#abcolor_color4').iris('color', phpVars.color4); 32 124 }); 33 125 })( jQuery ); -
admin-panel-background-color/trunk/composer.json
r1876275 r2133621 3 3 "type": "wordpress-plugin", 4 4 "description": "Plugin that makes possible to customize background color of the admin panel.", 5 "autoload": { 6 "psr-4": { 7 "Casia\\Abcolor\\": "src/" 5 "autoload": { 6 "classmap": ["src/", "vendor/scssphp/"] 8 7 } 9 }10 8 } -
admin-panel-background-color/trunk/src/Admin.php
r1876297 r2133621 1 1 <?php 2 3 namespace Casia\Abcolor;4 2 5 3 /** … … 38 36 39 37 /** 38 * First default color. 39 * 40 * @since 1.0.0 41 * @access private 42 * @var string $color1 First default color. 43 */ 44 private $color1; 45 46 /** 47 * Second default color. 48 * 49 * @since 1.0.0 50 * @access private 51 * @var string $color2 Second default color. 52 */ 53 private $color2; 54 55 /** 56 * Third default color. 57 * 58 * @since 1.0.0 59 * @access private 60 * @var string $color3 Third default color. 61 */ 62 private $color3; 63 64 /** 65 * Fourth default color. 66 * 67 * @since 1.0.0 68 * @access private 69 * @var string $color4 Fourth default color. 70 */ 71 private $color4; 72 73 74 /** 40 75 * Initialize the class and set its properties. 41 76 * … … 50 85 $this->version = $version; 51 86 87 $this->color1 = '#23282d'; 88 $this->color2 = '#a0a5aa'; 89 $this->color3 = '#1981b2'; 90 $this->color4 = '#d54e21'; 91 52 92 $this->getCurrentBackground(); 53 93 } … … 80 120 { 81 121 // Register the script 82 wp_register_script($this->plugin_name, plugins_url() . '/admin-panel-background-color/admin/js/admin.js', array('jquery', 'colorpicker/js' ), $this->version, false);122 wp_register_script($this->plugin_name, plugins_url() . '/admin-panel-background-color/admin/js/admin.js', array('jquery', 'colorpicker/js', 'wp-color-picker'), $this->version, false); 83 123 84 124 // Localize the script with new data 85 125 $varArray = array( 86 126 'activeBackground' => __($this->$activeBackgroundColor, 'abcolor'), 87 'pluginsUrl' => plugins_url() 127 'pluginsUrl' => plugins_url(), 128 'ajaxurl' => admin_url( 'admin-ajax.php' ), 129 'color1' => $this->getUserMeta($this->getCurrentUserId(), 'abcolor_color1', $this->color1), 130 'color2' => $this->getUserMeta($this->getCurrentUserId(), 'abcolor_color2', $this->color2), 131 'color3' => $this->getUserMeta($this->getCurrentUserId(), 'abcolor_color3', $this->color3), 132 'color4' => $this->getUserMeta($this->getCurrentUserId(), 'abcolor_color4', $this->color4), 88 133 ); 89 134 wp_localize_script($this->plugin_name, 'phpVars', $varArray); … … 94 139 95 140 wp_enqueue_script('colorpicker/js', plugins_url() . '/admin-panel-background-color/admin/js/HSV-HEX-Color-Picker-jQuery/jquery.colorpicker.js', array( 'jquery' ), $this->version, false); 141 } 142 143 /** 144 * Check if user is on his/her own profile page. 145 * 146 * @since 1.0.0 147 * @access public 148 * @return bool TRUE if user is on his/her own profile page, false otherwise. 149 */ 150 public function isOnOwnProfile() 151 { 152 $url = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; 153 154 return strpos($url,'wp-admin/profile.php'); 155 } 156 157 /** 158 * Hide default admin color schemes. 159 * 160 * @since 1.0.0 161 * @access public 162 */ 163 public function hideDefaultColorSchemes() 164 { 165 global $_wp_admin_css_colors; 166 $_wp_admin_css_colors = 0; 96 167 } 97 168 … … 105 176 public function addUserExtraFields($user_id) 106 177 { 178 if($this->isOnOwnProfile()) { 107 179 ?> 180 <h3><?php _e("Create custom color scheme", "abcolor"); ?></h3> 181 <table> 182 <tr> 183 <input name="abcolor_color1" type="text" id="abcolor_color1" attr-field="abcolor_color1"/> 184 </tr> 185 <tr> 186 <input name="abcolor_color2" type="text" id="abcolor_color2" attr-field="abcolor_color2"/> 187 </tr> 188 <tr> 189 <input name="abcolor_color3" type="text" id="abcolor_color3" attr-field="abcolor_color3"/> 190 </tr> 191 <tr> 192 <input name="abcolor_color4" type="text" id="abcolor_color4" attr-field="abcolor_color4"/> 193 </tr> 194 </table> 195 <br> 108 196 <h3><?php _e("Select background color of admin panel", "abcolor"); ?></h3> 109 197 … … 122 210 </table> 123 211 <?php 212 } 124 213 } 125 214 … … 143 232 144 233 update_user_meta($cuid, 'admin_color_background', $newBackground); 234 235 236 $abcolor_color1 = $_POST['abcolor_color1']; 237 $abcolor_color2 = $_POST['abcolor_color2']; 238 $abcolor_color3 = $_POST['abcolor_color3']; 239 $abcolor_color4 = $_POST['abcolor_color4']; 240 241 242 if (!empty($abcolor_color1)) { 243 update_user_meta($cuid, 'abcolor_color1', $abcolor_color1); 244 } 245 246 if (!empty($abcolor_color2)) { 247 update_user_meta($cuid, 'abcolor_color2', $abcolor_color2); 248 } 249 250 if (!empty($abcolor_color3)) { 251 update_user_meta($cuid, 'abcolor_color3', $abcolor_color3); 252 } 253 254 if (!empty($abcolor_color4)) { 255 update_user_meta($cuid, 'abcolor_color4', $abcolor_color4); 256 } 257 258 $newCss = $this->compileScss(array('color1' => $abcolor_color1, 'color2' => $abcolor_color2, 'color3' => $abcolor_color3, 'color4' => $abcolor_color4)); 259 260 update_user_meta($cuid, 'abcolor_css', $newCss); 261 } 262 263 /** 264 * Get user meta but with default value. 265 * 266 * @since 1.0.0 267 * @access public 268 */ 269 public function getUserMeta(int $user_id, string $key = '', $default = false) 270 { 271 $userMeta = get_user_meta($user_id, $key, true); 272 273 if (!$userMeta) { 274 $userMeta = $default; 275 } 276 277 return $userMeta; 278 } 279 280 /** 281 * Compile scss. 282 * 283 * @since 1.0.0 284 * @access public 285 */ 286 public function compileScss($colors) 287 { 288 $scss = new scssc(); 289 290 if (empty($colors['color1'])) { 291 $color1 = $this->getUserMeta($this->getCurrentUserId(), 'abcolor_color1', $this->color1); 292 } else { 293 $color1 = $colors['color1']; 294 } 295 296 if (empty($colors['color2'])) { 297 $color2 = $this->getUserMeta($this->getCurrentUserId(), 'abcolor_color2', $this->color2); 298 } else { 299 $color2 = $colors['color2']; 300 } 301 302 if (empty($colors['color3'])) { 303 $color3 = $this->getUserMeta($this->getCurrentUserId(), 'abcolor_color3', $this->color3); 304 } else { 305 $color3 = $colors['color3']; 306 } 307 308 if (empty($colors['color4'])) { 309 $color4 = $this->getUserMeta($this->getCurrentUserId(), 'abcolor_color4', $this->color4); 310 } else { 311 $color4 = $colors['color4']; 312 } 313 314 $tempsass = $scss->compile(' 315 $base-color:' . $color1 .'; 316 $icon-color:' . $color2 .'; 317 $highlight-color:' . $color3 .'; 318 $notification-color:' . $color4 .'; 319 320 // assign default value to all undefined variables 321 322 323 // core variables 324 325 $text-color: #fff !default; 326 $base-color: #23282d !default; 327 $icon-color: hsl( hue( $base-color ), 7%, 95% ) !default; 328 $highlight-color: #0073aa !default; 329 $notification-color: #d54e21 !default; 330 331 332 // global 333 334 $body-background: #f1f1f1 !default; 335 336 $link: #0073aa !default; 337 $link-focus: lighten( $link, 10% ) !default; 338 339 $button-color: $highlight-color !default; 340 $form-checked: $highlight-color !default; 341 342 343 // admin menu & admin-bar 344 345 $menu-text: $text-color !default; 346 $menu-icon: $icon-color !default; 347 $menu-background: $base-color !default; 348 349 $menu-highlight-text: $text-color !default; 350 $menu-highlight-icon: $text-color !default; 351 $menu-highlight-background: $highlight-color !default; 352 353 $menu-current-text: $menu-highlight-text !default; 354 $menu-current-icon: $menu-highlight-icon !default; 355 $menu-current-background: $menu-highlight-background !default; 356 357 $menu-submenu-text: mix( $base-color, $text-color, 30% ) !default; 358 $menu-submenu-background: darken( $base-color, 7% ) !default; 359 $menu-submenu-background-alt: desaturate( lighten( $menu-background, 7% ), 7% ) !default; 360 361 $menu-submenu-focus-text: $highlight-color !default; 362 $menu-submenu-current-text: $text-color !default; 363 364 $menu-bubble-text: $text-color !default; 365 $menu-bubble-background: $notification-color !default; 366 $menu-bubble-current-text: $text-color !default; 367 $menu-bubble-current-background: $menu-submenu-background !default; 368 369 $menu-collapse-text: $menu-icon !default; 370 $menu-collapse-icon: $menu-icon !default; 371 $menu-collapse-focus-text: $text-color !default; 372 $menu-collapse-focus-icon: $menu-highlight-icon !default; 373 374 $adminbar-avatar-frame: lighten( $menu-background, 7% ) !default; 375 $adminbar-input-background: lighten( $menu-background, 7% ) !default; 376 377 $adminbar-recovery-exit-text: $menu-bubble-text !default; 378 $adminbar-recovery-exit-background: $menu-bubble-background !default; 379 $adminbar-recovery-exit-background-alt: mix(black, $adminbar-recovery-exit-background, 10%) !default; 380 381 $menu-customizer-text: mix( $base-color, $text-color, 40% ) !default; 382 383 /* 384 * Button mixin- creates 3d-ish button effect with correct 385 * highlights/shadows, based on a base color. 386 */ 387 @mixin button( $button-color, $text-color: #fff ) { 388 background: $button-color; 389 border-color: darken( $button-color, 10% ) darken( $button-color, 15% ) darken( $button-color, 15% ); 390 color: $text-color; 391 box-shadow: 0 1px 0 darken( $button-color, 15% ); 392 text-shadow: 0 -1px 1px darken( $button-color, 15% ), 393 1px 0 1px darken( $button-color, 15% ), 394 0 1px 1px darken( $button-color, 15% ), 395 -1px 0 1px darken( $button-color, 15% ); 396 397 &:hover, 398 &:focus { 399 background: lighten( $button-color, 3% ); 400 border-color: darken( $button-color, 15% ); 401 color: $text-color; 402 box-shadow: 0 1px 0 darken( $button-color, 15% ); 403 } 404 405 &:focus { 406 box-shadow: inset 0 1px 0 darken( $button-color, 10% ), 407 0 0 2px 1px #33b3db; 408 } 409 410 &:active, 411 &.active, 412 &.active:focus, 413 &.active:hover { 414 background: darken( $button-color, 10% ); 415 border-color: darken( $button-color, 15% ); 416 box-shadow: inset 0 2px 0 darken( $button-color, 15% ); 417 } 418 419 &[disabled], 420 &:disabled, 421 &.button-primary-disabled, 422 &.disabled { 423 color: hsl( hue( $button-color ), 10%, 80% ) !important; 424 background: darken( $button-color, 8% ) !important; 425 border-color: darken( $button-color, 15% ) !important; 426 text-shadow: none !important; 427 } 428 429 &.button-hero { 430 box-shadow: 0 2px 0 darken( $button-color, 15% ) !important; 431 &:active { 432 box-shadow: inset 0 3px 0 darken( $button-color, 15% ) !important; 433 } 434 } 435 436 } 437 438 body { 439 background: $body-background; 440 } 441 442 443 /* Links */ 444 445 a { 446 color: $link; 447 448 &:hover, 449 &:active, 450 &:focus { 451 color: $link-focus; 452 } 453 } 454 455 #media-upload a.del-link:hover, 456 div.dashboard-widget-submit input:hover, 457 .subsubsub a:hover, 458 .subsubsub a.current:hover { 459 color: $link-focus; 460 } 461 462 463 /* Forms */ 464 465 input[type=checkbox]:checked:before { 466 color: $form-checked; 467 } 468 469 input[type=radio]:checked:before { 470 background: $form-checked; 471 } 472 473 .wp-core-ui input[type="reset"]:hover, 474 .wp-core-ui input[type="reset"]:active { 475 color: $link-focus; 476 } 477 478 479 /* Core UI */ 480 481 .wp-core-ui { 482 .button-primary { 483 @include button( $button-color ); 484 } 485 486 .wp-ui-primary { 487 color: $text-color; 488 background-color: $base-color; 489 } 490 .wp-ui-text-primary { 491 color: $base-color; 492 } 493 494 .wp-ui-highlight { 495 color: $menu-highlight-text; 496 background-color: $menu-highlight-background; 497 } 498 .wp-ui-text-highlight { 499 color: $menu-highlight-background; 500 } 501 502 .wp-ui-notification { 503 color: $menu-bubble-text; 504 background-color: $menu-bubble-background; 505 } 506 .wp-ui-text-notification { 507 color: $menu-bubble-background; 508 } 509 510 .wp-ui-text-icon { 511 color: $menu-icon; 512 } 513 } 514 515 516 /* List tables */ 517 518 .wrap .add-new-h2:hover, /* deprecated */ 519 .wrap .page-title-action:hover { 520 color: $menu-text; 521 background-color: $menu-background; 522 } 523 524 .view-switch a.current:before { 525 color: $menu-background; 526 } 527 528 .view-switch a:hover:before { 529 color: $menu-bubble-background; 530 } 531 532 533 /* Admin Menu */ 534 535 #adminmenuback, 536 #adminmenuwrap, 537 #adminmenu { 538 background: $menu-background; 539 } 540 541 #adminmenu a { 542 color: $menu-text; 543 } 544 545 #adminmenu div.wp-menu-image:before { 546 color: $menu-icon; 547 } 548 549 #adminmenu a:hover, 550 #adminmenu li.menu-top:hover, 551 #adminmenu li.opensub > a.menu-top, 552 #adminmenu li > a.menu-top:focus { 553 color: $menu-highlight-text; 554 background-color: $menu-highlight-background; 555 } 556 557 #adminmenu li.menu-top:hover div.wp-menu-image:before, 558 #adminmenu li.opensub > a.menu-top div.wp-menu-image:before { 559 color: $menu-highlight-icon; 560 } 561 562 563 /* Active tabs use a bottom border color that matches the page background color. */ 564 565 .about-wrap .nav-tab-active, 566 .nav-tab-active, 567 .nav-tab-active:hover { 568 background-color: $body-background; 569 border-bottom-color: $body-background; 570 } 571 572 573 /* Admin Menu: submenu */ 574 575 #adminmenu .wp-submenu, 576 #adminmenu .wp-has-current-submenu .wp-submenu, 577 #adminmenu .wp-has-current-submenu.opensub .wp-submenu, 578 .folded #adminmenu .wp-has-current-submenu .wp-submenu, 579 #adminmenu a.wp-has-current-submenu:focus + .wp-submenu { 580 background: $menu-submenu-background; 581 } 582 583 #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after { 584 border-right-color: $menu-submenu-background; 585 } 586 587 #adminmenu .wp-submenu .wp-submenu-head { 588 color: $menu-submenu-text; 589 } 590 591 #adminmenu .wp-submenu a, 592 #adminmenu .wp-has-current-submenu .wp-submenu a, 593 .folded #adminmenu .wp-has-current-submenu .wp-submenu a, 594 #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a, 595 #adminmenu .wp-has-current-submenu.opensub .wp-submenu a { 596 color: $menu-submenu-text; 597 598 &:focus, &:hover { 599 color: $menu-submenu-focus-text; 600 } 601 } 602 603 604 /* Admin Menu: current */ 605 606 #adminmenu .wp-submenu li.current a, 607 #adminmenu a.wp-has-current-submenu:focus + .wp-submenu li.current a, 608 #adminmenu .wp-has-current-submenu.opensub .wp-submenu li.current a { 609 color: $menu-submenu-current-text; 610 611 &:hover, &:focus { 612 color: $menu-submenu-focus-text; 613 } 614 } 615 616 ul#adminmenu a.wp-has-current-submenu:after, 617 ul#adminmenu > li.current > a.current:after { 618 border-right-color: $body-background; 619 } 620 621 #adminmenu li.current a.menu-top, 622 #adminmenu li.wp-has-current-submenu a.wp-has-current-submenu, 623 #adminmenu li.wp-has-current-submenu .wp-submenu .wp-submenu-head, 624 .folded #adminmenu li.current.menu-top { 625 color: $menu-current-text; 626 background: $menu-current-background; 627 } 628 629 #adminmenu li.wp-has-current-submenu div.wp-menu-image:before, 630 #adminmenu a.current:hover div.wp-menu-image:before, 631 #adminmenu li.wp-has-current-submenu a:focus div.wp-menu-image:before, 632 #adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before, 633 #adminmenu li:hover div.wp-menu-image:before, 634 #adminmenu li a:focus div.wp-menu-image:before, 635 #adminmenu li.opensub div.wp-menu-image:before, 636 .ie8 #adminmenu li.opensub div.wp-menu-image:before { 637 color: $menu-current-icon; 638 } 639 640 641 /* Admin Menu: bubble */ 642 643 #adminmenu .awaiting-mod, 644 #adminmenu .update-plugins { 645 color: $menu-bubble-text; 646 background: $menu-bubble-background; 647 } 648 649 #adminmenu li.current a .awaiting-mod, 650 #adminmenu li a.wp-has-current-submenu .update-plugins, 651 #adminmenu li:hover a .awaiting-mod, 652 #adminmenu li.menu-top:hover > a .update-plugins { 653 color: $menu-bubble-current-text; 654 background: $menu-bubble-current-background; 655 } 656 657 658 /* Admin Menu: collapse button */ 659 660 #collapse-button { 661 color: $menu-collapse-text; 662 } 663 664 #collapse-button:hover, 665 #collapse-button:focus { 666 color: $menu-submenu-focus-text; 667 } 668 669 /* Admin Bar */ 670 671 #wpadminbar { 672 color: $menu-text; 673 background: $menu-background; 674 } 675 676 #wpadminbar .ab-item, 677 #wpadminbar a.ab-item, 678 #wpadminbar > #wp-toolbar span.ab-label, 679 #wpadminbar > #wp-toolbar span.noticon { 680 color: $menu-text; 681 } 682 683 #wpadminbar .ab-icon, 684 #wpadminbar .ab-icon:before, 685 #wpadminbar .ab-item:before, 686 #wpadminbar .ab-item:after { 687 color: $menu-icon; 688 } 689 690 #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item, 691 #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus, 692 #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus, 693 #wpadminbar.nojs .ab-top-menu > li.menupop:hover > .ab-item, 694 #wpadminbar .ab-top-menu > li.menupop.hover > .ab-item { 695 color: $menu-submenu-focus-text; 696 background: $menu-submenu-background; 697 } 698 699 #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label, 700 #wpadminbar:not(.mobile) > #wp-toolbar li.hover span.ab-label, 701 #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label { 702 color: $menu-submenu-focus-text; 703 } 704 705 #wpadminbar:not(.mobile) li:hover .ab-icon:before, 706 #wpadminbar:not(.mobile) li:hover .ab-item:before, 707 #wpadminbar:not(.mobile) li:hover .ab-item:after, 708 #wpadminbar:not(.mobile) li:hover #adminbarsearch:before { 709 color: $menu-highlight-icon; 710 } 711 712 713 /* Admin Bar: submenu */ 714 715 #wpadminbar .menupop .ab-sub-wrapper { 716 background: $menu-submenu-background; 717 } 718 719 #wpadminbar .quicklinks .menupop ul.ab-sub-secondary, 720 #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu { 721 background: $menu-submenu-background-alt; 722 } 723 724 #wpadminbar .ab-submenu .ab-item, 725 #wpadminbar .quicklinks .menupop ul li a, 726 #wpadminbar .quicklinks .menupop.hover ul li a, 727 #wpadminbar.nojs .quicklinks .menupop:hover ul li a { 728 color: $menu-submenu-text; 729 } 730 731 #wpadminbar .quicklinks li .blavatar, 732 #wpadminbar .menupop .menupop > .ab-item:before { 733 color: $menu-icon; 734 } 735 736 #wpadminbar .quicklinks .menupop ul li a:hover, 737 #wpadminbar .quicklinks .menupop ul li a:focus, 738 #wpadminbar .quicklinks .menupop ul li a:hover strong, 739 #wpadminbar .quicklinks .menupop ul li a:focus strong, 740 #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a, 741 #wpadminbar .quicklinks .menupop.hover ul li a:hover, 742 #wpadminbar .quicklinks .menupop.hover ul li a:focus, 743 #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover, 744 #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus, 745 #wpadminbar li:hover .ab-icon:before, 746 #wpadminbar li:hover .ab-item:before, 747 #wpadminbar li a:focus .ab-icon:before, 748 #wpadminbar li .ab-item:focus:before, 749 #wpadminbar li .ab-item:focus .ab-icon:before, 750 #wpadminbar li.hover .ab-icon:before, 751 #wpadminbar li.hover .ab-item:before, 752 #wpadminbar li:hover #adminbarsearch:before, 753 #wpadminbar li #adminbarsearch.adminbar-focused:before { 754 color: $menu-submenu-focus-text; 755 } 756 757 #wpadminbar .quicklinks li a:hover .blavatar, 758 #wpadminbar .quicklinks li a:focus .blavatar, 759 #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar, 760 #wpadminbar .menupop .menupop > .ab-item:hover:before, 761 #wpadminbar.mobile .quicklinks .ab-icon:before, 762 #wpadminbar.mobile .quicklinks .ab-item:before { 763 color: $menu-submenu-focus-text; 764 } 765 766 #wpadminbar.mobile .quicklinks .hover .ab-icon:before, 767 #wpadminbar.mobile .quicklinks .hover .ab-item:before { 768 color: $menu-icon; 769 } 770 771 772 /* Admin Bar: search */ 773 774 #wpadminbar #adminbarsearch:before { 775 color: $menu-icon; 776 } 777 778 #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus { 779 color: $menu-text; 780 background: $adminbar-input-background; 781 } 782 783 /* Admin Bar: recovery mode */ 784 785 #wpadminbar #wp-admin-bar-recovery-mode { 786 color: $adminbar-recovery-exit-text; 787 background-color: $adminbar-recovery-exit-background; 788 } 789 790 #wpadminbar #wp-admin-bar-recovery-mode .ab-item, 791 #wpadminbar #wp-admin-bar-recovery-mode a.ab-item { 792 color: $adminbar-recovery-exit-text; 793 } 794 795 #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover >.ab-item, 796 #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus, 797 #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item, 798 #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus { 799 color: $adminbar-recovery-exit-text; 800 background-color: $adminbar-recovery-exit-background-alt; 801 } 802 803 /* Admin Bar: my account */ 804 805 #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img { 806 border-color: $adminbar-avatar-frame; 807 background-color: $adminbar-avatar-frame; 808 } 809 810 #wpadminbar #wp-admin-bar-user-info .display-name { 811 color: $menu-text; 812 } 813 814 #wpadminbar #wp-admin-bar-user-info a:hover .display-name { 815 color: $menu-submenu-focus-text; 816 } 817 818 #wpadminbar #wp-admin-bar-user-info .username { 819 color: $menu-submenu-text; 820 } 821 822 823 /* Pointers */ 824 825 .wp-pointer .wp-pointer-content h3 { 826 background-color: $highlight-color; 827 border-color: darken( $highlight-color, 5% ); 828 } 829 830 .wp-pointer .wp-pointer-content h3:before { 831 color: $highlight-color; 832 } 833 834 .wp-pointer.wp-pointer-top .wp-pointer-arrow, 835 .wp-pointer.wp-pointer-top .wp-pointer-arrow-inner, 836 .wp-pointer.wp-pointer-undefined .wp-pointer-arrow, 837 .wp-pointer.wp-pointer-undefined .wp-pointer-arrow-inner { 838 border-bottom-color: $highlight-color; 839 } 840 841 842 /* Media */ 843 844 .media-item .bar, 845 .media-progress-bar div { 846 background-color: $highlight-color; 847 } 848 849 .details.attachment { 850 box-shadow: 851 inset 0 0 0 3px #fff, 852 inset 0 0 0 7px $highlight-color; 853 } 854 855 .attachment.details .check { 856 background-color: $highlight-color; 857 box-shadow: 0 0 0 1px #fff, 0 0 0 2px $highlight-color; 858 } 859 860 .media-selection .attachment.selection.details .thumbnail { 861 box-shadow: 0 0 0 1px #fff, 0 0 0 3px $highlight-color; 862 } 863 864 865 /* Themes */ 866 867 .theme-browser .theme.active .theme-name, 868 .theme-browser .theme.add-new-theme a:hover:after, 869 .theme-browser .theme.add-new-theme a:focus:after { 870 background: $highlight-color; 871 } 872 873 .theme-browser .theme.add-new-theme a:hover span:after, 874 .theme-browser .theme.add-new-theme a:focus span:after { 875 color: $highlight-color; 876 } 877 878 .theme-section.current, 879 .theme-filter.current { 880 border-bottom-color: $menu-background; 881 } 882 883 body.more-filters-opened .more-filters { 884 color: $menu-text; 885 background-color: $menu-background; 886 } 887 888 body.more-filters-opened .more-filters:before { 889 color: $menu-text; 890 } 891 892 body.more-filters-opened .more-filters:hover, 893 body.more-filters-opened .more-filters:focus { 894 background-color: $menu-highlight-background; 895 color: $menu-highlight-text; 896 } 897 898 body.more-filters-opened .more-filters:hover:before, 899 body.more-filters-opened .more-filters:focus:before { 900 color: $menu-highlight-text; 901 } 902 903 /* Widgets */ 904 905 .widgets-chooser li.widgets-chooser-selected { 906 background-color: $menu-highlight-background; 907 color: $menu-highlight-text; 908 } 909 910 .widgets-chooser li.widgets-chooser-selected:before, 911 .widgets-chooser li.widgets-chooser-selected:focus:before { 912 color: $menu-highlight-text; 913 } 914 915 /* Responsive Component */ 916 917 div#wp-responsive-toggle a:before { 918 color: $menu-icon; 919 } 920 921 .wp-responsive-open div#wp-responsive-toggle a { 922 // ToDo: make inset border 923 border-color: transparent; 924 background: $menu-highlight-background; 925 } 926 927 .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle a { 928 background: $menu-submenu-background; 929 } 930 931 .wp-responsive-open #wpadminbar #wp-admin-bar-menu-toggle .ab-icon:before { 932 color: $menu-icon; 933 } 934 935 /* TinyMCE */ 936 937 .mce-container.mce-menu .mce-menu-item:hover, 938 .mce-container.mce-menu .mce-menu-item.mce-selected, 939 .mce-container.mce-menu .mce-menu-item:focus, 940 .mce-container.mce-menu .mce-menu-item-normal.mce-active, 941 .mce-container.mce-menu .mce-menu-item-preview.mce-active { 942 background: $highlight-color; 943 } 944 '); 945 946 return $tempsass; 947 } 948 949 /** 950 * Return compiled sass for ajax call. 951 * 952 * @since 1.0.0 953 * @access public 954 */ 955 public function compileScssAjax() { 956 957 958 if (!empty($_REQUEST['c1'])) { 959 $_SESSION['abcolor1'] = $_REQUEST['c1'];; 960 } 961 962 if (!empty($_REQUEST['c2'])) { 963 $_SESSION['abcolor2'] = $_REQUEST['c2'];; 964 } 965 966 if (!empty($_REQUEST['c3'])) { 967 $_SESSION['abcolor3'] = $_REQUEST['c3'];; 968 } 969 970 if (!empty($_REQUEST['c4'])) { 971 $_SESSION['abcolor4'] = $_REQUEST['c4'];; 972 } 973 974 if (empty($_SESSION['abcolor1'])) { 975 $abcolor_new_color1 = $this->getUserMeta($this->getCurrentUserId(), 'abcolor_color1', $this->color1); 976 } else { 977 $abcolor_new_color1 = $_SESSION['abcolor1']; 978 } 979 980 if (empty($_SESSION['abcolor2'])) { 981 $abcolor_new_color2 = $this->getUserMeta($this->getCurrentUserId(), 'abcolor_color2', $this->color2); 982 } else { 983 $abcolor_new_color2 = $_SESSION['abcolor2']; 984 } 985 986 if (empty($_SESSION['abcolor3'])) { 987 $abcolor_new_color3 = $this->getUserMeta($this->getCurrentUserId(), 'abcolor_color3', $this->color3); 988 } else { 989 $abcolor_new_color3 = $_SESSION['abcolor3']; 990 } 991 992 if (empty($_SESSION['abcolor4'])) { 993 $abcolor_new_color4 = $this->getUserMeta($this->getCurrentUserId(), 'abcolor_color4', $this->color4); 994 } else { 995 $abcolor_new_color4 = $_SESSION['abcolor4']; 996 } 997 998 echo $this->compileScss(array('color1' => $abcolor_new_color1, 'color2' => $abcolor_new_color2, 'color3' => $abcolor_new_color3, 'color4' => $abcolor_new_color4)); 999 1000 wp_die(); // this is required to terminate immediately and return a proper response 1001 } 1002 1003 /** 1004 * Unset session variables 1005 * 1006 * @since 1.0.0 1007 * @access public 1008 */ 1009 public function unsetSessionVars() { 1010 if (strpos ($_SERVER ['REQUEST_URI'] , 'wp-admin/admin-ajax.php?action=compileScssAjax' )==FALSE) { 1011 error_log($_SERVER ['REQUEST_URI']); 1012 unset ($_SESSION["abcolor1"]); 1013 unset ($_SESSION["abcolor2"]); 1014 unset ($_SESSION["abcolor3"]); 1015 unset ($_SESSION["abcolor4"]); 1016 } 1017 } 1018 1019 /** 1020 * Get current abcolor admin css. 1021 * 1022 * @since 1.0.0 1023 * @access public 1024 */ 1025 public function getCurrentCss(){ 1026 return get_user_meta($this->getCurrentUserId(), 'abcolor_css', true); 1027 } 1028 1029 /** 1030 * Apply plugins CSS. 1031 * 1032 * @since 1.0.0 1033 * @access public 1034 */ 1035 public function ApplyCurrentCss(){ 1036 echo '<style class="abcolor_style">' . $this->getCurrentCss() . '</style>'; 145 1037 } 146 1038 … … 149 1041 * 150 1042 * @since 1.0.0 151 * @access p rotected1043 * @access public 152 1044 */ 153 1045 public function getCurrentUserId() 154 1046 { 155 1047 $this->$currentUserId = get_current_user_id(); 1048 return get_current_user_id(); 156 1049 } 157 1050 -
admin-panel-background-color/trunk/src/I18n.php
r1876275 r2133621 1 1 <?php 2 3 namespace Casia\Abcolor;4 2 5 3 /** -
admin-panel-background-color/trunk/src/Loader.php
r1876275 r2133621 1 1 <?php 2 3 namespace Casia\Abcolor;4 2 5 3 /** -
admin-panel-background-color/trunk/src/Main.php
r1876275 r2133621 1 1 <?php 2 3 namespace Casia\Abcolor;4 5 use Casia\Abcolor\I18n;6 use Casia\Abcolor\Loader;7 use Casia\Abcolor\Admin;8 use Casia\Abcolor\PublicClass;9 2 10 3 /** … … 135 128 $this->loader->addAction('admin_init', $plugin_admin, 'getCurrentUserId'); 136 129 $this->loader->addAction('admin_init', $plugin_admin, 'getCurrentBackground', 11); 130 131 $this->loader->addAction('admin_head', $plugin_admin, 'ApplyCurrentCss' ); 132 133 $this->loader->addAction( 'wp_ajax_compileScssAjax', $plugin_admin, 'compileScssAjax' ); 134 135 $this->loader->addAction('admin_init', $plugin_admin, 'unsetSessionVars'); 136 137 remove_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' ); 138 139 //$this->loader->addAction('admin_head', $plugin_admin, 'unsetSessionVars'); 137 140 } 138 141 -
admin-panel-background-color/trunk/src/PublicClass.php
r1876275 r2133621 1 1 <?php 2 3 namespace Casia\Abcolor;4 2 5 3 /** -
admin-panel-background-color/trunk/vendor/autoload.php
r1876275 r2133621 3 3 // autoload.php @generated by Composer 4 4 5 require_once __DIR__ . '/composer ' . '/autoload_real.php';5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 7 return ComposerAutoloaderInita8e84f6b9d979c9414ec52a30474a2ce::getLoader(); -
admin-panel-background-color/trunk/vendor/composer/ClassLoader.php
r1876275 r2133621 56 56 private $classMapAuthoritative = false; 57 57 private $missingClasses = array(); 58 private $apcuPrefix; 58 59 59 60 public function getPrefixes() … … 273 274 274 275 /** 276 * APCu prefix to use to cache found/not-found classes, if the extension is enabled. 277 * 278 * @param string|null $apcuPrefix 279 */ 280 public function setApcuPrefix($apcuPrefix) 281 { 282 $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null; 283 } 284 285 /** 286 * The APCu prefix in use, or null if APCu caching is not enabled. 287 * 288 * @return string|null 289 */ 290 public function getApcuPrefix() 291 { 292 return $this->apcuPrefix; 293 } 294 295 /** 275 296 * Registers this instance as an autoloader. 276 297 * … … 314 335 public function findFile($class) 315 336 { 316 // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731317 if ('\\' == $class[0]) {318 $class = substr($class, 1);319 }320 321 337 // class map lookup 322 338 if (isset($this->classMap[$class])) { … … 326 342 return false; 327 343 } 344 if (null !== $this->apcuPrefix) { 345 $file = apcu_fetch($this->apcuPrefix.$class, $hit); 346 if ($hit) { 347 return $file; 348 } 349 } 328 350 329 351 $file = $this->findFileWithExtension($class, '.php'); … … 334 356 } 335 357 358 if (null !== $this->apcuPrefix) { 359 apcu_add($this->apcuPrefix.$class, $file); 360 } 361 336 362 if (false === $file) { 337 363 // Remember that this class does not exist. … … 349 375 $first = $class[0]; 350 376 if (isset($this->prefixLengthsPsr4[$first])) { 351 foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) { 352 if (0 === strpos($class, $prefix)) { 353 foreach ($this->prefixDirsPsr4[$prefix] as $dir) { 354 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { 377 $subPath = $class; 378 while (false !== $lastPos = strrpos($subPath, '\\')) { 379 $subPath = substr($subPath, 0, $lastPos); 380 $search = $subPath.'\\'; 381 if (isset($this->prefixDirsPsr4[$search])) { 382 $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1); 383 foreach ($this->prefixDirsPsr4[$search] as $dir) { 384 if (file_exists($file = $dir . $pathEnd)) { 355 385 return $file; 356 386 } -
admin-panel-background-color/trunk/vendor/composer/LICENSE
r1876275 r2133621 1 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ 2 Upstream-Name: Composer 3 Upstream-Contact: Jordi Boggiano <j.boggiano@seld.be> 4 Source: https://github.com/composer/composer 1 5 2 Copyright (c) 2016 Nils Adermann, Jordi Boggiano 6 Files: * 7 Copyright: 2016, Nils Adermann <naderman@naderman.de> 8 2016, Jordi Boggiano <j.boggiano@seld.be> 9 License: Expat 3 10 4 Permission is hereby granted, free of charge, to any person obtaining a copy 5 of this software and associated documentation files (the "Software"), to deal 6 in the Software without restriction, including without limitation the rights 7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 copies of the Software, and to permit persons to whom the Software is furnished 9 to do so, subject to the following conditions: 11 Files: src/Composer/Util/TlsHelper.php 12 Copyright: 2016, Nils Adermann <naderman@naderman.de> 13 2016, Jordi Boggiano <j.boggiano@seld.be> 14 2013, Evan Coury <me@evancoury.com> 15 License: Expat and BSD-2-Clause 10 16 11 The above copyright notice and this permission notice shall be included in all 12 copies or substantial portions of the Software. 17 License: BSD-2-Clause 18 Redistribution and use in source and binary forms, with or without modification, 19 are permitted provided that the following conditions are met: 20 . 21 * Redistributions of source code must retain the above copyright notice, 22 this list of conditions and the following disclaimer. 23 . 24 * Redistributions in binary form must reproduce the above copyright notice, 25 this list of conditions and the following disclaimer in the documentation 26 and/or other materials provided with the distribution. 27 . 28 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 29 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 30 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 31 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 32 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 33 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 34 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 35 ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 36 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 37 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 13 38 14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 THE SOFTWARE. 21 39 License: Expat 40 Permission is hereby granted, free of charge, to any person obtaining a copy 41 of this software and associated documentation files (the "Software"), to deal 42 in the Software without restriction, including without limitation the rights 43 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 44 copies of the Software, and to permit persons to whom the Software is furnished 45 to do so, subject to the following conditions: 46 . 47 The above copyright notice and this permission notice shall be included in all 48 copies or substantial portions of the Software. 49 . 50 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 51 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 52 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 53 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 54 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 55 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 56 THE SOFTWARE. -
admin-panel-background-color/trunk/vendor/composer/autoload_classmap.php
r1876275 r2133621 7 7 8 8 return array( 9 'Casia\\Abcolor\\Activator' => $baseDir . '/src/Activator.php', 10 'Casia\\Abcolor\\Admin' => $baseDir . '/src/Admin.php', 11 'Casia\\Abcolor\\Deactivator' => $baseDir . '/src/Deactivator.php', 12 'Casia\\Abcolor\\I18n' => $baseDir . '/src/I18n.php', 13 'Casia\\Abcolor\\Loader' => $baseDir . '/src/Loader.php', 14 'Casia\\Abcolor\\Main' => $baseDir . '/src/Main.php', 15 'Casia\\Abcolor\\PublicClass' => $baseDir . '/src/PublicClass.php', 9 'Admin' => $baseDir . '/src/Admin.php', 10 'ApiTest' => $vendorDir . '/scssphp/tests/ApiTest.php', 11 'ExceptionTest' => $vendorDir . '/scssphp/tests/ExceptionTest.php', 12 'I18n' => $baseDir . '/src/I18n.php', 13 'InputTest' => $vendorDir . '/scssphp/tests/InputTest.php', 14 'Loader' => $baseDir . '/src/Loader.php', 15 'Main' => $baseDir . '/src/Main.php', 16 'PublicClass' => $baseDir . '/src/PublicClass.php', 17 'scss_formatter' => $vendorDir . '/scssphp/scss.inc.php', 18 'scss_formatter_compressed' => $vendorDir . '/scssphp/scss.inc.php', 19 'scss_formatter_nested' => $vendorDir . '/scssphp/scss.inc.php', 20 'scss_parser' => $vendorDir . '/scssphp/scss.inc.php', 21 'scss_server' => $vendorDir . '/scssphp/scss.inc.php', 22 'scssc' => $vendorDir . '/scssphp/scss.inc.php', 16 23 ); -
admin-panel-background-color/trunk/vendor/composer/autoload_psr4.php
r1876275 r2133621 7 7 8 8 return array( 9 'Casia\\Abcolor\\' => array($baseDir . '/src'),10 9 ); -
admin-panel-background-color/trunk/vendor/composer/autoload_real.php
r1876275 r2133621 24 24 spl_autoload_unregister(array('ComposerAutoloaderInita8e84f6b9d979c9414ec52a30474a2ce', 'loadClassLoader')); 25 25 26 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') ;26 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); 27 27 if ($useStaticLoader) { 28 28 require_once __DIR__ . '/autoload_static.php'; -
admin-panel-background-color/trunk/vendor/composer/autoload_static.php
r1876275 r2133621 7 7 class ComposerStaticInita8e84f6b9d979c9414ec52a30474a2ce 8 8 { 9 public static $prefixLengthsPsr4 = array (10 'C' =>11 array (12 'Casia\\Abcolor\\' => 14,13 ),14 );15 16 public static $prefixDirsPsr4 = array (17 'Casia\\Abcolor\\' =>18 array (19 0 => __DIR__ . '/../..' . '/src',20 ),21 );22 23 9 public static $classMap = array ( 24 'Casia\\Abcolor\\Activator' => __DIR__ . '/../..' . '/src/Activator.php', 25 'Casia\\Abcolor\\Admin' => __DIR__ . '/../..' . '/src/Admin.php', 26 'Casia\\Abcolor\\Deactivator' => __DIR__ . '/../..' . '/src/Deactivator.php', 27 'Casia\\Abcolor\\I18n' => __DIR__ . '/../..' . '/src/I18n.php', 28 'Casia\\Abcolor\\Loader' => __DIR__ . '/../..' . '/src/Loader.php', 29 'Casia\\Abcolor\\Main' => __DIR__ . '/../..' . '/src/Main.php', 30 'Casia\\Abcolor\\PublicClass' => __DIR__ . '/../..' . '/src/PublicClass.php', 10 'Admin' => __DIR__ . '/../..' . '/src/Admin.php', 11 'ApiTest' => __DIR__ . '/..' . '/scssphp/tests/ApiTest.php', 12 'ExceptionTest' => __DIR__ . '/..' . '/scssphp/tests/ExceptionTest.php', 13 'I18n' => __DIR__ . '/../..' . '/src/I18n.php', 14 'InputTest' => __DIR__ . '/..' . '/scssphp/tests/InputTest.php', 15 'Loader' => __DIR__ . '/../..' . '/src/Loader.php', 16 'Main' => __DIR__ . '/../..' . '/src/Main.php', 17 'PublicClass' => __DIR__ . '/../..' . '/src/PublicClass.php', 18 'scss_formatter' => __DIR__ . '/..' . '/scssphp/scss.inc.php', 19 'scss_formatter_compressed' => __DIR__ . '/..' . '/scssphp/scss.inc.php', 20 'scss_formatter_nested' => __DIR__ . '/..' . '/scssphp/scss.inc.php', 21 'scss_parser' => __DIR__ . '/..' . '/scssphp/scss.inc.php', 22 'scss_server' => __DIR__ . '/..' . '/scssphp/scss.inc.php', 23 'scssc' => __DIR__ . '/..' . '/scssphp/scss.inc.php', 31 24 ); 32 25 … … 34 27 { 35 28 return \Closure::bind(function () use ($loader) { 36 $loader->prefixLengthsPsr4 = ComposerStaticInita8e84f6b9d979c9414ec52a30474a2ce::$prefixLengthsPsr4;37 $loader->prefixDirsPsr4 = ComposerStaticInita8e84f6b9d979c9414ec52a30474a2ce::$prefixDirsPsr4;38 29 $loader->classMap = ComposerStaticInita8e84f6b9d979c9414ec52a30474a2ce::$classMap; 39 30
Note: See TracChangeset
for help on using the changeset viewer.