__( 'Displays posts with Titles overlay on thumbnail image', 'postmag' ) )
);
}
private function defaults(){
$defaults = array(
'categoryListings' => '',
'categryorformat' => 3,
'postformat' => '',
'content' => 0,
'noofcolume' => 1,
'shadow' => 0,
);
return $defaults;
}
public function form( $instance) {
$instance = wp_parse_args( (array) $instance, $this->defaults() );
$categoryListings = $instance[ 'categoryListings' ];
$categryorformat = $instance[ 'categryorformat' ];
$postformat = $instance[ 'postformat' ];
$content = $instance[ 'content' ];
$noofcolume = $instance[ 'noofcolume' ];
$shadow = $instance[ 'shadow' ];
?>
id = "get_field_id( 'content' ) ); ?>" name = "get_field_name( 'content' ) ); ?>" />
id = "get_field_id( 'shadow' ) ); ?>" name = "get_field_name( 'shadow' ) ); ?>" />
size = "1" />
__('Select post by format','postmag'),
'orderby' => 'name',
'order' => 'asc',
'show_count' => 1,
'hide_empty' => 1,
'echo' => 1,
'selected' => $postformat,
'hierarchical' => 1,
'name' => esc_html( $this->get_field_name('postformat') ),
'id' => absint( $this->get_field_id('postformat') ),
'class' => 'widefat',
'taxonomy' => 'post_format',
'value_field' => 'name',
);
wp_dropdown_categories($postmag_postformat);
?>
size = "1" />
size = "1" />
__( 'Select post by category','postmag' ),
'option_none_value' => __( 'none', 'postmag' ),
'orderby' => 'name',
'order' => 'asc',
'show_count' => 1,
'hide_empty' => 1,
'echo' => 1,
'selected' => $categoryListings,
'hierarchical' => 1,
'name' => esc_html( $this->get_field_name('categoryListings') ),
'id' => absint( $this->get_field_id('categoryListings') ),
'class' => 'widefat',
'taxonomy' => 'category',
'value_field' => 'name',
);
wp_dropdown_categories($postmag_categoryListings);
?>