CPOTHEME_THUMBNAIL_WIDTH, 'height' => CPOTHEME_THUMBNAIL_HEIGHT); $data = shortcode_atts( $default_values, $option_values); register_setting('media', 'cpotheme_thumbnail'); add_settings_field('cpotheme_portfolio_thumbnails', __('Portfolio Size', 'cpocore'), 'cpotheme_thumbnail_fields', 'media' , 'default', $data); } } //Print fields for managing thumbnail sizes if(!function_exists('cpotheme_thumbnail_fields')){ function cpotheme_thumbnail_fields($args){ ?> __('Portfolio Size', 'cpocore'))); } } //Add a wrapper to embeds so they become responsive add_filter('embed_oembed_html', 'cpotheme_embed_wrapper', 10, 3); add_filter('video_embed_html', 'cpotheme_embed_wrapper'); function cpotheme_embed_wrapper($html){ return '