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
| /** | |
| * BOOTSTRAP: SIZE EXTRA LARGE | |
| */ | |
| @screen-xl-min: 1480px; | |
| @screen-lg-max: (@screen-xl-min - 1); | |
| @container-extra-large-desktop: ((1420px + @grid-gutter-width)); | |
| @container-xl: @container-extra-large-desktop; | |
| @modal-xl: 1100px; |
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 isset_get( $array, $key, $default = null ) { | |
| return isset( $array[ $key ] ) ? $array[ $key ] : $default; | |
| } | |
| /* | |
| * In Wordpress, the most common PHP warning is when it uses an array index without check if that index is valid. | |
| * So, you have to ask if the array index is valid: | |
| * if( isset( $array['index'] ) ) | |
| * And then you can use it: |
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
| # BEGIN Oropesa | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteCond %{HTTP_HOST} ^www.oropensando.com$ [NC] | |
| RewriteRule ^(.*)$ http://oropensando.com/$1 [L,R=301] | |
| </IfModule> | |
| # END Oropesa |
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 | |
| /** | |
| * Use: | |
| * $array = ('Hi', 'World') | |
| * $array = manageArray('Foo, Bar Foobar', 'World'); | |
| * // output: | |
| * // $array = ('Hi', 'Foo', 'Bar', 'Foobar') | |
| */ | |
| function easyArrayManage ($array, $addElements = '', $removeElements = '') { |
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 hex2rgba($hex, $a = '1') { | |
| $hex = str_replace('#', '', $hex); | |
| if(strlen($hex) === 3) { | |
| $r = hexdec( substr($hex,0,1) . substr($hex,0,1) ); | |
| $g = hexdec( substr($hex,1,1) . substr($hex,1,1) ); | |
| $b = hexdec( substr($hex,2,1) . substr($hex,2,1) ); | |
| } else { | |
| $r = hexdec( substr($hex,0,2) ); |
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 | |
| /** | |
| * Cast string to array. The separator is space ' ' or comma ','. | |
| * @param $string | |
| * @return array | |
| */ | |
| function string2array($string) { | |
| $array = array(); | |
| if( is_string($string) ) |
NewerOlder