• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Genesis Theme Framework a2z

Genesis Theme Framework a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Genesis_Featured_Post::__construct() – Constructor. Set the default widget options and create widget.

You appear to be a bot. Output may be restricted

Description

Constructor. Set the default widget options and create widget.

Usage

Genesis_Featured_Post::__construct();

Parameters

Returns

void

Source

File name: genesis/lib/widgets/featured-post-widget.php
Lines:

1 to 43 of 43
  public function __construct() {

    $this->defaults = [
      'title'                   => '',
      'posts_cat'               => '',
      'posts_num'               => '',
      'posts_offset'            => 0,
      'orderby'                 => '',
      'order'                   => '',
      'exclude_displayed'       => 0,
      'exclude_sticky'          => 0,
      'show_image'              => 0,
      'image_alignment'         => '',
      'image_size'              => '',
      'show_gravatar'           => 0,
      'gravatar_alignment'      => '',
      'gravatar_size'           => '',
      'show_title'              => 0,
      'show_byline'             => 0,
      'post_info'               => '[post_date] ' . __( 'By', 'genesis' ) . ' [post_author_posts_link] [post_comments]',
      'show_content'            => 'excerpt',
      'content_limit'           => '',
      'more_text'               => __( '[Read More...]', 'genesis' ),
      'extra_num'               => '',
      'extra_title'             => '',
      'more_from_category'      => '',
      'more_from_category_text' => __( 'More Posts from this Category', 'genesis' ),
    ];

    $widget_ops = [
      'classname'   => 'featured-content featuredpost',
      'description' => __( 'Displays featured posts with thumbnails', 'genesis' ),
    ];

    $control_ops = [
      'id_base' => 'featured-post',
      'width'   => 505,
      'height'  => 350,
    ];

    parent::__construct( 'featured-post', __( 'Genesis - Featured Posts', 'genesis' ), $widget_ops, $control_ops );

  }
 

Published: 25th November 2019 | Last updated: 25th November 2019

Primary Sidebar

Information

Function name: Genesis_Featured_Post::__construct
Class ref: Genesis_Featured_Post
Plugin ref: Genesis Framework
Version: 3.4.0
Sourcefile: lib/widgets/featured-post-widget.php
File ref: lib/widgets/featured-post-widget.php
Deprecated?: No
API Letters: F,G,P

Footer

Genesis a2z
Genesis Theme Framework a2z
WordPress Dynamic API Reference
WordPress 6.3.1
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  genesis.wp-a2z.org
© Copyright Genesis a2z 2014-2023. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites