wp/wp-includes/customize/class-wp-customize-background-position-control.php
changeset 9 177826044cd9
parent 7 cf61fcea0001
child 18 be944660c56a
equal deleted inserted replaced
8:c7c34916027a 9:177826044cd9
    37 	 * @since 4.7.0
    37 	 * @since 4.7.0
    38 	 */
    38 	 */
    39 	public function content_template() {
    39 	public function content_template() {
    40 		$options = array(
    40 		$options = array(
    41 			array(
    41 			array(
    42 				'left top'   => array( 'label' => __( 'Top Left' ), 'icon' => 'dashicons dashicons-arrow-left-alt' ),
    42 				'left top'   => array(
    43 				'center top' => array( 'label' => __( 'Top' ), 'icon' => 'dashicons dashicons-arrow-up-alt' ),
    43 					'label' => __( 'Top Left' ),
    44 				'right top'  => array( 'label' => __( 'Top Right' ), 'icon' => 'dashicons dashicons-arrow-right-alt' ),
    44 					'icon'  => 'dashicons dashicons-arrow-left-alt',
       
    45 				),
       
    46 				'center top' => array(
       
    47 					'label' => __( 'Top' ),
       
    48 					'icon'  => 'dashicons dashicons-arrow-up-alt',
       
    49 				),
       
    50 				'right top'  => array(
       
    51 					'label' => __( 'Top Right' ),
       
    52 					'icon'  => 'dashicons dashicons-arrow-right-alt',
       
    53 				),
    45 			),
    54 			),
    46 			array(
    55 			array(
    47 				'left center'   => array( 'label' => __( 'Left' ), 'icon' => 'dashicons dashicons-arrow-left-alt' ),
    56 				'left center'   => array(
    48 				'center center' => array( 'label' => __( 'Center' ), 'icon' => 'background-position-center-icon' ),
    57 					'label' => __( 'Left' ),
    49 				'right center'  => array( 'label' => __( 'Right' ), 'icon' => 'dashicons dashicons-arrow-right-alt' ),
    58 					'icon'  => 'dashicons dashicons-arrow-left-alt',
       
    59 				),
       
    60 				'center center' => array(
       
    61 					'label' => __( 'Center' ),
       
    62 					'icon'  => 'background-position-center-icon',
       
    63 				),
       
    64 				'right center'  => array(
       
    65 					'label' => __( 'Right' ),
       
    66 					'icon'  => 'dashicons dashicons-arrow-right-alt',
       
    67 				),
    50 			),
    68 			),
    51 			array(
    69 			array(
    52 				'left bottom'   => array( 'label' => __( 'Bottom Left' ), 'icon' => 'dashicons dashicons-arrow-left-alt' ),
    70 				'left bottom'   => array(
    53 				'center bottom' => array( 'label' => __( 'Bottom' ), 'icon' => 'dashicons dashicons-arrow-down-alt' ),
    71 					'label' => __( 'Bottom Left' ),
    54 				'right bottom'  => array( 'label' => __( 'Bottom Right' ), 'icon' => 'dashicons dashicons-arrow-right-alt' ),
    72 					'icon'  => 'dashicons dashicons-arrow-left-alt',
       
    73 				),
       
    74 				'center bottom' => array(
       
    75 					'label' => __( 'Bottom' ),
       
    76 					'icon'  => 'dashicons dashicons-arrow-down-alt',
       
    77 				),
       
    78 				'right bottom'  => array(
       
    79 					'label' => __( 'Bottom Right' ),
       
    80 					'icon'  => 'dashicons dashicons-arrow-right-alt',
       
    81 				),
    55 			),
    82 			),
    56 		);
    83 		);
    57 		?>
    84 		?>
    58 		<# if ( data.label ) { #>
    85 		<# if ( data.label ) { #>
    59 			<span class="customize-control-title">{{{ data.label }}}</span>
    86 			<span class="customize-control-title">{{{ data.label }}}</span>