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 | |
| // Change the columns for the releases list screen | |
| function change_columns( $cols ) { | |
| $cols = array( | |
| 'cb' => '<input type="checkbox" />', | |
| 'featimg' => 'Featured Image', | |
| 'excerpt' => 'Excerpt?', | |
| 'title' => 'Title', | |
| 'artist' => 'Artist', | |
| 'catno' => 'Cat#', |
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 | |
| $title = get_the_title(); | |
| $thumbnail = get_the_post_thumbnail(); | |
| echo '<img src="'; | |
| if ( $thumbnail ) { | |
| $imageid = get_post_thumbnail_id(); | |
| $imagesrc = wp_get_attachment_image_src($imageid, 'full'); | |
| echo $imagesrc[0] . '" alt="'; | |
| } else { | |
| $themefolder = get_bloginfo('template_directory'); |
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 | |
| $content = get_the_content(); | |
| if( !empty( $content ) ) { | |
| echo '<div class="content">'; | |
| the_content(); | |
| echo '</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
| <?php | |
| if ( has_category() ) { | |
| echo '<span>'; | |
| $categories = get_the_category(); | |
| $total = count( $categories ); | |
| $catcount = 1; | |
| foreach( $categories as $category ) { | |
| $catname = $category->cat_name; | |
| echo $catname; | |
| if ( $catcount != $total ) { |
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
| <style> | |
| div.questions {padding:4em 0; clear:both} | |
| div.questions h2 {font-size:2em; color:#111} | |
| div.questions ul {margin:2em auto; max-width:800px; padding:0; list-style:none; font-size:1em; line-height:3em} | |
| div.questions ul li {border-top:1px solid #DDD} | |
| div.questions ul li a {color:#07F; border-bottom:1px solid transparent; -webkit-transition:border-color 0.5s ease-in-out; -moz-transition:border-color 0.5s ease-in-out; -o-transition:border-color 0.5s ease-in-out; transition:border-color 0.5s ease-in-out} | |
| div.questions ul li a:hover {border-color:#07F} | |
| div.faqs {background-color:#DDD; padding:1em 0; clear:both} | |
| div.faqs dl {width:100%; max-width:800px; margin:0 auto} | |
| div.faqs dl dt {font-size:3em; color:#111; margin:0 0 1em 0; padding-top:2em} |
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
| <style> | |
| /* Standard fields and elements */ | |
| div.wpcf7 form.wpcf7-form label {} | |
| div.wpcf7 form.wpcf7-form input.wpcf7-text, | |
| div.wpcf7 form.wpcf7-form textarea {width:calc(98% - 2px); padding:0.4em 1%; border-width:1px; border-style:solid} | |
| div.wpcf7 form.wpcf7-form select {} | |
| div.wpcf7 form.wpcf7-form input.wpcf7-submit {} | |
| /* Validation and messages */ | |
| div.wpcf7 form.wpcf7-form span.wpcf7-not-valid-tip {display:block; font-size:1em} /* the prompt that appears under a field */ | |
| div.wpcf7 form.wpcf7-form div.wpcf7-response-output {margin:2em 0.5em 1em 0.5em; padding:0.2em 1em; border-width:2px; border-style:solid} /* the larger alert that appears under the form following a submission */ |
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
| <style> | |
| div#map {width: 100%; height: 40vh} | |
| </style> | |
| <?php | |
| if ( is_page( 'Contact' ) ) { | |
| $api_key = get_field('api_key'); | |
| $marker = get_field('marker_image'); | |
| $latitude = get_field('latitude'); | |
| $longitude = get_field('longitude'); | |
| $zoom = get_field('zoom'); |
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 | |
| global $post; | |
| $args = array( | |
| 'posts_per_page' => 15, | |
| 'post_type' => 'post', | |
| 'meta_query' => array( | |
| array( | |
| 'key' => 'feature', | |
| 'value' => 0 | |
| ) |
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
| <style> | |
| ul {margin:0; padding:0; list-style:none; overflow:auto} | |
| ul li {float:left} | |
| ul.half li {width:50%} | |
| ul.thirds li {width:33.33%; width:calc(100% / 3)} | |
| ul.quarters li {width:25%} | |
| </style> | |
| <?php | |
| $args = array( | |
| 'posts_per_page' => 100, |