__( 'Displays posts in Timeline mode', 'ang-timeline' ), ) // Args ); } function form($instance) { ?>

'timeline', 'child_of' => 0, 'parent' => '', 'orderby' => 'name', 'order' => 'ASC', 'hide_empty' => 1, 'hierarchical' => 1, 'exclude' => '', 'include' => '', 'number' => '', 'taxonomy' => 'event', 'pad_counts' => false ); $tax_events = get_categories( $args ); if( $tax_events ){ ?>

'Y', 'Month dd, YEAR' => 'F j, Y', 'dd.mm.YEAR' => 'm.j.y', 'Month, YEAR' => 'F, Y', 'dd Month, YEAR' => 'j F, Y', 'Month, dd, YEAR hh:mm AM' => 'F, j, Y g:i A' ); ?>


'none', 'Random' => 'rand', 'Post ID' => 'ID', 'Post Author' => 'author', 'Post title' => 'title', 'Post slug' => 'name', 'Publication date' => 'date', 'Modified date' => 'modified', 'Post_type' => 'type', 'Parent field' => 'parent', 'Comments count' => 'comment_count', 'Menu order' => 'menu_order', ); ?>



" name="get_field_name('p_order_type')); ?>" value="ASC" >     " name="get_field_name('p_order_type')); ?>" value="DESC" >

/>

/>

/>

/>

$instance['PostsCount'], 'offset' => 0, //'category' => $cat_typeID, 'orderby' => $instance['p_order_by'], 'order' => $instance['p_order_type'], 'post_status' => 'publish', 'post_type' => $instance[ 'p_post_type' ], 'suppress_filters' => true ); if($instance[ 'p_post_type' ] == 'timeline'){ /* * Check Post type timeline and taxonomy */ $args['tax_query'][] = array( 'taxonomy' => 'event', 'field' => 'term_id', 'terms' => $instance['TaxEvent'] ); }elseif($instance[ 'p_post_type' ] == 'post'){ /* * Check Post type post and category */ $args['category'] = $instance['CatID']; }else{ $args['category'] = ''; } $list = get_posts( $args ); ?>