esc_html__( 'Color:', 'vamtam-consulting' ), 'image' => esc_html__( 'Image / pattern:', 'vamtam-consulting' ), 'repeat' => esc_html__( 'Repeat:', 'vamtam-consulting' ), 'attachment' => esc_html__( 'Attachment:', 'vamtam-consulting' ), 'position' => esc_html__( 'Position:', 'vamtam-consulting' ), 'size' => esc_html__( 'Size:', 'vamtam-consulting' ), ); $sep = isset( $sep ) ? $sep : '-'; $current = array(); if ( ! isset( $only ) ) { if ( isset( $show ) ) { $only = explode( ',', $show ); } else { $only = array(); } } else { $only = explode( ',', $only ); } $show = array(); global $post; foreach ( $fields as $field => $fname ) { if ( isset( $GLOBALS['vamtam_in_metabox'] ) ) { $current[ $field ] = get_post_meta( $post->ID, "$id-$field", true ); } else { $current[ $field ] = vamtam_get_option( "$id-$field" ); } $show[ $field ] = ( in_array( $field, $only ) || count( $only ) === 0 ); } $selects = array( 'repeat' => array( 'no-repeat' => esc_html__( 'No repeat', 'vamtam-consulting' ), 'repeat-x' => esc_html__( 'Repeat horizontally', 'vamtam-consulting' ), 'repeat-y' => esc_html__( 'Repeat vertically', 'vamtam-consulting' ), 'repeat' => esc_html__( 'Repeat both', 'vamtam-consulting' ), ), 'attachment' => array( 'scroll' => esc_html__( 'scroll', 'vamtam-consulting' ), 'fixed' => esc_html__( 'fixed', 'vamtam-consulting' ), ), 'position' => array( 'left center' => esc_html__( 'left center', 'vamtam-consulting' ), 'left top' => esc_html__( 'left top', 'vamtam-consulting' ), 'left bottom' => esc_html__( 'left bottom', 'vamtam-consulting' ), 'center center' => esc_html__( 'center center', 'vamtam-consulting' ), 'center top' => esc_html__( 'center top', 'vamtam-consulting' ), 'center bottom' => esc_html__( 'center bottom', 'vamtam-consulting' ), 'right center' => esc_html__( 'right center', 'vamtam-consulting' ), 'right top' => esc_html__( 'right top', 'vamtam-consulting' ), 'right bottom' => esc_html__( 'right bottom', 'vamtam-consulting' ), ), ); ?>