/** * Video width and height settings. * * @since 1.3 */ public function sizing() { $options = get_option('fvp-settings'); $responsive = !empty($options['sizing']['responsive']) && $options['sizing']['responsive']; echo FVP_HTML::checkbox('fvp-settings[sizing][responsive]', esc_html__('Responsive', 'featured-video-plus'), '1', $responsive); echo FVP_HTML::conditional(FVP_HTML::labeled_input(esc_html__('Width in pixels:', 'featured-video-plus'), 'fvp-settings[sizing][width]', array('type' => 'number', 'size' => 4, 'value' => !empty($options['sizing']['width']) ? $options['sizing']['width'] : 640)), array('fvp-settings[sizing][responsive]' => '!1', 'hidden' => $responsive)); echo FVP_HTML::description(sprintf(esc_html__('The %1$sresponsive%2$s setting does not work when using the %1$soverlay%2$s display mode and might break completly in some themes - in such cases you should use a fixed width instead.', 'featured-video-plus'), '<code>', '</code>'), array('fvp_warning')); }