@@ 137-150 (lines=14) @@ | ||
134 | ) ) ); |
|
135 | ||
136 | // Post Details: Date |
|
137 | if ( ! empty( $date ) ) { |
|
138 | $wp_customize->add_setting( 'jetpack_content_post_details_date', array( |
|
139 | 'default' => 1, |
|
140 | 'type' => 'option', |
|
141 | 'transport' => 'postMessage', |
|
142 | 'sanitize_callback' => 'jetpack_content_options_sanitize_checkbox', |
|
143 | ) ); |
|
144 | ||
145 | $wp_customize->add_control( 'jetpack_content_post_details_date', array( |
|
146 | 'section' => 'jetpack_content_options', |
|
147 | 'label' => esc_html__( 'Display date', 'jetpack' ), |
|
148 | 'type' => 'checkbox', |
|
149 | ) ); |
|
150 | } |
|
151 | ||
152 | // Post Details: Categories |
|
153 | if ( ! empty( $categories ) ) { |
|
@@ 153-166 (lines=14) @@ | ||
150 | } |
|
151 | ||
152 | // Post Details: Categories |
|
153 | if ( ! empty( $categories ) ) { |
|
154 | $wp_customize->add_setting( 'jetpack_content_post_details_categories', array( |
|
155 | 'default' => 1, |
|
156 | 'type' => 'option', |
|
157 | 'transport' => 'postMessage', |
|
158 | 'sanitize_callback' => 'jetpack_content_options_sanitize_checkbox', |
|
159 | ) ); |
|
160 | ||
161 | $wp_customize->add_control( 'jetpack_content_post_details_categories', array( |
|
162 | 'section' => 'jetpack_content_options', |
|
163 | 'label' => esc_html__( 'Display categories', 'jetpack' ), |
|
164 | 'type' => 'checkbox', |
|
165 | ) ); |
|
166 | } |
|
167 | ||
168 | // Post Details: Tags |
|
169 | if ( ! empty( $tags ) ) { |
|
@@ 169-182 (lines=14) @@ | ||
166 | } |
|
167 | ||
168 | // Post Details: Tags |
|
169 | if ( ! empty( $tags ) ) { |
|
170 | $wp_customize->add_setting( 'jetpack_content_post_details_tags', array( |
|
171 | 'default' => 1, |
|
172 | 'type' => 'option', |
|
173 | 'transport' => 'postMessage', |
|
174 | 'sanitize_callback' => 'jetpack_content_options_sanitize_checkbox', |
|
175 | ) ); |
|
176 | ||
177 | $wp_customize->add_control( 'jetpack_content_post_details_tags', array( |
|
178 | 'section' => 'jetpack_content_options', |
|
179 | 'label' => esc_html__( 'Display tags', 'jetpack' ), |
|
180 | 'type' => 'checkbox', |
|
181 | ) ); |
|
182 | } |
|
183 | ||
184 | // Post Details: Author |
|
185 | if ( ! empty( $author ) ) { |
|
@@ 185-198 (lines=14) @@ | ||
182 | } |
|
183 | ||
184 | // Post Details: Author |
|
185 | if ( ! empty( $author ) ) { |
|
186 | $wp_customize->add_setting( 'jetpack_content_post_details_author', array( |
|
187 | 'default' => 1, |
|
188 | 'type' => 'option', |
|
189 | 'transport' => 'postMessage', |
|
190 | 'sanitize_callback' => 'jetpack_content_options_sanitize_checkbox', |
|
191 | ) ); |
|
192 | ||
193 | $wp_customize->add_control( 'jetpack_content_post_details_author', array( |
|
194 | 'section' => 'jetpack_content_options', |
|
195 | 'label' => esc_html__( 'Display author', 'jetpack' ), |
|
196 | 'type' => 'checkbox', |
|
197 | ) ); |
|
198 | } |
|
199 | } |
|
200 | ||
201 | // Add Featured Images options. |