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
| a[alt]:before { | |
| content: ""; | |
| display: block; | |
| width: 500px; | |
| height: 252px; | |
| background-image: url('http://bukk.it/curses.gif'); | |
| } |
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 fublo_gf_profile_update( $entry, $form ) | |
| { | |
| // make sure that the user is logged in | |
| // we shouldn't get here because the form should check for logged in users... | |
| if ( !is_user_logged_in() ) | |
| { | |
| wp_redirect( home_url() ); | |
| exit; |
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
| <p>Sed consequat <a href="#">dapibus mauris vitae sagittis</a>. Phasellus pellentesque <b>magna commodo</b> purus dictum euismod. <em>Vivamus ac orci vel purus</em> lobortis faucibus. <strong>Nullam porttitor</strong> tincidunt sodales. Nullam in orci sit amet purus euismod gravida nec <i>at metus</i>. Proin sit amet lorem lectus, convallis ornare massa.</p> | |
| <ins>In at sodales nisl. In lacus libero, egestas eget venenatis vitae, posuere porttitor elit.</ins> | |
| <p>Quisque laoreet <code>auctor felis</code> at congue. Ut nisl eros, <abbr title="abbr">dignissim</abbr> eget auctor non, mattis vitae dolor. Donec posuere <kbd>massa</kbd> eu dolor commodo luctus. In at sodales nisl. In lacus libero, egestas eget venenatis vitae, posuere porttitor elit. <dfn>Vivamus vel tristique magna</dfn>. Morbi non elit ante, sed venenatis diam. Vivamus vehicula orci sed quam aliquet sagittis. Quisque auctor placerat pharetra.</p> | |
| <pre> | |
| p { | |
| font-size:1em; | |
| <mark>margin-bottom: 1.5em;</mark> | |
| } | |
| </pre> | |
| <h2>Vivamus vel tristique magna. |
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 in_array_r($needle, $haystack) { | |
| $found = false; | |
| foreach ($haystack as $item) { | |
| if ($item === $needle) { | |
| $found = true; | |
| break; | |
| } elseif (is_array($item)) { | |
| $found = in_array_r($needle, $item); |
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 | |
| // Force update our username (user_login) | |
| global $wpdb; | |
| $tablename = $wpdb->prefix . "users"; | |
| // method 1 | |
| //$sql = $wpdb->prepare("UPDATE %s SET user_login=%s WHERE ID=%d", $tablename, $user_email, $user_id); | |
| //$wpdb->query($sql); | |
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 past/future events filter | |
| add_action( 'restrict_manage_posts', 'my_add_past_prev_filter' ); | |
| function my_add_past_prev_filter() { | |
| global $typenow; | |
| // get our time period filter (if applied) | |
| $time_period = $_GET['time_period']; | |
| // set our select options |
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 category filters to WP custom post types | |
| add_action( 'restrict_manage_posts', 'my_add_category_filters' ); | |
| function my_add_category_filters() { | |
| global $typenow; | |
| if( $typenow == "event" ){ | |
| $taxonomy = 'event_type'; | |
| } | |
| elseif( $typenow == "guideline" ){ |
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 PDF filter to media library | |
| add_filter( 'post_mime_types', 'modify_post_mime_types' ); | |
| function modify_post_mime_types( $post_mime_types ) { | |
| // select the mime type, here: 'application/pdf' | |
| // then we define an array with the label values | |
| $post_mime_types['application/pdf'] = array( __( 'PDFs' ), __( 'Manage PDFs' ), _n_noop( 'PDF <span class="count">(%s)</span>', 'PDFs <span class="count">(%s)</span>' ) ); | |
| // then we return the $post_mime_types variable | |
| return $post_mime_types; |
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 | |
| $morestring = '<!--more-->'; | |
| $explode_content = explode( $morestring, $post->post_content ); | |
| $content_before = apply_filters( 'the_content', $explode_content[0] ); | |
| $content_after = apply_filters( 'the_content', $explode_content[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
| /* for <a href="#" class="logo"><img src="..."></a> */ | |
| .logo, | |
| .logo:before { | |
| height: 75px; | |
| width: 275px; | |
| display: block; } | |
| .logo { | |
| position: relative; } |