Make WordPress Core


Ignore:
Timestamp:
03/25/2012 09:18:32 PM (15 years ago)
Author:
koopersmith
Message:

Theme Customizer: Add 'choose image' functionality to image controls. Rough first pass, using header images as an example. see #19910.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-customize-setting.php

    r20278 r20290  
    438438                                                <div class="actions">
    439439                                                        <a href="#" class="upload"><?php _e( 'Upload New' ); ?></a>
     440                                                        <a href="#" class="change"><?php _e( 'Change Image' ); ?></a>
    440441                                                        <a href="#" class="remove"><?php _e( 'Remove Image' ); ?></a>
     442                                                </div>
     443                                                <div class="library">
     444                                                        <ul>
     445                                                                <?php foreach ( $this->control_params['tabs'] as $tab ): ?>
     446                                                                        <li data-customize-tab='<?php echo esc_attr( $tab[0] ); ?>'>
     447                                                                                <?php echo esc_html( $tab[1] ); ?>
     448                                                                        </li>
     449                                                                <?php endforeach; ?>
     450                                                        </ul>
     451                                                        <?php foreach ( $this->control_params['tabs'] as $tab ): ?>
     452                                                                <div class="library-content" data-customize-tab='<?php echo esc_attr( $tab[0] ); ?>'>
     453                                                                        <?php call_user_func( $tab[2] ); ?>
     454                                                                </div>
     455                                                        <?php endforeach; ?>
    441456                                                </div>
    442457                                        </div>
Note: See TracChangeset for help on using the changeset viewer.