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 you just see a blank page instead of an error reporting and you have no server access so you can't edit php configuration files like php.ini try this: | |
| // create a new file in which you include the faulty script: | |
| error_reporting(E_ALL); | |
| ini_set("display_errors", 1); | |
| include("file_with_errors.php"); | |
| // execute this file instead of the faulty script file |
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 | |
| error_reporting(E_ERROR | E_PARSE | E_NOTICE); | |
| ?> |
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
| div { | |
| overflow: auto; | |
| } |
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
| /* | |
| * apply a natural box layout model to all elements | |
| * http://www.paulirish.com/2012/box-sizing-border-box-ftw/ | |
| */ | |
| *, *:before, *:after { | |
| -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; | |
| } |
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
| /** | |
| * RETORNA URL DO POST_THUMBNAIL PARA BACKGROUND-IMAGE | |
| * @param int: get_the_ID() | |
| * @param string: thumbnail, medium, large, full | |
| **/ | |
| function post_thumbnail_url($post_id, $size = 'thumbnail'){ | |
| $thumb = wp_get_attachment_image_src(get_post_thumbnail_id($post_id), $size ); | |
| $url = $thumb[0]; | |
| return $url; | |
| } |
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
| .fb_iframe_widget > span { | |
| } | |
| .fb-comments, | |
| .fb-comments iframe[style], | |
| .fb-comments > span { | |
| width: 100% !important; | |
| } |
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
| html { | |
| /* Remove 300ms touch delay in IE */ | |
| -ms-touch-action: manipulation; | |
| touch-action: manipulation; | |
| } |
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
| if(!function_exists('converte_query_result_em_array_of_objects')): | |
| /** | |
| * CONVERTE ARRAY DE QUERY RESULT | |
| * EM ARRAY DE OBJETOS PARA ACESSO DIRETO | |
| **/ | |
| function converte_query_result_em_array_of_objects($array){ | |
| if(is_array($array) && is_resource($array)): | |
| $output = array(); | |
| while($row = mysql_fetch_assoc($array)): $output[] = (object)$row; endwhile; | |
| return $output; |
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
| include(locate_template('your-template-name.php')); | |
| //original here: http://keithdevon.com/passing-variables-to-get_template_part-in-wordpress/ |
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
| **/.sass-cache | |
| **/.sass-cache/* | |
| **.sass-cache** |