This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if( !function_exists( 'enliven_get_color_scheme_string' ) ){ | |
function enliven_get_color_scheme_string(){ | |
$css = ' | |
a { | |
color: %3$s; | |
} | |
a:hover, a:focus { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// File ../inc/functions.php | |
// Line 153 to 159 | |
if( ! empty( $value['font_size'] ) ){ | |
$tmp .= sprintf( ' font-size: %spx; ', $value['font_size'] ); | |
} | |
if( ! empty( $value['line_height'] ) ){ | |
$tmp .= sprintf( ' line-height: %spx; ', $value['line_height'] ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// File ../inc/functions.php | |
// Line 153 to 159 | |
if( ! empty( $value['font_size'] ) ){ | |
$tmp .= sprintf( ' font-size: %s; ', $value['font_size'] ); | |
} | |
if( ! empty( $value['line_height'] ) ){ | |
$tmp .= sprintf( ' line-height: %s; ', $value['line_height'] ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Remove warning : Invalid argument supplied for foreach() on functions.php on line 451 | |
* @version 1.2 | |
* | |
* Open file: wp-content/themes/enliven/inc/functions.php | |
* | |
* Select codes from 444 to 458 | |
* Replace it by new codes below: | |
* | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function ak_convert_hex2rgba($color, $opacity = false) { | |
$default = 'rgb(0,0,0)'; | |
if (empty($color)) | |
return $default; | |
if ($color[0] == '#') | |
$color = substr($color, 1); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$begin_ID = 1; | |
$end_ID = 10; | |
$items = array(); | |
for ($i = $begin_ID; $i <= $end_ID; $i++) { | |
$items[] = $i; | |
} |