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 | |
| $obj = new stdClass(); | |
| echo 'Object in var: '; | |
| var_dump( $obj == true ); | |
| echo '<hr>'; | |
| echo 'Non-existent var: '; | |
| @var_dump( $nonexistent_obj == true ); |
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 | |
| add_shortcode( 'format_test', 'test_shortcode' ); | |
| function test_shortcode( $atts ) | |
| { | |
| // ignore $atts | |
| return "<div class='test'>This\ntext\n\nshould all appear\n\n\n\non one line if shortcode output is untouched.</div>"; | |
| } |
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 class="vfd-donor-ticker"> | |
| <div class="vfd-donor-ticker-wrap"> | |
| <ul> | |
| <li> | |
| <span class="name"> | |
| Elvis Presley | |
| </span> | |
| <span class="amount red-text"> | |
| $200 | |
| </span> |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Testing</title> | |
| <style type="text/css"> | |
| /* Begin Photoshop Copy/Paste */ | |
| .Rounded_Rectangle_1 { | |
| border-style: solid; | |
| border-width: 1px; |
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 ramdin_the_content( $content ) | |
| { | |
| if ( is_user_logged_in() ) | |
| return $content; | |
| if ( 'product' == get_post_type() ) | |
| { | |
| $content = 'Please <a href="' . esc_url( site_url( '/wp-login.php' ) ) . '">login to view this product</a>.'; |
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 id="trends"> | |
| <?php | |
| $trends_posts = get_posts(array( | |
| 'tag_slug__in' => array( 'trends' ), | |
| 'posts_per_page' => 1 | |
| )); | |
| if ( count( $trends_posts ) == 1 ) : | |
| $org_post = $GLOBALS['post']; |