WordPress.org

Plugin Directory

Changeset 1459098


Ignore:
Timestamp:
07/22/16 15:38:35 (10 months ago)
Author:
obenland
Message:

WP Display Header: Version 4

See changelog for changes.

Location:
wp-display-header/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-display-header/trunk/css/wp-display-header.min.css

    r690895 r1459098  
    1 .available-headers .random-header { 
    2     clear: both; 
    3     margin: 15px 20px 20px 0; 
    4     vertical-align: middle; 
    5 } 
    6  
    7 .available-headers .default-header { 
    8     float: left; 
    9     margin: 0 20px 20px 0; 
    10 } 
    11  
    12 #side-sortables .available-headers .default-header { 
    13     margin-right: 0; 
    14 } 
    15  
    16 .available-headers label { 
    17     cursor: pointer; 
    18     vertical-align: middle; 
    19 } 
    20  
    21 .available-headers label input { 
    22     margin-right: 10px; 
    23 } 
    24  
    25 .available-headers label img { 
    26     vertical-align: middle; 
    27 } 
    28  
    29 .available-headers h4 { 
    30     margin: 1.5em 0; 
    31     text-shadow: 0 1px 0 #FFFFFF; 
    32 } 
     1.available-headers .random-header{clear:both;margin:0 20px 20px 0;vertical-align:middle}.postbox .available-headers .random-header{margin-top:15px}.available-headers .default-header{float:left;margin:0 20px 20px 0}#side-sortables .available-headers .default-header{margin-right:0}.available-headers label{cursor:pointer;vertical-align:middle}.available-headers label input{margin-right:10px}.available-headers label img{vertical-align:middle}.available-headers h4{margin:1.5em 0;text-shadow:0 1px 0 #FFF} 
  • wp-display-header/trunk/readme.txt

    r1259527 r1459098  
    44Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MWUA92KA2TL6Q 
    55Requires at least: 3.2 
    6 Tested up to: 4.4.0 
    7 Stable tag: 3 
     6Tested up to: 4.6.0 
     7Stable tag: 4 
    88 
    99Select a specific header or random header image for each content item or archive page. 
     
    6767 
    6868== Changelog == 
     69 
     70= 4 = 
     71* Fixed a bug where styles were not enqueued correctly in wp-admin. 
     72* Now correctly displays the selection for header images on term edit pages again. 
     73* Tested for WordPress 4.6.0. 
    6974 
    7075= 3 = 
  • wp-display-header/trunk/wp-display-header.php

    r1259527 r1459098  
    55 * Plugin URI:  http://en.wp.obenland.it/wp-display-header/?utm_source=wordpress&utm_medium=plugin&utm_campaign=wp-display-header 
    66 * Description: This plugin lets you specify a header image for each post and taxonomy/author archive page individually, from your default headers and custom headers. 
    7  * Version:     3 
     7 * Version:     4 
    88 * Author:      Konstantin Obenland 
    99 * Author URI:  http://en.wp.obenland.it/?utm_source=wordpress&utm_medium=plugin&utm_campaign=wp-display-header 
     
    100100 
    101101        // Styles 
    102         $this->hook( 'admin_init',                       'register_scripts_styles', 9 ); // Set priority to 9, so they can easily be deregistered. 
    103         $this->hook( 'admin_print_styles-post-new.php',  'admin_print_styles'         ); 
    104         $this->hook( 'admin_print_styles-post.php',      'admin_print_styles'         ); 
    105         $this->hook( 'admin_print_styles-edit-tags.php', 'admin_print_styles'         ); 
    106         $this->hook( 'admin_print_styles-profile.php',   'admin_print_styles'         ); 
    107         $this->hook( 'admin_print_styles-user-edit.php', 'admin_print_styles'         ); 
     102        $this->hook( 'admin_init',            'register_scripts_styles', 9 ); // Set priority to 9, so they can easily be deregistered. 
     103        $this->hook( 'admin_enqueue_scripts', 'admin_print_styles'         ); 
    108104 
    109105        // Edit forms. 
     
    202198     */ 
    203199    public function admin_print_styles( $screen ) { 
    204         if ( in_array( $screen, array( 'post-new.php', 'post.php', 'edit-tags.php', 'profile.php', 'user-edit.php' ) ) ) { 
     200        if ( in_array( $screen, array( 'post-new.php', 'post.php', 'term.php', 'edit-tags.php', 'profile.php', 'user-edit.php' ) ) ) { 
    205201            wp_enqueue_style( $this->textdomain ); 
    206202        } 
     
    278274        if ( 'profile' == get_current_screen()->base ) { 
    279275            esc_html_e( 'Select a header image for the author page.', 'wp-display-header' ); 
    280         } elseif ( 'edit-tags' == get_current_screen()->base ) { 
     276        } elseif ( in_array( get_current_screen()->base, array( 'edit-tags', 'term' ) ) ) { 
    281277            esc_html_e( 'Select a header image for the taxonomy archive page.', 'wp-display-header' ); 
    282278        } 
     
    300296 
    301297            case 'edit-tags': 
     298            case 'term': 
    302299                global $tag; 
    303300                if ( $active = get_option( 'wpdh_tax_meta', '' ) ) { 
Note: See TracChangeset for help on using the changeset viewer.