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 * @version 0.2 */ function acfs_get_post_types() { $post_types = get_post_types( '', 'names' ); /** * List of post types we don't want to show in the select box * This list can be added to by putting a filter in your functions file */ $excl_post_types = apply_filters( 'acfs_exclude_post_types', array( 'revision', 'nav_menu_item', 'attachment', 'wpcf7_contact_form' ) ); /** Loop through and exclude the items in the list */ foreach( $excl_post_types as $excl_post_type ) { if( isset( $post_types[$excl_post_type] ) ) unset( $post_types[$excl_post_type] ); } 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 '
'; wp_widget_rss_output( array( 'url' => 'http://arconixpc.com/tag/arconix-flexslider/feed', // feed url 'title' => 'Arconix FlexSlider Posts', // feed title 'items' => 3, // how many posts to show 'show_summary' => 1, // display excerpt 'show_author' => 0, // display author 'show_date' => 1 // display post date ) ); echo '
'; echo '
'; // handle the styling echo ''; } ?>