diff --git anon-upload-template.php anon-upload-template.php
index 46c4048..af9ae0a 100755
|
|
|
function anon_upload_css() { |
| 29 | 29 | padding-top: 10px; |
| 30 | 30 | } |
| 31 | 31 | |
| | 32 | .page-template-anon-upload-template-php #footer { |
| | 33 | position: absolute; |
| | 34 | bottom: 0; |
| | 35 | right: 0; |
| | 36 | left: 0; |
| | 37 | } |
| | 38 | |
| | 39 | .video-upload { |
| | 40 | padding-bottom: 70px; |
| | 41 | } |
| | 42 | |
| 32 | 43 | .noscript-show p { |
| 33 | 44 | margin: 0 !important; |
| 34 | 45 | } |
| … |
… |
function anon_upload_css() { |
| 40 | 51 | |
| 41 | 52 | .video-upload-left { |
| 42 | 53 | max-width: 550px; |
| 43 | | margin: 15px; |
| 44 | 54 | } |
| 45 | 55 | |
| 46 | 56 | .video-upload-right { |
| 47 | | margin: -25px 15px 0; |
| 48 | | } |
| 49 | | @media screen and ( min-width:941px ) { |
| 50 | | .video-upload-right { |
| 51 | | float: right; |
| 52 | | width: 390px; |
| 53 | | margin: -25px 0 25px; |
| 54 | | } |
| | 57 | float: right; |
| | 58 | width: 390px; |
| | 59 | margin: -25px 0 25px; |
| 55 | 60 | } |
| 56 | 61 | |
| 57 | 62 | .video-upload p { |
| … |
… |
function anon_upload_css() { |
| 102 | 107 | color: #333; |
| 103 | 108 | background-color: #fff; |
| 104 | 109 | padding: 4px; |
| 105 | | width: 98%; |
| | 110 | width: 329px; |
| 106 | 111 | max-width: 329px; |
| 107 | 112 | } |
| 108 | 113 | |
| 109 | 114 | .video-upload-left ul.cats-checkboxes { |
| | 115 | margin-left: 130px; |
| 110 | 116 | height: 150px; |
| 111 | 117 | overflow: auto; |
| 112 | 118 | } |
| … |
… |
function anon_upload_css() { |
| 120 | 126 | border-color: #bbb; |
| 121 | 127 | } |
| 122 | 128 | |
| 123 | | .video-upload-left #wptv_honey_container { |
| 124 | | display: none; |
| 125 | | } |
| | 129 | .video-upload-left #wptv_honey_container { |
| | 130 | display: none; |
| | 131 | } |
| 126 | 132 | |
| 127 | 133 | #video-upload-form p.last { |
| 128 | 134 | margin: 5px 80px 25px; |
| … |
… |
function anon_upload_css() { |
| 163 | 169 | display: inline; |
| 164 | 170 | width: auto; |
| 165 | 171 | } |
| | 172 | |
| | 173 | #wptv_video_producer_username { |
| | 174 | margin: 22px 0; |
| | 175 | } |
| 166 | 176 | </style> |
| 167 | 177 | <?php |
| 168 | 178 | } |
| … |
… |
get_header(); |
| 173 | 183 | |
| 174 | 184 | $message = ''; |
| 175 | 185 | |
| 176 | | if ( !empty($_REQUEST['error']) ) { |
| | 186 | if ( !empty( $_REQUEST['error'] ) ) { |
| 177 | 187 | $message = (int) $_REQUEST['error']; |
| 178 | 188 | |
| 179 | 189 | switch ( $message ) { |
| … |
… |
if ( !empty($_REQUEST['error']) ) { |
| 208 | 218 | case 13: |
| 209 | 219 | $message = "Error: please leave the first field empty. (It helps us know you're not a spammer.)"; |
| 210 | 220 | break; |
| | 221 | case 14: |
| | 222 | $message = "Error: invalid WordPress.org username given for Producer."; |
| | 223 | break; |
| 211 | 224 | } |
| 212 | 225 | $message = '<div class="error"><p>' . $message . '</p></div>'; |
| 213 | 226 | } elseif ( !empty($_REQUEST['success']) ) { |
| … |
… |
if ( !empty($_REQUEST['error']) ) { |
| 306 | 319 | ?> |
| 307 | 320 | </ul> |
| 308 | 321 | </div> |
| 309 | | |
| 310 | 322 | <p> |
| 311 | | <label for="wptv_video_producer"><?php esc_html_e( 'Video producer' ); ?></label> |
| 312 | | <input type="text" id="wptv_video_producer" name="wptv_video_producer" value="" /> |
| | 323 | <label for="wptv_video_producer_username"><?php esc_html_e( 'Producer WordPress.org Username' ); ?></label> |
| | 324 | <input type="text" id="wptv_video_producer_username" name="wptv_video_producer_username" value="" /> |
| 313 | 325 | </p> |
| 314 | 326 | <p> |
| 315 | 327 | <label for="wptv_speakers"><?php esc_html_e( 'Speakers' ); ?></label> |
diff --git category-wordcamptv.php category-wordcamptv.php
index 53bdcac..6f74079 100755
|
|
|
global $wptv; |
| 16 | 16 | ?> |
| 17 | 17 | <div class="wptv-hero group"> |
| 18 | 18 | <div class="container"> |
| 19 | | <div class="wptv-category-title"> |
| 20 | | <h2 class="page-title"><?php single_term_title(); ?></h2> |
| 21 | | <div class="desc"><?php echo category_description(); ?></div> |
| 22 | | </div> |
| | 19 | |
| | 20 | <h2 class="page-title"><?php single_term_title(); ?></h2> |
| | 21 | <div class="desc"><?php echo category_description(); ?></div> |
| 23 | 22 | |
| 24 | 23 | <?php if ( $featured->have_posts() ) : $featured->the_post(); ?> |
| 25 | 24 | <div class="main-video"> |
diff --git front-page.php front-page.php
index 8d12777..81ea289 100755
|
|
|
get_header(); ?> |
| 24 | 24 | <h3> |
| 25 | 25 | <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>" class="video-title"><?php the_title(); ?></a> |
| 26 | 26 | <?php $wptv->the_event( '<strong class="video-event">', '</strong>' ); ?> |
| 27 | | </h3> |
| | 27 | </h3> |
| 28 | 28 | </div><!-- .main-video --> |
| 29 | 29 | <?php endwhile; // $featured->have_posts ?> |
| 30 | 30 | |
diff --git functions.php functions.php
old mode 100755
new mode 100644
index a33be88..86abe50
|
|
|
class WordPressTV_Theme { |
| 164 | 164 | global $post; |
| 165 | 165 | |
| 166 | 166 | $slides_url = get_post_meta( $post->ID, '_wptv_slides_url', true ); |
| | 167 | $producer_username = get_post_meta( $post->ID, '_wptv_producer_username', true ); |
| 167 | 168 | wp_nonce_field( 'edit-video-info', 'video_info_metabox_nonce' ); |
| 168 | 169 | |
| 169 | 170 | ?> |
| … |
… |
class WordPressTV_Theme { |
| 172 | 173 | <label for="wptv-slides-url">Slides URL</label> |
| 173 | 174 | <input type="text" class="widefat" id="wptv-slides-url" name="_wptv_slides_url" value="<?php echo esc_url( $slides_url ); ?>" /> |
| 174 | 175 | </p> |
| 175 | | |
| | 176 | <p> |
| | 177 | <label for="wptv-producer-username">Video Producer WordPress.org Username</label> |
| | 178 | <input type="text" class="widefat" id="wptv-producer-username" name="_wptv_producer_username" value="<?php echo sanitize_user( $producer_username, true ); ?>" /> |
| | 179 | </p> |
| 176 | 180 | <?php |
| 177 | 181 | } |
| 178 | 182 | |
| … |
… |
class WordPressTV_Theme { |
| 198 | 202 | } else { |
| 199 | 203 | delete_post_meta( $post_id, '_wptv_slides_url' ); |
| 200 | 204 | } |
| | 205 | |
| | 206 | $producer_username = sanitize_user( $_POST['_wptv_producer_username'], true ); |
| | 207 | |
| | 208 | if ( $producer_username ) { |
| | 209 | update_post_meta( $post_id, '_wptv_producer_username', $producer_username ); |
| | 210 | } else { |
| | 211 | delete_post_meta( $post_id, '_wptv_producer_username' ); |
| | 212 | } |
| 201 | 213 | } |
| 202 | 214 | |
| 203 | 215 | /** |
| … |
… |
function wptv_enqueue_scripts() { |
| 772 | 784 | wp_enqueue_style( 'wptv-ie', get_template_directory_uri() . '/ie6.css', array( 'wptv-style' ) ); |
| 773 | 785 | wp_style_add_data( 'wptv-ie', 'conditional', 'IE 6' ); |
| 774 | 786 | |
| 775 | | wp_register_script( 'wptv-dropdowns', get_template_directory_uri() . '/js/dropdowns.js' ); |
| 776 | | wp_enqueue_script( 'wptv-dropdowns', array( 'jquery' ) ); |
| 777 | | wp_enqueue_script( 'jquery-ui-accordion' ); |
| 778 | | |
| 779 | 787 | if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { |
| 780 | 788 | wp_enqueue_script( 'comment-reply' ); |
| 781 | 789 | } |
| 782 | 790 | } |
| 783 | 791 | add_action( 'wp_enqueue_scripts', 'wptv_enqueue_scripts' ); |
| 784 | 792 | |
| 785 | | function wptv_menu_script() { |
| 786 | | ?> |
| 787 | | <script> |
| 788 | | jQuery(document).ready(function($) { |
| 789 | | $( "#menu-mobile" ).accordion( { |
| 790 | | collapsible: true, |
| 791 | | active: false |
| 792 | | } ); |
| 793 | | }); |
| 794 | | </script> |
| 795 | | <?php |
| 796 | | } |
| 797 | | add_action( 'wp_head', 'wptv_menu_script' ); |
| 798 | 793 | /** |
| 799 | 794 | * Create a nicely formatted and more specific title element text for output |
| 800 | 795 | * in head of document, based on current view. |
| … |
… |
function wptv_excerpt_slides( $excerpt ) { |
| 846 | 841 | return $excerpt; |
| 847 | 842 | } |
| 848 | 843 | add_filter( 'get_the_excerpt', 'wptv_excerpt_slides' ); |
| | 844 | |
| | 845 | /** |
| | 846 | * When given a string, returns boolean based on whether the string matches a valid w.org username |
| | 847 | * |
| | 848 | * @param $username |
| | 849 | * |
| | 850 | * @return bool |
| | 851 | */ |
| | 852 | function dotorg_username_exists( $username ) { |
| | 853 | $args = array( |
| | 854 | 'redirection' => 0, |
| | 855 | ); |
| | 856 | $url = 'https://wordpress.org/grav-redirect.php?user=' . $username; |
| | 857 | $response = wp_remote_get( $url, $args ); |
| | 858 | $response = wp_remote_retrieve_headers( $response ); |
| | 859 | |
| | 860 | if ( validate_username( $username ) && array_key_exists( 'location', $response ) ) { |
| | 861 | $result = ( ! strpos( $response['location'], 'd=mm' ) ) ? true : false; |
| | 862 | } else { |
| | 863 | $result = false; |
| | 864 | } |
| | 865 | return $result; |
| | 866 | } |
| | 867 | No newline at end of file |
diff --git header.php header.php
index 64eefa8..7cbab9d 100755
|
|
|
global $wptv; |
| 14 | 14 | |
| 15 | 15 | <head> |
| 16 | 16 | <meta charset="<?php bloginfo( 'charset' ); ?>"> |
| 17 | | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 18 | 17 | <title><?php wp_title( '|', true, 'right' ); ?></title> |
| 19 | 18 | |
| 20 | 19 | <link rel="alternate" type="application/rss+xml" title="<?php esc_attr_e( 'WordPress.tv RSS Feed', 'wptv' ); ?>" href="http://wordpress.tv/feed/" /> |
| … |
… |
global $wptv; |
| 41 | 40 | <div id="menu"> |
| 42 | 41 | <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?> |
| 43 | 42 | </div> |
| 44 | | <div id="menu-mobile"> |
| 45 | | <span class="open">Navigation</span> |
| 46 | | <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?> |
| 47 | | </div> |
| 48 | 43 | |
| 49 | 44 | </div><!-- .sleeve --> |
| 50 | 45 | </div><!-- #header --> |
diff --git plugins/wordpresstv-anon-upload/anon-upload.php plugins/wordpresstv-anon-upload/anon-upload.php
index 18bca59..c1df414 100755
|
|
|
class WPTV_Anon_Upload { |
| 47 | 47 | function validate() { |
| 48 | 48 | $text_fields = array( |
| 49 | 49 | 'wptv_video_title', |
| 50 | | 'wptv_video_producer', |
| | 50 | 'wptv_video_producer_username', |
| 51 | 51 | 'wptv_speakers', |
| 52 | 52 | 'wptv_event', |
| 53 | 53 | 'wptv_slides_url' |
| … |
… |
class WPTV_Anon_Upload { |
| 62 | 62 | return $this->error( 13 ); |
| 63 | 63 | } |
| 64 | 64 | |
| | 65 | if ( isset ( $_POST['wptv_video_producer_username'] ) && dotorg_username_exists( $_POST['wptv_video_producer_username'] ) == false ) { |
| | 66 | return $this->error( 14 ); |
| | 67 | } |
| | 68 | |
| 65 | 69 | if ( ! is_user_logged_in() ) { |
| 66 | 70 | if ( empty( $_POST['wptv_uploaded_by'] ) ) { |
| 67 | 71 | return $this->error( 10 ); |
| … |
… |
class WPTV_Anon_Upload { |
| 186 | 190 | |
| 187 | 191 | if ( ! empty( $name_parts['extension'] ) ) { |
| 188 | 192 | if ( ! in_array( strtolower( $name_parts['extension'] ), array( |
| 189 | | 'avi', |
| 190 | | 'mov', |
| 191 | | 'qt', |
| 192 | | 'mpeg', |
| 193 | | 'mpg', |
| 194 | | 'mpe', |
| 195 | | 'mp4', |
| 196 | | 'm4v', |
| 197 | | 'asf', |
| 198 | | 'asx', |
| 199 | | 'wax', |
| 200 | | 'wmv', |
| 201 | | 'wmx', |
| 202 | | 'ogv', |
| 203 | | '3gp', |
| 204 | | '3g2', |
| 205 | | ), true ) |
| | 193 | 'avi', |
| | 194 | 'mov', |
| | 195 | 'qt', |
| | 196 | 'mpeg', |
| | 197 | 'mpg', |
| | 198 | 'mpe', |
| | 199 | 'mp4', |
| | 200 | 'm4v', |
| | 201 | 'asf', |
| | 202 | 'asx', |
| | 203 | 'wax', |
| | 204 | 'wmv', |
| | 205 | 'wmx', |
| | 206 | 'ogv', |
| | 207 | '3gp', |
| | 208 | '3g2', |
| | 209 | ), true ) |
| 206 | 210 | ) { |
| 207 | 211 | return $this->error( 2 ); |
| 208 | 212 | } |
| … |
… |
class WPTV_Anon_Upload { |
| 229 | 233 | // Add default cat according to the "This is a WC video" checkbox |
| 230 | 234 | if ( ! empty( $_posted['wptv_video_wordcamp'] ) ) { |
| 231 | 235 | $anon_post['post_category'] = array( '12784353' ); // add the "WordCampTV" category |
| 232 | | } |
| 233 | | else { |
| | 236 | } else { |
| 234 | 237 | $anon_post['post_category'] = array( '1' ); // Uncategorized |
| 235 | 238 | } |
| 236 | 239 | |
| … |
… |
class WPTV_Anon_Upload { |
| 269 | 272 | $anon_author_email = $this->sanitize_text( $_posted['wptv_email'] ); |
| 270 | 273 | } |
| 271 | 274 | |
| 272 | | $video_title = $this->sanitize_text( $_posted['wptv_video_title'] ); |
| 273 | | $video_producer = $this->sanitize_text( $_posted['wptv_video_producer'] ); |
| 274 | | $speakers = $this->sanitize_text( $_posted['wptv_speakers'] ); |
| 275 | | $event = $this->sanitize_text( $_posted['wptv_event'] ); |
| 276 | | $description = $this->sanitize_text( $_posted['wptv_video_description'], false ); |
| 277 | | $language = $this->sanitize_text( $_posted['wptv_language'] ); |
| 278 | | $slides = $this->sanitize_text( $_posted['wptv_slides_url'] ); |
| 279 | | $ip = $_SERVER['REMOTE_ADDR']; |
| | 275 | $video_title = $this->sanitize_text( $_posted['wptv_video_title'] ); |
| | 276 | $video_producer_username = $this->sanitize_text( $_posted['wptv_video_producer_username'] ); |
| | 277 | $speakers = $this->sanitize_text( $_posted['wptv_speakers'] ); |
| | 278 | $event = $this->sanitize_text( $_posted['wptv_event'] ); |
| | 279 | $description = $this->sanitize_text( $_posted['wptv_video_description'], false ); |
| | 280 | $language = $this->sanitize_text( $_posted['wptv_language'] ); |
| | 281 | $slides = $this->sanitize_text( $_posted['wptv_slides_url'] ); |
| | 282 | $ip = $_SERVER['REMOTE_ADDR']; |
| 280 | 283 | |
| 281 | 284 | $categories = ''; |
| 282 | 285 | if ( ! empty( $_posted['post_category'] ) && is_array( $_posted['post_category'] ) ) { |
| … |
… |
class WPTV_Anon_Upload { |
| 289 | 292 | } |
| 290 | 293 | |
| 291 | 294 | $post_meta = array( |
| 292 | | 'attachment_id' => $attachment_id, |
| 293 | | 'submitted_by' => $anon_author, |
| 294 | | 'submitted_email' => $anon_author_email, |
| 295 | | 'title' => $video_title, |
| 296 | | 'producer' => $video_producer, |
| 297 | | 'speakers' => $speakers, |
| 298 | | 'event' => $event, |
| 299 | | 'language' => $language, |
| 300 | | 'categories' => $categories, |
| 301 | | 'description' => $description, |
| 302 | | 'slides' => $slides, |
| 303 | | 'ip' => $ip, |
| | 295 | 'attachment_id' => $attachment_id, |
| | 296 | 'submitted_by' => $anon_author, |
| | 297 | 'submitted_email' => $anon_author_email, |
| | 298 | 'title' => $video_title, |
| | 299 | 'producer_username' => $video_producer_username, |
| | 300 | 'speakers' => $speakers, |
| | 301 | 'event' => $event, |
| | 302 | 'language' => $language, |
| | 303 | 'categories' => $categories, |
| | 304 | 'description' => $description, |
| | 305 | 'slides' => $slides, |
| | 306 | 'ip' => $ip, |
| 304 | 307 | ); |
| 305 | 308 | |
| 306 | 309 | $post_meta['video_guid'] = $video_data->guid; |
| … |
… |
class WPTV_Anon_Upload { |
| 327 | 330 | |
| 328 | 331 | $attachment_post = get_post( $meta['attachment_id'] ); |
| 329 | 332 | |
| 330 | | $embed_args = array( |
| | 333 | $embed_args = array( |
| 331 | 334 | 'format' => 'fmt_std', |
| 332 | 335 | 'width' => 600, |
| 333 | 336 | 'context' => 'admin', |
| … |
… |
class WPTV_Anon_Upload { |
| 335 | 338 | $embed_args['blog_id'] = get_current_blog_id(); |
| 336 | 339 | $embed_args['post_id'] = $meta['attachment_id']; |
| 337 | 340 | |
| 338 | | // Add slides index to meta (necessary for posts that were uploaded before the field was added) |
| 339 | | if ( ! array_key_exists( 'slides', $meta ) ) { |
| 340 | | $meta['slides'] = ''; |
| | 341 | // Add missing indexes to meta (necessary for posts that were uploaded before the fields were added) |
| | 342 | $new_fields = array( |
| | 343 | 'slides', |
| | 344 | 'producer_username', |
| | 345 | ); |
| | 346 | foreach ( $new_fields as $field ) { |
| | 347 | if ( ! array_key_exists( $field, $meta ) ) { |
| | 348 | $meta[$field] = ''; |
| | 349 | } |
| 341 | 350 | } |
| 342 | 351 | |
| 343 | 352 | ?> |
| … |
… |
class WPTV_Anon_Upload { |
| 401 | 410 | <tr> |
| 402 | 411 | <td> |
| 403 | 412 | <?php |
| 404 | | if ( function_exists( 'video_embed' ) ) { |
| 405 | | echo video_embed( $embed_args ); |
| 406 | | } |
| | 413 | if ( function_exists( 'video_embed' ) ) { |
| | 414 | echo video_embed( $embed_args ); |
| | 415 | } |
| 407 | 416 | ?> |
| 408 | 417 | </td> |
| 409 | 418 | </tr> |
| … |
… |
class WPTV_Anon_Upload { |
| 412 | 421 | <div class="anon-data"> |
| 413 | 422 | <div class="row"> |
| 414 | 423 | <p class="label">Submitted by:<br></p> |
| | 424 | |
| 415 | 425 | <p class="data"> |
| 416 | | <input type="text" readonly="readonly" value="<?php echo esc_attr( $meta['submitted_by'] ); ?>"/> |
| | 426 | <input type="text" readonly="readonly" |
| | 427 | value="<?php echo esc_attr( $meta['submitted_by'] ); ?>"/> |
| 417 | 428 | </p> |
| 418 | 429 | </div> |
| 419 | 430 | |
| 420 | 431 | <div class="row"> |
| 421 | 432 | <p class="label">Email:</p> |
| | 433 | |
| 422 | 434 | <p class="data"> |
| 423 | 435 | <a href="mailto:<?php echo esc_attr( $meta['submitted_email'] ); ?>?Subject=Your%20WordPress.tv%20submission"><?php echo esc_html( $meta['submitted_email'] ); ?></a> |
| 424 | 436 | </p> |
| … |
… |
class WPTV_Anon_Upload { |
| 426 | 438 | |
| 427 | 439 | <div class="row"> |
| 428 | 440 | <p class="label">IP Address:</p> |
| | 441 | |
| 429 | 442 | <p class="data"> |
| 430 | | <a href="<?php echo esc_url( add_query_arg( array( 'query' => $meta['ip'] ), 'http://en.utrace.de' ) ); ?>" target="_blank"><?php echo esc_html( $meta['ip'] ); ?></a> (opens in new tab, shows location of the IP) |
| | 443 | <a href="<?php echo esc_url( add_query_arg( array( 'query' => $meta['ip'] ), 'http://en.utrace.de' ) ); ?>" |
| | 444 | target="_blank"><?php echo esc_html( $meta['ip'] ); ?></a> (opens in new tab, shows |
| | 445 | location of the IP) |
| 431 | 446 | </p> |
| 432 | 447 | </div> |
| 433 | 448 | |
| 434 | 449 | <div class="row"> |
| 435 | 450 | <p class="label">Title:</p> |
| | 451 | |
| 436 | 452 | <p class="data"> |
| 437 | 453 | <input type="text" value="<?php echo esc_attr( $meta['title'] ); ?>"/> |
| 438 | 454 | <a class="button-secondary anon-approve" href="#title">Approve</a> |
| … |
… |
class WPTV_Anon_Upload { |
| 441 | 457 | |
| 442 | 458 | <div class="row"> |
| 443 | 459 | <p class="label">Language:</p> |
| | 460 | |
| 444 | 461 | <p class="data"> |
| 445 | 462 | <input type="text" value="<?php echo esc_attr( $meta['language'] ); ?>"/> |
| 446 | 463 | <a class="button-secondary anon-approve" href="#new-tag-language">Approve</a> |
| … |
… |
class WPTV_Anon_Upload { |
| 449 | 466 | |
| 450 | 467 | <div class="row"> |
| 451 | 468 | <p class="label">Categories:</p> |
| | 469 | |
| 452 | 470 | <p class="data" id="anon-approve-cats"> |
| 453 | 471 | <?php |
| 454 | | $cats = preg_replace( '/[^0-9,]+/', '', trim( $meta['categories'], ' ,' ) ); |
| 455 | | $cats = explode( ',', $cats ); |
| 456 | | foreach ( $cats as $cat ) { |
| 457 | | if ( intval( $cat ) ) { |
| 458 | | echo '<a href="#in-category-' . $cat . '" class="anon-cat-link" title="Click to approve">Unknown?</a>, '; |
| 459 | | } |
| | 472 | $cats = preg_replace( '/[^0-9,]+/', '', trim( $meta['categories'], ' ,' ) ); |
| | 473 | $cats = explode( ',', $cats ); |
| | 474 | foreach ( $cats as $cat ) { |
| | 475 | if ( intval( $cat ) ) { |
| | 476 | echo '<a href="#in-category-' . $cat . '" class="anon-cat-link" title="Click to approve">Unknown?</a>, '; |
| 460 | 477 | } |
| | 478 | } |
| 461 | 479 | ?> |
| 462 | 480 | </p> |
| 463 | 481 | </div> |
| 464 | 482 | |
| 465 | 483 | <div class="row"> |
| 466 | 484 | <p class="label">Event:</p> |
| | 485 | |
| 467 | 486 | <p class="data"> |
| 468 | 487 | <input type="text" value="<?php echo esc_attr( $meta['event'] ); ?>"/> |
| 469 | 488 | <a class="button-secondary anon-approve" href="#new-tag-event">Approve</a> |
| … |
… |
class WPTV_Anon_Upload { |
| 471 | 490 | </div> |
| 472 | 491 | |
| 473 | 492 | <div class="row"> |
| 474 | | <p class="label">Producer:</p> |
| | 493 | <p class="label">Producer w.org Username:</p> |
| | 494 | |
| 475 | 495 | <p class="data"> |
| 476 | | <input type="text" value="<?php echo esc_attr( $meta['producer'] ); ?>"/> |
| 477 | | <a class="button-secondary anon-approve" href="#new-tag-producer">Approve</a> |
| | 496 | <input type="text" value="<?php echo esc_attr( $meta['producer_username'] ); ?>"/> |
| | 497 | <a class="button-secondary anon-approve" href="#wptv-producer-username">Approve</a> |
| 478 | 498 | </p> |
| 479 | 499 | </div> |
| 480 | 500 | |
| 481 | 501 | <div class="row"> |
| 482 | 502 | <p class="label">Speakers:</p> |
| | 503 | |
| 483 | 504 | <p class="data"> |
| 484 | 505 | <input type="text" value="<?php echo esc_attr( $meta['speakers'] ); ?>"/> |
| 485 | 506 | <a class="button-secondary anon-approve" href="#new-tag-speakers">Approve</a> |
| … |
… |
class WPTV_Anon_Upload { |
| 488 | 509 | |
| 489 | 510 | <div class="row txtarea"> |
| 490 | 511 | <p class="label">Description:</p> |
| | 512 | |
| 491 | 513 | <p class="data"> |
| 492 | 514 | <textarea rows="10"><?php echo esc_html( $meta['description'] ); ?></textarea> |
| 493 | 515 | <a class="button-secondary anon-approve" href="#excerpt">Approve</a> |
| … |
… |
class WPTV_Anon_Upload { |
| 496 | 518 | |
| 497 | 519 | <div class="row"> |
| 498 | 520 | <p class="label">Slides:</p> |
| | 521 | |
| 499 | 522 | <p class="data"> |
| 500 | 523 | <input type="text" value="<?php echo esc_attr( $meta['slides'] ); ?>"/> |
| 501 | 524 | <a class="button-secondary anon-approve" href="#wptv-slides-url">Approve</a> |
| … |
… |
class WPTV_Anon_Upload { |
| 504 | 527 | |
| 505 | 528 | <div class="row"> |
| 506 | 529 | <p class="label">Edit attachment:</p> |
| | 530 | |
| 507 | 531 | <p class="data"> |
| 508 | | <a href="<?php echo esc_url( get_edit_post_link( $meta['attachment_id'] ) ); ?>" target="_blank"><?php echo esc_html( $attachment_post->post_title ); ?></a> |
| | 532 | <a href="<?php echo esc_url( get_edit_post_link( $meta['attachment_id'] ) ); ?>" |
| | 533 | target="_blank"><?php echo esc_html( $attachment_post->post_title ); ?></a> |
| 509 | 534 | </p> |
| 510 | 535 | </div> |
| 511 | 536 | </div> |
| … |
… |
class WPTV_Anon_Upload { |
| 539 | 564 | if (id.indexOf('#new-tag-') != -1) { |
| 540 | 565 | el.val(target.siblings('input[type="text"]').val()); |
| 541 | 566 | el.siblings('.tagadd').click(); |
| 542 | | } else if ('#title' == id || '#wptv-slides-url' == id) { |
| | 567 | } else if ('#title' == id || '#wptv-producer-username' == id) { |
| | 568 | el.val(target.siblings('input[type="text"]').val()); |
| | 569 | } else if ('#title' == id || '#wptv-slides-url' == id) { |
| 543 | 570 | el.val(target.siblings('input[type="text"]').val()); |
| 544 | 571 | } else if (id == '#excerpt') { |
| 545 | 572 | el.val(target.siblings('textarea').val()); |
diff --git sidebar-single.php sidebar-single.php
index 84a2fe6..14527a9 100755
|
|
|
|
| 81 | 81 | printf( '<a href="%s">Subtitle this video →</a>', esc_url( add_query_arg( 'video', $video->post_id, home_url( 'subtitle/' ) ) ) ); |
| 82 | 82 | } |
| 83 | 83 | } |
| 84 | | ?> |
| | 84 | |
| | 85 | // Credit video producer with link to their w.org profile |
| | 86 | $producer_username = get_post_meta( get_the_ID(), '_wptv_producer_username', true ); |
| | 87 | $producer_name = ( get_the_terms( get_the_ID(), 'producer' ) ) ? get_the_terms( get_the_ID(), 'producer' )[0]->name : $producer_username; |
| | 88 | |
| | 89 | if ( $producer_username ) { ?> |
| | 90 | <h5>Producer</h5> |
| | 91 | <div class="video-producer"> |
| | 92 | <a href="http://profiles.wordpress.org/<?php esc_attr_e( $producer_username ); ?>"><?php esc_attr_e( $producer_name ); ?></a> |
| | 93 | </div> |
| | 94 | <?php } ?> |
| | 95 | |
| 85 | 96 | </div><!-- .secondary-content --> |
diff --git style.css style.css
index fc417b9..7865023 100755
|
|
|
Author: Automattic |
| 7 | 7 | Author URI: http://automattic.com/ |
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | | /* |
| 11 | | Media breakpoints: |
| 12 | | large 940 |
| 13 | | medium 620 |
| 14 | | small 400 |
| 15 | | */ |
| 16 | | |
| 17 | 10 | /* meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/ */ |
| 18 | 11 | html, body, div, span, applet, object, iframe, |
| 19 | 12 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, |
| … |
… |
form, fieldset, address { |
| 216 | 209 | |
| 217 | 210 | #header { |
| 218 | 211 | margin-top: 10px; |
| | 212 | height: 57px; |
| 219 | 213 | } |
| 220 | | @media screen and ( max-width:940px ) { |
| 221 | | #header { |
| 222 | | padding: 0 10px; |
| 223 | | } |
| 224 | | } |
| 225 | | @media screen and ( min-width:601px ) { |
| 226 | | #header { |
| 227 | | height: 57px; |
| 228 | | } |
| 229 | | } |
| | 214 | |
| 230 | 215 | #header h1 { |
| 231 | 216 | padding-top: 8px; |
| 232 | 217 | float: left; |
| 233 | 218 | } |
| 234 | 219 | |
| 235 | 220 | #header .sleeve { |
| 236 | | max-width: 942px; |
| | 221 | width: 942px; |
| 237 | 222 | margin: 0 auto; |
| 238 | 223 | } |
| 239 | 224 | |
| … |
… |
form, fieldset, address { |
| 268 | 253 | color: #000 !important; |
| 269 | 254 | } |
| 270 | 255 | |
| 271 | | @media screen and ( min-width:401px ) { |
| 272 | | #searchform { |
| 273 | | float: right; |
| 274 | | margin-left: 15px; |
| 275 | | } |
| | 256 | #searchform { |
| | 257 | float: right; |
| | 258 | margin-left: 15px; |
| 276 | 259 | } |
| 277 | 260 | |
| 278 | 261 | #searchform #searchbox, |
| … |
… |
form, fieldset, address { |
| 295 | 278 | width: 130px; |
| 296 | 279 | } |
| 297 | 280 | |
| 298 | | @media screen and ( max-width:400px ) { |
| 299 | | #searchform #searchbox, |
| 300 | | #searchform input#s { |
| 301 | | width: 95%; |
| 302 | | } |
| 303 | | } |
| 304 | | |
| 305 | 281 | #searchform #searchbox { |
| 306 | 282 | margin-top: 15px; |
| 307 | 283 | } |
| 308 | 284 | |
| 309 | | /* Mobile menu */ |
| 310 | | @media screen and ( min-width:601px ) { |
| 311 | | #menu-mobile { |
| 312 | | display: none; |
| 313 | | } |
| 314 | | } |
| 315 | | |
| 316 | | @media screen and ( max-width:600px ) { |
| 317 | | #menu { |
| 318 | | display: none; |
| 319 | | } |
| 320 | | #menu-mobile { |
| 321 | | display: inline-block; |
| 322 | | } |
| 323 | | } |
| 324 | | |
| 325 | | #menu-mobile { |
| 326 | | width: 100%; |
| 327 | | text-align: center; |
| 328 | | font-size: 1.8em; |
| 329 | | line-height: 1.6em; |
| 330 | | margin: 10px 0 0 0; |
| 331 | | } |
| 332 | | #menu-mobile .open { |
| 333 | | cursor: pointer; |
| 334 | | color: #21759b; |
| 335 | | font-weight: bold; |
| 336 | | padding: 6px 20px; |
| 337 | | border: 1px solid; |
| 338 | | } |
| 339 | | #menu-mobile .open:hover { |
| 340 | | color: #d54e21; |
| 341 | | } |
| 342 | | /* Forms */ |
| 343 | | |
| 344 | 285 | input[type=submit], button, .button { |
| 345 | 286 | text-decoration: none; |
| 346 | 287 | -moz-border-radius: 5px; |
| … |
… |
input[type=submit]:active, button:active, .button:active { |
| 415 | 356 | ); |
| 416 | 357 | } |
| 417 | 358 | |
| 418 | | /* Intro */ |
| 419 | 359 | .intro { |
| 420 | 360 | font-size: 30px; |
| 421 | 361 | height: 64px; |
| … |
… |
div.sharedaddy.sd-rating-enabled .sd-like .post-likes-widget, div.sharedaddy.sd- |
| 1489 | 1429 | display: none; |
| 1490 | 1430 | } |
| 1491 | 1431 | |
| 1492 | | /* |
| 1493 | 1432 | #content { |
| 1494 | 1433 | width: 630px; |
| 1495 | 1434 | float: left; |
| 1496 | 1435 | } |
| 1497 | | */ |
| 1498 | 1436 | |
| 1499 | 1437 | #content .post { |
| 1500 | 1438 | margin-bottom: 20px; |
| … |
… |
div.sharedaddy.sd-rating-enabled .sd-like .post-likes-widget, div.sharedaddy.sd- |
| 1578 | 1516 | } |
| 1579 | 1517 | |
| 1580 | 1518 | #commentform textarea { |
| 1581 | | width: 96%; |
| | 1519 | width: 600px; |
| 1582 | 1520 | height: 100px; |
| 1583 | 1521 | margin-bottom: 5px; |
| 1584 | 1522 | } |
| … |
… |
div.sharedaddy.sd-rating-enabled .sd-like .post-likes-widget, div.sharedaddy.sd- |
| 1643 | 1581 | font-size: 10px; |
| 1644 | 1582 | } |
| 1645 | 1583 | |
| | 1584 | #footer { |
| | 1585 | clear: both; |
| | 1586 | height: 3.5em; |
| | 1587 | margin-bottom: 15px; |
| | 1588 | color: #888; |
| | 1589 | } |
| | 1590 | |
| 1646 | 1591 | #footer .automattic { |
| | 1592 | width: 400px; |
| | 1593 | float: right; |
| | 1594 | text-align: right; |
| 1647 | 1595 | font-size: 11px; |
| 1648 | 1596 | letter-spacing: 0.2em; |
| 1649 | | padding: 13px 2px 0 0; |
| | 1597 | line-height: 3em; |
| | 1598 | padding-top: 13px; |
| | 1599 | padding-right: 2px; |
| 1650 | 1600 | text-transform: uppercase; |
| 1651 | 1601 | line-height: 28px; |
| 1652 | 1602 | } |
| 1653 | 1603 | |
| 1654 | | @media screen and ( max-width:920px ) { |
| 1655 | | #footer .automattic { |
| 1656 | | width: 100%; |
| 1657 | | clear: both; |
| 1658 | | } |
| 1659 | | } |
| 1660 | | |
| 1661 | | @media screen and ( min-width:921px ) { |
| 1662 | | #footer .automattic { |
| 1663 | | width: 380px; |
| 1664 | | float: right; |
| 1665 | | text-align: right; |
| 1666 | | } |
| 1667 | | } |
| 1668 | | |
| 1669 | 1604 | .menu-footer-container { |
| 1670 | 1605 | float: left; |
| 1671 | 1606 | line-height: 4em; |
| … |
… |
div.sharedaddy.sd-rating-enabled .sd-like .post-likes-widget, div.sharedaddy.sd- |
| 1674 | 1609 | margin-bottom: 0; |
| 1675 | 1610 | } |
| 1676 | 1611 | |
| 1677 | | @media screen and ( min-width:621px ) { |
| 1678 | | .menu-footer-container li { |
| 1679 | | display: inline-block; |
| 1680 | | } |
| 1681 | | } |
| 1682 | | |
| 1683 | | @media screen and ( max-width:620px ) { |
| 1684 | | .dot { |
| 1685 | | display: none; |
| 1686 | | } |
| | 1612 | .menu-footer-container li { |
| | 1613 | display: inline-block; |
| 1687 | 1614 | } |
| 1688 | 1615 | |
| 1689 | 1616 | .menu-footer-container li:last-of-type .dot { |
| … |
… |
a { |
| 1863 | 1790 | } |
| 1864 | 1791 | |
| 1865 | 1792 | .container { |
| 1866 | | max-width: 940px; |
| | 1793 | width: 940px; |
| 1867 | 1794 | margin: auto; |
| 1868 | 1795 | } |
| 1869 | 1796 | |
| 1870 | 1797 | .primary-content { |
| | 1798 | float: left; |
| | 1799 | width: 700px; |
| 1871 | 1800 | margin: 0; |
| 1872 | 1801 | } |
| 1873 | 1802 | |
| 1874 | | @media screen and ( max-width:940px ) { |
| 1875 | | .primary-content { |
| 1876 | | padding: 0 10px; |
| 1877 | | } |
| 1878 | | } |
| 1879 | | |
| 1880 | | @media screen and ( min-width:941px ) { |
| 1881 | | .primary-content { |
| 1882 | | float: left; |
| 1883 | | max-width: 700px; |
| 1884 | | } |
| 1885 | | } |
| 1886 | | |
| 1887 | 1803 | .secondary-content { |
| 1888 | | margin: 0 10px; |
| 1889 | | } |
| 1890 | | |
| 1891 | | @media screen and ( min-width:941px ) { |
| 1892 | | .secondary-content { |
| 1893 | | float: right; |
| 1894 | | width: 170px; |
| 1895 | | margin: 0 0 50px 0; |
| 1896 | | } |
| | 1804 | float: right; |
| | 1805 | width: 170px; |
| | 1806 | margin: 0 0 50px 0; |
| 1897 | 1807 | } |
| 1898 | 1808 | |
| 1899 | 1809 | .miro { |
| … |
… |
a { |
| 1939 | 1849 | .nav-previous { |
| 1940 | 1850 | float: left; |
| 1941 | 1851 | } |
| | 1852 | |
| 1942 | 1853 | .primary-content #searchform { |
| 1943 | 1854 | float: none; |
| 1944 | 1855 | margin: 10px 0; |
| … |
… |
body, td, p, |
| 2020 | 1931 | } |
| 2021 | 1932 | |
| 2022 | 1933 | .page-title { |
| 2023 | | max-width: 940px; |
| | 1934 | width: 940px; |
| 2024 | 1935 | margin: auto; |
| 2025 | 1936 | } |
| 2026 | 1937 | |
| … |
… |
h5 { |
| 2187 | 2098 | background: #F0F0F0; |
| 2188 | 2099 | } |
| 2189 | 2100 | |
| 2190 | | @media screen and ( max-width:940px ) { |
| 2191 | | .wptv-hero { |
| 2192 | | padding: 30px 10px 10px; |
| 2193 | | } |
| 2194 | | } |
| 2195 | | |
| 2196 | 2101 | .wptv-hero .main-video { |
| 2197 | 2102 | background: #2f2f2f; |
| 2198 | 2103 | clear: both; |
| 2199 | | } |
| 2200 | 2104 | |
| 2201 | | @media screen and ( min-width:941px ) { |
| 2202 | | .wptv-hero .main-video { |
| 2203 | | float: left; |
| 2204 | | } |
| | 2105 | float: left; |
| | 2106 | width: 575px; |
| 2205 | 2107 | } |
| 2206 | 2108 | |
| 2207 | 2109 | .wptv-hero .main-video .video-player { |
| 2208 | 2110 | width: 100% !important; |
| | 2111 | height: 323px !important; |
| 2209 | 2112 | margin: 0 !important; |
| 2210 | 2113 | } |
| 2211 | 2114 | |
| 2212 | | @media screen and ( min-width:601px ) { |
| 2213 | | .wptv-hero .main-video { |
| 2214 | | width: 575px; |
| 2215 | | } |
| 2216 | | .wptv-hero .main-video .video-player { |
| 2217 | | height: 323px !important; |
| 2218 | | } |
| 2219 | | } |
| 2220 | | |
| 2221 | | @media screen and ( max-width:600px ) { |
| 2222 | | .wptv-hero .main-video .video-player { |
| 2223 | | height: auto !important; |
| 2224 | | } |
| 2225 | | } |
| 2226 | | |
| 2227 | 2115 | .wptv-hero .main-video .video-player .videopress-placeholder { |
| 2228 | 2116 | margin: 0; |
| 2229 | 2117 | width: 100% !important; |
| … |
… |
h5 { |
| 2277 | 2165 | display: none; |
| 2278 | 2166 | } |
| 2279 | 2167 | |
| 2280 | | @media screen and ( min-width:941px ) { |
| 2281 | | .wptv-hero .secondary-videos { |
| 2282 | | float: right; |
| 2283 | | width: 345px; |
| 2284 | | } |
| 2285 | | } |
| 2286 | | |
| 2287 | | @media screen and ( max-width:940px ) { |
| 2288 | | .wptv-hero .secondary-videos { |
| 2289 | | display: inline-block; |
| 2290 | | margin-top: 20px; |
| 2291 | | } |
| | 2168 | .wptv-hero .secondary-videos { |
| | 2169 | float: right; |
| | 2170 | width: 345px; |
| 2292 | 2171 | } |
| 2293 | 2172 | |
| 2294 | 2173 | .wptv-hero .secondary-videos h3 { |
| … |
… |
h5 { |
| 2303 | 2182 | .wptv-hero .secondary-videos li { |
| 2304 | 2183 | font-size: 13px; |
| 2305 | 2184 | |
| 2306 | | min-height: 78px; |
| | 2185 | min-height: 75px; |
| 2307 | 2186 | position: relative; |
| 2308 | 2187 | |
| 2309 | 2188 | margin: 0 auto 23px 0; |
| 2310 | 2189 | padding: 0 0 0 142px; |
| 2311 | 2190 | } |
| 2312 | | @media screen and ( min-width:620px ) and ( max-width:940px ) { |
| 2313 | | .wptv-hero .secondary-videos li { |
| 2314 | | width: 25%; |
| 2315 | | float: left; |
| 2316 | | } |
| 2317 | | } |
| 2318 | 2191 | |
| 2319 | 2192 | .wptv-hero .secondary-videos img { |
| 2320 | 2193 | width: 130px; |
| … |
… |
h5 { |
| 2328 | 2201 | opacity: 0.8; |
| 2329 | 2202 | } |
| 2330 | 2203 | |
| 2331 | | @media screen and ( max-width:940px ) { |
| 2332 | | .wptv-category-title { |
| 2333 | | display: inline-block; |
| 2334 | | } |
| 2335 | | } |
| 2336 | | |
| 2337 | 2204 | /* Video lists |
| 2338 | 2205 | ============================================================= */ |
| 2339 | 2206 | |
| … |
… |
h5 { |
| 2342 | 2209 | } |
| 2343 | 2210 | |
| 2344 | 2211 | .video-list li { |
| | 2212 | float: left; |
| | 2213 | min-height: 220px; |
| 2345 | 2214 | margin-bottom: 20px; |
| 2346 | 2215 | } |
| 2347 | 2216 | |
| … |
… |
h5 { |
| 2353 | 2222 | .video-list li .video-thumbnail { |
| 2354 | 2223 | display: block; |
| 2355 | 2224 | width: 100%; |
| | 2225 | height: 100px; |
| 2356 | 2226 | |
| 2357 | 2227 | margin: 0 0 8px 0; |
| 2358 | 2228 | |
| … |
… |
h5 { |
| 2360 | 2230 | position: relative; |
| 2361 | 2231 | } |
| 2362 | 2232 | |
| 2363 | | @media screen and ( min-width:941px ) { |
| 2364 | | .video-list.four-col { |
| 2365 | | width: 860px; |
| 2366 | | } |
| | 2233 | .video-list.four-col { |
| | 2234 | width: 860px; |
| 2367 | 2235 | } |
| 2368 | 2236 | |
| 2369 | | @media screen and ( min-width:395px ) { |
| 2370 | | .video-list li { |
| 2371 | | float: left; |
| 2372 | | min-height: 220px; |
| 2373 | | } |
| 2374 | | .video-list.four-col li { |
| 2375 | | width: 160px; |
| 2376 | | margin-right: 20px; |
| 2377 | | } |
| | 2237 | .video-list.four-col li { |
| | 2238 | width: 160px; |
| | 2239 | margin-right: 20px; |
| 2378 | 2240 | } |
| 2379 | 2241 | |
| 2380 | 2242 | .secondary-content .video-list .video-title { |
| … |
… |
h5 { |
| 2411 | 2273 | position: relative; |
| 2412 | 2274 | } |
| 2413 | 2275 | |
| 2414 | | @media screen and ( min-width:621px ) { |
| 2415 | | .archive.video-list .video-thumbnail { |
| 2416 | | position: absolute; |
| 2417 | | top: 0; |
| 2418 | | left: 0; |
| | 2276 | .archive.video-list .video-thumbnail { |
| | 2277 | position: absolute; |
| | 2278 | top: 0; |
| | 2279 | left: 0; |
| 2419 | 2280 | |
| 2420 | | width: 220px; |
| 2421 | | height: 120px; |
| | 2281 | width: 220px; |
| | 2282 | height: 120px; |
| 2422 | 2283 | |
| 2423 | | margin: 0 20px 0 0; |
| 2424 | | } |
| 2425 | | .archive.video-list .video-description { |
| 2426 | | display: block; |
| 2427 | | padding-left: 240px; |
| 2428 | | } |
| | 2284 | margin: 0 20px 0 0; |
| 2429 | 2285 | } |
| 2430 | 2286 | |
| 2431 | 2287 | .archive.video-list .video-title { |
| … |
… |
h5 { |
| 2433 | 2289 | margin: 4px 0 8px; |
| 2434 | 2290 | } |
| 2435 | 2291 | |
| | 2292 | .archive.video-list .video-description { |
| | 2293 | display: block; |
| | 2294 | padding-left: 240px; |
| | 2295 | } |
| | 2296 | |
| 2436 | 2297 | .archive.video-list .video-date { |
| 2437 | 2298 | color: #aaa; |
| 2438 | 2299 | display: block; |
| … |
… |
body:not(.single) .video-info { |
| 2489 | 2350 | } |
| 2490 | 2351 | |
| 2491 | 2352 | /* Video Player and Placeholder */ |
| 2492 | | @media screen and ( min-width:941px ) { |
| 2493 | | .single .video-player { |
| 2494 | | float: left; |
| 2495 | | width: 940px !important; |
| 2496 | | height: 529px !important; |
| 2497 | 2353 | |
| 2498 | | overflow: hidden; |
| 2499 | | } |
| | 2354 | .single .video-player { |
| | 2355 | float: left; |
| | 2356 | width: 940px !important; |
| | 2357 | height: 529px !important; |
| | 2358 | |
| | 2359 | overflow: hidden; |
| 2500 | 2360 | } |
| | 2361 | |
| 2501 | 2362 | .videopress-placeholder, |
| 2502 | 2363 | .video-player object { |
| 2503 | 2364 | width: 100% !important; |
| … |
… |
h3#comments { |
| 2638 | 2499 | margin: 3px 0 20px 0; |
| 2639 | 2500 | } |
| 2640 | 2501 | |
| 2641 | | @media screen and ( min-width:941px ) { |
| 2642 | | .category-wordcamptv .secondary-content { |
| 2643 | | float: left; |
| 2644 | | width: 170px; |
| 2645 | | } |
| | 2502 | .category-wordcamptv .secondary-content { |
| | 2503 | float: left; |
| | 2504 | width: 170px; |
| | 2505 | } |
| 2646 | 2506 | |
| 2647 | | .category-wordcamptv .primary-content { |
| 2648 | | float: right; |
| 2649 | | margin: 0; |
| 2650 | | } |
| | 2507 | .category-wordcamptv .primary-content { |
| | 2508 | float: right; |
| | 2509 | margin: 0; |
| 2651 | 2510 | } |
| 2652 | 2511 | |
| 2653 | 2512 | /* WordCamp Individual Page |
| … |
… |
h3#comments { |
| 2657 | 2516 | margin: 0 auto 13px 0 |
| 2658 | 2517 | } |
| 2659 | 2518 | |
| 2660 | | /* Contact Page |
| 2661 | | ============================================================= */ |
| 2662 | | |
| 2663 | | @media screen and ( max-width:400px ) { |
| 2664 | | .entry .contact-form textarea { |
| 2665 | | width: 98%; |
| 2666 | | } |
| 2667 | | } |
| 2668 | | |
| 2669 | 2519 | /* Secondary Content |
| 2670 | 2520 | ============================================================= */ |
| 2671 | 2521 | |
| … |
… |
h3#comments { |
| 2696 | 2546 | ============================================================= */ |
| 2697 | 2547 | |
| 2698 | 2548 | .error404 .primary-content { |
| 2699 | | max-width: 940px; |
| | 2549 | width: 940px; |
| 2700 | 2550 | } |
| 2701 | 2551 | |
| 2702 | 2552 | .error404 h2 { |
| … |
… |
h3#comments { |
| 2732 | 2582 | |
| 2733 | 2583 | #footer { |
| 2734 | 2584 | background: #F0F0F0; |
| 2735 | | color: #888; |
| 2736 | | margin: 10px 0 0 0; |
| 2737 | | padding: 10px; |
| 2738 | | } |
| 2739 | 2585 | |
| 2740 | | @media screen and ( min-width:921px ) { |
| 2741 | | #footer { |
| 2742 | | clear: both; |
| 2743 | | height: 3.5em; |
| 2744 | | margin-bottom: 15px; |
| 2745 | | } |
| | 2586 | margin: 10px 0 0 0; |
| | 2587 | padding: 10px 0; |
| 2746 | 2588 | } |
| 2747 | 2589 | |
| 2748 | 2590 | #footer .dot { |