| 102 |
return $theme_path; |
return $theme_path; |
| 103 |
} |
} |
| 104 |
|
|
| 105 |
|
/** |
| 106 |
|
* Implements hook_color() for theme. |
| 107 |
|
* Color replacement method(s): 'shift' (base, text, link) |
| 108 |
|
* 'tag' custom tag replacement |
| 109 |
|
*/ |
| 110 |
|
function friendselectric_color() { |
| 111 |
|
/** |
| 112 |
|
* $color = array() (Required) |
| 113 |
|
* For essential scheme information. |
| 114 |
|
* |
| 115 |
|
*/ |
| 116 |
|
$color = array( |
| 117 |
|
/** |
| 118 |
|
* 'replacement methods' |
| 119 |
|
* Declare replacement replacement methods in the 'replacement methods' array, |
| 120 |
|
* in the order you want them to work. |
| 121 |
|
* They are comprised different algorithms to change your colors. |
| 122 |
|
* replacement methods like 'shift' can accept different options and behave differently. |
| 123 |
|
* To change the order of the replacement methods color replacement, put them in order. |
| 124 |
|
*/ |
| 125 |
|
'replacement methods' => array( |
| 126 |
|
/** |
| 127 |
|
* 'shift' method |
| 128 |
|
* Requires 'base', and/or'link' and/or 'text' |
| 129 |
|
*/ |
| 130 |
|
'shift' => array('base', 'text', 'link'), |
| 131 |
|
/** |
| 132 |
|
* 'tag' method |
| 133 |
|
* Replaces custom tags in stylesheet based on fieldname. |
| 134 |
|
*/ |
| 135 |
|
'tag' => TRUE, |
| 136 |
|
), |
| 137 |
|
|
| 138 |
|
/** |
| 139 |
|
* 'fields' (Required) |
| 140 |
|
* The machine-readable names of color fields. The name will help you |
| 141 |
|
* and your theme users identify colors. |
| 142 |
|
*/ |
| 143 |
|
'fields' => array('base', 'link', 'top', 'bottom', 'text', 'main-link', 'menu-link'), |
| 144 |
|
|
| 145 |
|
/** |
| 146 |
|
* 'premade schemes' (Required) |
| 147 |
|
* A list of pre-made schemes that will be available for install by default. |
| 148 |
|
* The scheme name, human-readable, is followed by hex values separated by |
| 149 |
|
* commas (no spaces). The colors are to be ordered respectable to 'fields'. |
| 150 |
|
*/ |
| 151 |
|
'premade schemes' => array( |
| 152 |
|
'Aquamarine' => array( |
| 153 |
|
'base' => '#55c0e2', 'link' => '#000000', 'top' => '#085360', 'bottom' => '#007e94', 'text' => '#696969', 'main-link' => '#000000', 'menu-link' => '#085360'), |
| 154 |
|
'Ash' => array('base' => '#464849' ,'link' => '#2f416f', 'top' => '#2a2b2d', 'bottom' => '#5d6779', 'text' => '#494949', 'main-link' => '#262626', 'menu-link' => '#2a2b2d'), |
| 155 |
|
'Belgian Chocolate' => array('base' => '#d5b048' ,'link' => '#6c420e', 'top' => '#331900', 'bottom' => '#971702,', 'text' => '#494949', 'main-link' => '#6c420e', 'menu-link' => '#331900'), |
| 156 |
|
'Blue Lagoon' => array('base' => '#0072b9' ,'link' => '#027ac6', 'top' => '#2385c2', 'bottom' => '#5ab5ee', 'text' => '#494949', 'main-link' => '#027ac6', 'menu-link' => '#2385c2'), |
| 157 |
|
'Bluemarine' => array('base' => '#3f3f3f' ,'link' => '#336699', 'top' => '#6598cb', 'bottom' => '#3a71ab', 'text' => '#000000', 'main-link' => '#336699', 'menu-link' => '#6598cb'), |
| 158 |
|
'Citrus Blast' => array('base' => '#e25912','link' => '#6f5c06', 'top' => '#f46715', 'bottom' => '#9a5707', 'text' => '#0b2645', 'main-link' => '#6f5c06', 'menu-link' => '#df8920'), |
| 159 |
|
'Cold Day' => array('base' => '#0f005c','link' => '#434f8c', 'top' => '#4d91ff', 'bottom' => '#1a1575', 'text' => '#000000', 'main-link' => '#434f8c', 'menu-link' => '#4d91ff'), |
| 160 |
|
'Electric' => array('base' => '#D9EEF1','link' => '#255FB7', 'top' => '#78aac7', 'bottom' => '#375d8a', 'text' => '#0b2645', 'main-link' => '#E60A53', 'menu-link' => '#78aac7'), |
| 161 |
|
'Greenbeam' => array('base' => '#b7b075','link' => '#0c7a00', 'top' => '#03961e', 'bottom' => '#5fae00', 'text' => '#2f2f2f', 'main-link' => '#0c7a00', 'menu-link' => '#024b0f'), |
| 162 |
|
'Majestic' => array('base' => '#5c00b9','link' => '#027ac6', 'top' => '#f028ab', 'bottom' => '#5f009e', 'text' => '#494949', 'main-link' => '#027ac6', 'menu-link' => '#f028ab'), |
| 163 |
|
'Mediterrano' => array('base' => '#ffe23d','link' => '#a9290a', 'top' => '#fc6d1d', 'bottom' => '#a30f42', 'text' => '#494949', 'main-link' => '#a9290a', 'menu-link' => '#fc6d1d'), |
| 164 |
|
'Nocturnal' => array('base' => '#5b5fa9','link' => '#5b5faa', 'top' => '#0a2352', 'bottom' => '#9fa8d5', 'text' => '#494949', 'main-link' => '#5b5faa', 'menu-link' => '#0a2352'), |
| 165 |
|
'Olivia' => array('base' => '#7db323','link' => '#6a9915', 'top' => '#b5d52a', 'bottom' => '#7db323', 'text' => '#191a19', 'main-link' => '#6a9915', 'menu-link' => '#b5d52a'), |
| 166 |
|
'Pink Plastic' => array('base' => '#12020b','link' => '#1b1a13', 'top' => '#f391c6', 'bottom' => '#f41063', 'text' => '#898080', 'main-link' => '#1b1a13', 'menu-link' => '#f391c6'), |
| 167 |
|
'Shiny Tomato' => array('base' => '#cb1025','link' => '#c70000', 'top' => '#a1443a', 'bottom' => '#f21107', 'text' => '#515d52', 'main-link' => '#c70000', 'menu-link' => '#a1443a'), |
| 168 |
|
'Teal Top' => array('base' => '#18583d','link' => '#1b5f42', 'top' => '#34775a', 'bottom' => '#52bf90', 'text' => '#2d2d2d', 'main-link' => '#1b5f42', 'menu-link' => '#34775a'), |
| 169 |
|
), |
| 170 |
|
|
| 171 |
|
/** |
| 172 |
|
* 'default scheme' (Required) |
| 173 |
|
* A scheme name from one in your 'premade schemes' list. |
| 174 |
|
*/ |
| 175 |
|
'default scheme' => 'Electric', |
| 176 |
|
|
| 177 |
|
/** |
| 178 |
|
* 'reference scheme' (Required) |
| 179 |
|
* A scheme name from one in your 'premade schemes' list. |
| 180 |
|
* On schemes which use the 'base', 'link' or 'text' flag, always mention this. |
| 181 |
|
* Other schemes will be shifted against the fields of the reference one. |
| 182 |
|
*/ |
| 183 |
|
'reference scheme' => 'Electric', |
| 184 |
|
|
| 185 |
|
/** |
| 186 |
|
* 'stylesheets' (Required) |
| 187 |
|
* Path to your CSS file relevant to the root of your theme directory. |
| 188 |
|
* Can mention an array of stylesheets. |
| 189 |
|
*/ |
| 190 |
|
'stylesheets' => array( |
| 191 |
|
'friendselectric.css', |
| 192 |
|
), |
| 193 |
|
|
| 194 |
|
/** |
| 195 |
|
* 'blend target' (Required) |
| 196 |
|
* Used as a target color for image and shifting colors to and fro. |
| 197 |
|
* Usually #ffffff, #000000, or #666666 can do. |
| 198 |
|
*/ |
| 199 |
|
'blend target' => '#ffffff', |
| 200 |
|
); |
| 201 |
|
|
| 202 |
|
/** |
| 203 |
|
* $img['images'][imgname] (Required) |
| 204 |
|
* Transparent images you wish to fill the BG's of. |
| 205 |
|
* And/or slice. List as many as you want, keep the imgname unique. |
| 206 |
|
*/ |
| 207 |
|
$color['images']['header'] = array( |
| 208 |
|
/** |
| 209 |
|
* 'file' (Required) |
| 210 |
|
* Path to your source image in terms of theme's root. |
| 211 |
|
*/ |
| 212 |
|
'file' => 'images/color/blank-header-mid.png', |
| 213 |
|
|
| 214 |
|
/** |
| 215 |
|
* 'fill' (Optional) |
| 216 |
|
* Solid: x-coordinate, y-coordinate, width, height, fill color |
| 217 |
|
* Gradient: x-coordinate, y-coordinate, width, height, top color, bottom color |
| 218 |
|
* You can list as many solid/gradient fills as you want |
| 219 |
|
*/ |
| 220 |
|
'fill' => array( |
| 221 |
|
// x coord start, y coord start, width, height, top fieldname, bottom fieldname |
| 222 |
|
array('type' => 'y-gradient', |
| 223 |
|
'x' => 0, |
| 224 |
|
'y' => 0, |
| 225 |
|
'width' => 2, |
| 226 |
|
'height' => 114, |
| 227 |
|
'colors' => array('top', 'bottom'), |
| 228 |
|
), |
| 229 |
|
), |
| 230 |
|
|
| 231 |
|
/** |
| 232 |
|
* 'slices' (Required) |
| 233 |
|
* Slice your image up to file destination. |
| 234 |
|
* If your slice output file matches a CSS image BG it will be replaced |
| 235 |
|
* automatically for you per scheme. :) |
| 236 |
|
* file-path according theme root => x-coordinate, y-coordinate, width, height |
| 237 |
|
*/ |
| 238 |
|
'slices' => array( |
| 239 |
|
'images/header-mid.png' => array( |
| 240 |
|
'x' => 0, |
| 241 |
|
'y' => 0, |
| 242 |
|
'width' => 2, |
| 243 |
|
'height' => 114 |
| 244 |
|
), |
| 245 |
|
), |
| 246 |
|
); |
| 247 |
|
|
| 248 |
|
$color['images']['nav-left'] = array( |
| 249 |
|
'file' => 'images/color/blank-nav-left.png', |
| 250 |
|
|
| 251 |
|
/** |
| 252 |
|
* 'fill' (Optional) |
| 253 |
|
* Solid: x-coordinate, y-coordinate, width, height, fill color |
| 254 |
|
* Gradient: x-coordinate, y-coordinate, width, height, top color, bottom color |
| 255 |
|
* You can list as many solid/gradient fills as you want |
| 256 |
|
*/ |
| 257 |
|
'fill' => array( |
| 258 |
|
array('type' => 'solid', |
| 259 |
|
'x' => 0, |
| 260 |
|
'y' => 1, |
| 261 |
|
'width' => 1, |
| 262 |
|
'height' => 16, |
| 263 |
|
'colors' => array('top'), |
| 264 |
|
), |
| 265 |
|
array('type' => 'solid', |
| 266 |
|
'x' => 1, |
| 267 |
|
'y' => 0, |
| 268 |
|
'width' => 4, |
| 269 |
|
'height' => 19, |
| 270 |
|
'colors' => array('top'), |
| 271 |
|
), |
| 272 |
|
), |
| 273 |
|
|
| 274 |
|
/** |
| 275 |
|
* 'transparent color' (Optional) |
| 276 |
|
* A hex color which you want to remain tranparent. |
| 277 |
|
* Currently this is used only for keeping blank areas |
| 278 |
|
* of transparent PNG's clear. |
| 279 |
|
*/ |
| 280 |
|
'transparent color' => '#000000', |
| 281 |
|
|
| 282 |
|
'slices' => array( |
| 283 |
|
'images/nav-left.png' => array( |
| 284 |
|
'x' => 0, |
| 285 |
|
'y' => 0, |
| 286 |
|
'width' => 5, |
| 287 |
|
'height' => 19 |
| 288 |
|
), |
| 289 |
|
), |
| 290 |
|
); |
| 291 |
|
|
| 292 |
|
$color['images']['nav-right'] = array( |
| 293 |
|
'file' => 'images/color/blank-nav-right.png', |
| 294 |
|
'fill' => array( |
| 295 |
|
array('type' => 'solid', |
| 296 |
|
'x' => 0, |
| 297 |
|
'y' => 0, |
| 298 |
|
'width' => 3, |
| 299 |
|
'height' => 19, |
| 300 |
|
'colors' => array('top'), |
| 301 |
|
), |
| 302 |
|
array('type' => 'solid', |
| 303 |
|
'x' => 4, |
| 304 |
|
'y' => 1, |
| 305 |
|
'width' => 1, |
| 306 |
|
'height' => 16, |
| 307 |
|
'colors' => array('op'), |
| 308 |
|
), |
| 309 |
|
), |
| 310 |
|
'transparent color' => '#000000', |
| 311 |
|
'slices' => array( |
| 312 |
|
'images/nav-right.png' => array('x' => 0, |
| 313 |
|
'y' => 0, |
| 314 |
|
'width' => 5, |
| 315 |
|
'height' => 19 |
| 316 |
|
), |
| 317 |
|
), |
| 318 |
|
); |
| 319 |
|
|
| 320 |
|
$color['images']['bg-left'] = array( |
| 321 |
|
'file' => 'images/color/blank-bg-left.png', |
| 322 |
|
'fill' => array( |
| 323 |
|
array('type' => 'solid', |
| 324 |
|
'x' => 0, |
| 325 |
|
'y' => 0, |
| 326 |
|
'width' => 33, |
| 327 |
|
'height' => 22, |
| 328 |
|
'colors' => array('base'), |
| 329 |
|
), |
| 330 |
|
), |
| 331 |
|
'transparent color' => '#000000', |
| 332 |
|
'slices' => array( |
| 333 |
|
'images/bg-left.png' => array( |
| 334 |
|
'x' => 0, |
| 335 |
|
'y' => 0, |
| 336 |
|
'width' => 33, |
| 337 |
|
'height' => 20 |
| 338 |
|
), |
| 339 |
|
), |
| 340 |
|
); |
| 341 |
|
|
| 342 |
|
$color['images']['bg-right'] = array( |
| 343 |
|
'file' => 'images/color/blank-bg-right.png', |
| 344 |
|
'fill' => array( |
| 345 |
|
array('type' => 'solid', |
| 346 |
|
'x' => 0, |
| 347 |
|
'y' => 0, |
| 348 |
|
'width' => 33, |
| 349 |
|
'height' => 20, |
| 350 |
|
'colors' => array('base'), |
| 351 |
|
), |
| 352 |
|
), |
| 353 |
|
'transparent color' => '#000000', |
| 354 |
|
'slices' => array( |
| 355 |
|
'images/bg-right.png' => array('x' => 0, |
| 356 |
|
'y' => 0, |
| 357 |
|
'width' => 33, |
| 358 |
|
'height' => 20 |
| 359 |
|
), |
| 360 |
|
), |
| 361 |
|
); |
| 362 |
|
|
| 363 |
|
$color['images']['bg-bottom-left-thin'] = array( |
| 364 |
|
'file' => 'images/color/blank-bottom-left-thin.png', |
| 365 |
|
'fill' => array( |
| 366 |
|
array('type' => 'solid', |
| 367 |
|
'x' => 0, |
| 368 |
|
'y' => 0, |
| 369 |
|
'width' => 35, |
| 370 |
|
'height' => 25, |
| 371 |
|
'colors' => array('base'), |
| 372 |
|
), |
| 373 |
|
), |
| 374 |
|
'transparent color' => '#000000', |
| 375 |
|
'slices' => array( |
| 376 |
|
'images/bottom-left-thin.png' => array('x' => 0, |
| 377 |
|
'y' => 0, |
| 378 |
|
'height' => 35, |
| 379 |
|
'width' => 25, |
| 380 |
|
), |
| 381 |
|
), |
| 382 |
|
); |
| 383 |
|
|
| 384 |
|
$color['images']['bg-bottom-right-thin'] = array( |
| 385 |
|
'file' => 'images/color/blank-bottom-right-thin.png', |
| 386 |
|
'fill' => array( |
| 387 |
|
array('type' => 'solid', |
| 388 |
|
'x' => 0, |
| 389 |
|
'y' => 0, |
| 390 |
|
'width' => 35, |
| 391 |
|
'height' => 25, |
| 392 |
|
'colors' => array('base') |
| 393 |
|
), |
| 394 |
|
), |
| 395 |
|
'transparent color' => '#000000', |
| 396 |
|
'slices' => array( |
| 397 |
|
'images/bottom-right-thin.png' => array( |
| 398 |
|
'x' => 0, |
| 399 |
|
'y' => 0, |
| 400 |
|
'width' => 35, |
| 401 |
|
'height' => 25 |
| 402 |
|
), |
| 403 |
|
), |
| 404 |
|
|
| 405 |
|
); |
| 406 |
|
|
| 407 |
|
$color['images']['bg-bottom-left'] = array( |
| 408 |
|
'file' => 'images/color/blank-bottom-left.png', |
| 409 |
|
'fill' => array( |
| 410 |
|
array('type' => 'solid', |
| 411 |
|
'x' => 0, |
| 412 |
|
'y' => 0, |
| 413 |
|
'width' => 55, |
| 414 |
|
'height' => 35, |
| 415 |
|
'colors' => array('base'), |
| 416 |
|
), |
| 417 |
|
), |
| 418 |
|
'transparent color' => '#000000', |
| 419 |
|
'slices' => array( |
| 420 |
|
'images/bottom-left.png' => array('x' => 0, |
| 421 |
|
'y' => 0, |
| 422 |
|
'width' => 234, |
| 423 |
|
'height' => 35 |
| 424 |
|
), |
| 425 |
|
), |
| 426 |
|
); |
| 427 |
|
|
| 428 |
|
|
| 429 |
|
$color['images']['bg-bottom-right'] = array( |
| 430 |
|
'file' => 'images/color/blank-bottom-right.png', |
| 431 |
|
'fill' => array( |
| 432 |
|
array('type' => 'solid', |
| 433 |
|
'x' => 190, |
| 434 |
|
'y' => 0, |
| 435 |
|
'width' => 55, |
| 436 |
|
'height' => 35, |
| 437 |
|
'colors' => array('base'), |
| 438 |
|
), |
| 439 |
|
), |
| 440 |
|
'transparent color' => '#000000', |
| 441 |
|
'slices' => array( |
| 442 |
|
'images/bottom-right.png' => array('x' => 0, |
| 443 |
|
'y' => 0, |
| 444 |
|
'width' => 234, |
| 445 |
|
'height' => 35 |
| 446 |
|
), |
| 447 |
|
), |
| 448 |
|
); |
| 449 |
|
|
| 450 |
|
return $color; |
| 451 |
|
} |