array( 'width' => get_option( 'thumbnail_size_w' ), 'height' => get_option( 'thumbnail_size_h' ), 'crop' => get_option( 'thumbnail_crop' ), ), 'medium' => array( 'width' => get_option( 'medium_size_w' ), 'height' => get_option( 'medium_size_h' ), ), 'large' => array( 'width' => get_option( 'large_size_w' ), 'height' => get_option( 'large_size_h' ), ) ); if( $_wp_additional_image_sizes ) $additional_sizes = $_wp_additional_image_sizes; return array_merge( $builtin_sizes, $additional_sizes ); } /** * Return a modified list of Post Types * * @return type array Post Types * @since 0.1 */ function acfs_get_post_types() { $post_types = get_post_types( '', 'names' ); /** We don't want revision, nav_menu_item and attachment post types */ if( isset( $post_types['revision'] ) ) unset( $post_types['revision'] ); if( isset( $post_types['nav_menu_item'] ) ) unset( $post_types['nav_menu_item'] ); if( isset( $post_types['attachment'] ) ) unset( $post_types['attachment'] ); return $post_types; } /** * Register the dashboard widget * * @since 0.1 */ function acfs_register_dashboard_widget() { wp_add_dashboard_widget( 'ac-flexslider', 'Arconix FlexSlider', array( $this, 'dashboard_widget_output' ) ); } /** * Output for the dashboard widget * * @since 0.1 */ function acfs_dashboard_widget_output() { echo '
'; // handle the styling echo ''; } ?>