start_controls_section(
'section_content', [
'label' => esc_html__('Content', 'business-roy'),
]
);
$this->add_control(
'layout', [
'label' => esc_html__('Layout', 'business-roy'),
'type' => Controls_Manager::SELECT,
'label_block' => true,
'default' => 'style1',
'options' => [
'style1' => esc_html__('Style 1', 'business-roy'),
'style2' => esc_html__('Style 2', 'business-roy'),
],
]
);
$this->add_responsive_control(
'column_count', [
'label' => esc_html__('Number of Column', 'business-roy'),
'type' => Controls_Manager::SLIDER,
'range' => [
'px' => [
'min' => 1,
'step' => 1,
'max' => 6,
],
],
'default' => [
'unit' => 'px',
'size' => 3,
],
'tablet_default' => [
'unit' => 'px',
'size' => 2,
],
'mobile_default' => [
'unit' => 'px',
'size' => 1,
],
'selectors' => [
'{{WRAPPER}} .ikthemes-blog-wrap' => 'grid-template-columns: repeat({{SIZE}}, 1fr);',
]
]
);
$this->add_responsive_control(
'blog_gap', [
'label' => esc_html__('Block Gap', 'business-roy'),
'type' => Controls_Manager::SLIDER,
'size_units' => ['rem','px','%'],
'range' => [
'rem' => [
'min' => 0,
'max' => 10,
'step' => 1
],
],
'default' => [
'unit' => 'rem',
'size' => 1,
],
'selectors' => [
'{{WRAPPER}} .ikthemes-blog-wrap' => 'gap: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_control(
'post_count', [
'label' => esc_html__('Number of Posts', 'business-roy'),
'type' => Controls_Manager::SLIDER,
'size_units' => ['star'],
'range' => [
'star' => [
'min' => 1,
'max' => 12,
'step' => 1
],
],
'default' => [
'unit' => 'star',
'size' => 6,
]
]
);
$this->add_control(
'excerpt_length', [
'label' => esc_html__('Excerpt Length (In Character)', 'business-roy'),
'type' => Controls_Manager::SLIDER,
'size_units' => ['s'],
'range' => [
's' => [
'min' => 0,
'step' => 1,
'max' => 1000,
],
],
'default' => [
'size' => 20,
'unit' => 's',
],
'condition' => ['layout' => ['style1']],
]
);
$this->add_control(
'exclude_cats', [
'label' => esc_html__('Exclude Category', 'business-roy'),
'type' => Controls_Manager::SELECT2,
'label_block' => true,
'multiple' => true,
'options' => $this->get_category()
]
);
$this->add_control(
'display_date', [
'label' => esc_html__('Display Post Meta Date', 'business-roy'),
'type' => Controls_Manager::SWITCHER,
'label_on' => esc_html__('Yes', 'business-roy'),
'label_off' => esc_html__('No', 'business-roy'),
'return_value' => 'yes',
'default' => 'yes',
'separator' => 'before',
]
);
$this->add_control(
'display_author', [
'label' => esc_html__('Display Post Author', 'business-roy'),
'type' => Controls_Manager::SWITCHER,
'label_on' => esc_html__('Yes', 'business-roy'),
'label_off' => esc_html__('No', 'business-roy'),
'return_value' => 'yes',
'default' => 'yes',
]
);
$this->add_control(
'display_comment_count', [
'label' => esc_html__('Display Comment Count', 'business-roy'),
'type' => Controls_Manager::SWITCHER,
'label_on' => esc_html__('Yes', 'business-roy'),
'label_off' => esc_html__('No', 'business-roy'),
'return_value' => 'yes',
'default' => 'yes',
]
);
$this->add_control(
'display_reading_time', [
'label' => esc_html__('Post Reading Time', 'business-roy'),
'type' => Controls_Manager::SWITCHER,
'label_on' => esc_html__('Yes', 'business-roy'),
'label_off' => esc_html__('No', 'business-roy'),
'return_value' => 'yes',
'default' => 'yes',
'separator' => 'after',
]
);
$this->add_control(
'readmore_text', [
'label' => esc_html__('Read More (Button Text)', 'business-roy'),
'type' => Controls_Manager::TEXT,
'default' => esc_html__('Read More', 'business-roy'),
'label_block' => true,
]
);
$this->add_control(
'readmore_icon',[
'label' => esc_html__( 'Link Icon', 'business-roy' ),
'type' => Controls_Manager::ICONS,
'skin' => 'inline',
'label_block' => false,
'default' => [
'library' => 'fa-solid',
'value' => 'fas fa-long-arrow-alt-right',
],
'skin_settings' => [
'inline' => [
'none' => [
'label' => 'Default',
'icon' => '',
],
'icon' => [
'icon' => 'eicon-long-arrow-right',
],
],
],
'recommended' => [
'fa-regular' => [
'arrow-alt-circle-right',
],
'fa-solid' => [
'angle-double-right',
'angle-right',
'arrow-alt-circle-right',
'arrow-circle-right',
'arrow-right',
'caret-right',
'chevron-circle-right',
'chevron-right',
'long-arrow-alt-right',
],
],
'condition' => [
'readmore_text!' => '',
],
]
);
$this->end_controls_section();
$this->start_controls_section(
'section_settings', [
'label' => esc_html__('Settings', 'business-roy'),
]
);
$this->add_control(
'title_html_tag', [
'label' => esc_html__('Title HTML Tag', 'business-roy'),
'type' => Controls_Manager::SELECT,
'label_block' => true,
'default' => 'h3',
'options' => [
'h1' => esc_html__('H1', 'business-roy'),
'h2' => esc_html__('H2', 'business-roy'),
'h3' => esc_html__('H3', 'business-roy'),
'h4' => esc_html__('H4', 'business-roy'),
'h5' => esc_html__('H5', 'business-roy'),
'h6' => esc_html__('H6', 'business-roy'),
'div' => esc_html__('div', 'business-roy'),
'span' => esc_html__('span', 'business-roy'),
'p' => esc_html__('p', 'business-roy')
],
]
);
$this->add_group_control(
Group_Control_Image_Size::get_type(), [
'name' => 'thumb',
'exclude' => ['custom'],
'include' => [],
'default' => 'full',
]
);
$this->end_controls_section();
$this->start_controls_section(
'genral_style', [
'label' => esc_html__('General Style', 'business-roy'),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_responsive_control(
'blog_post_position', [
'label' => esc_html__( 'Image Position', 'business-roy' ),
'type' => Controls_Manager::CHOOSE,
'options' => [
'before' => [
'title' => esc_html__( 'Before', 'business-roy' ),
'icon' => 'eicon-v-align-top',
],
'after' => [
'title' => esc_html__( 'After', 'business-roy' ),
'icon' => 'eicon-v-align-bottom',
],
'start' => [
'title' => esc_html__( 'Start', 'business-roy' ),
'icon' => 'eicon-h-align-left',
],
'end' => [
'title' => esc_html__( 'End', 'business-roy' ),
'icon' => 'eicon-h-align-right',
],
],
'selectors_dictionary' => [
'before' => 'flex-direction: column;',
'after' => 'flex-direction: column-reverse;',
'start' => 'flex-direction: row;',
'end' => 'flex-direction: row-reverse;',
],
'prefix_class' => 'iktheme-blog-layout-',
'selectors' => [
'{{WRAPPER}} .ikthemes-blog-item' => '{{VALUE}}',
],
'condition' => ['layout' => ['style1']],
]
);
$this->add_responsive_control(
'content_vertical_alignment',[
'label' => esc_html__( 'Vertical Alignment', 'business-roy' ),
'type' => Controls_Manager::CHOOSE,
'options' => [
'top' => [
'title' => esc_html__( 'Top', 'business-roy' ),
'icon' => 'eicon-v-align-top',
],
'middle' => [
'title' => esc_html__( 'Middle', 'business-roy' ),
'icon' => 'eicon-v-align-middle',
],
'bottom' => [
'title' => esc_html__( 'Bottom', 'business-roy' ),
'icon' => 'eicon-v-align-bottom',
],
],
'default' => 'middle',
'toggle' => false,
'selectors' => [
'{{WRAPPER}} .ikthemes-box-content' => 'justify-content:{{VALUE}};',
],
'selectors_dictionary' => [
'top' => 'flex-start',
'middle' => 'center',
'bottom' => 'flex-end',
],
'conditions' => [
'relation' => 'and',
'terms' => [
[
'name' => 'layout',
'operator' => '==',
'value' => 'style1',
],
[
'relation' => 'or',
'terms' => [
[
'name' => 'blog_post_position',
'operator' => '==',
'value' => 'start',
],
[
'name' => 'blog_post_position',
'operator' => '==',
'value' => 'end',
],
],
],
],
],
]
);
$this->add_responsive_control(
'text_align',[
'label' => esc_html__( 'Alignment', 'business-roy' ),
'type' => Controls_Manager::CHOOSE,
'default' => 'center',
'options' => [
'start' => [
'title' => esc_html__( 'Left', 'business-roy' ),
'icon' => 'eicon-text-align-left',
],
'center' => [
'title' => esc_html__( 'Center', 'business-roy' ),
'icon' => 'eicon-text-align-center',
],
'end' => [
'title' => esc_html__( 'Right', 'business-roy' ),
'icon' => 'eicon-text-align-right',
],
],
'selectors' => [
'{{WRAPPER}} .ikthemes-box-content' => 'text-align: {{VALUE}};',
'{{WRAPPER}} .ikthemes-entry-meta' => 'justify-content: {{VALUE}};',
'{{WRAPPER}} .ikthemes-blog-wrap.style2 .ikthemes-box-content' => 'align-items: {{VALUE}};',
],
]
);
$this->add_responsive_control(
'blog_image_height', [
'label' => esc_html__('Image Height', 'business-roy'),
'type' => Controls_Manager::SLIDER,
'size_units' => ['px'],
'range' => [
'px' => [
'min' => 200,
'max' => 1250,
'step' => 1
],
],
'default' => [
'unit' => 'px',
'size' => 350,
],
'selectors' => [
'{{WRAPPER}} .ikthemes-blog-post-thumbnail' => 'min-height: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'blog_image_width', [
'label' => esc_html__('Image Width(%)', 'business-roy'),
'type' => Controls_Manager::SLIDER,
'size_units' => ['%'],
'range' => [
'%' => [
'min' => 30,
'max' => 50,
'step' => 1
],
],
'default' => [
'unit' => '%',
'size' => 50,
],
'selectors' => [
'{{WRAPPER}} .ikthemes-blog-post-thumbnail' => 'max-width: {{SIZE}}{{UNIT}};',
'{{WRAPPER}} .ikthemes-blog-post-thumbnail' => 'min-width: {{SIZE}}{{UNIT}};',
],
'conditions' => [
'relation' => 'and',
'terms' => [
[
'name' => 'layout',
'operator' => '==',
'value' => 'style1',
],
[
'relation' => 'or',
'terms' => [
[
'name' => 'blog_post_position',
'operator' => '==',
'value' => 'start',
],
[
'name' => 'blog_post_position',
'operator' => '==',
'value' => 'end',
],
],
],
],
],
]
);
$this->add_control(
'genral_bg_color', [
'label' => esc_html__('Background Color', 'business-roy'),
'type' => Controls_Manager::COLOR,
'default' => '',
'selectors' => [
'{{WRAPPER}} .style1 .ikthemes-blog-item' => 'background-color: {{VALUE}}',
'{{WRAPPER}} .ikthemes-blog-wrap.style2 .ikthemes-box-content' => 'background-color: {{VALUE}}',
],
]
);
$this->add_responsive_control(
'genral_padding', [
'label' => esc_html__('Padding', 'business-roy'),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => ['px', '%', 'em'],
'selectors' => [
'{{WRAPPER}} .ikthemes-box-content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'genral_radius', [
'label' => esc_html__('Radius', 'business-roy'),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => ['px', '%', 'em'],
'selectors' => [
'{{WRAPPER}} .ikthemes-blog-item' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_group_control(
Group_Control_Box_Shadow::get_type(),[
'name' => 'genral_shadow',
'selector' => '{{WRAPPER}} .ikthemes-blog-item',
'condition' => ['layout' => ['style1']],
]
);
$this->end_controls_section();
$this->start_controls_section(
'title_style', [
'label' => esc_html__('Title', 'business-roy'),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_group_control(
Group_Control_Typography::get_type(), [
'name' => 'title_typography',
'label' => esc_html__('Typography', 'business-roy'),
'selector' => '{{WRAPPER}} .ikthemes-blog-title',
]
);
$this->add_responsive_control(
'title_margin', [
'label' => esc_html__('Margin', 'business-roy'),
'type' => Controls_Manager::DIMENSIONS,
'allowed_dimensions' => 'vertical',
'size_units' => ['px', '%', 'em'],
'selectors' => [
'{{WRAPPER}} .ikthemes-blog-title' => 'margin: {{TOP}}{{UNIT}} 0 {{BOTTOM}}{{UNIT}} 0;',
],
]
);
$this->add_group_control(
Group_Control_Text_Stroke::get_type(),[
'name' => 'text_stroke',
'selector' => '{{WRAPPER}} .ikthemes-blog-title',
]
);
$this->add_group_control(
Group_Control_Text_Shadow::get_type(),[
'name' => 'title_shadow',
'selector' => '{{WRAPPER}} .ikthemes-blog-title',
]
);
$this->start_controls_tabs( 'title_style_tabs' );
$this->start_controls_tab(
'title_normal_tab', [
'label' => esc_html__('Normal', 'business-roy'),
]
);
$this->add_control(
'title_color', [
'label' => esc_html__('Color', 'business-roy'),
'type' => Controls_Manager::COLOR,
'default' => '',
'selectors' => [
'{{WRAPPER}} .ikthemes-blog-title a' => 'color: {{VALUE}}',
],
]
);
$this->end_controls_tab();
$this->start_controls_tab(
'title_hover_tab', [
'label' => esc_html__('Hover', 'business-roy'),
]
);
$this->add_control(
'title_hover_color', [
'label' => esc_html__('Hover Color', 'business-roy'),
'type' => Controls_Manager::COLOR,
'default' => '',
'selectors' => [
'{{WRAPPER}} .ikthemes-blog-title a:hover' => 'color: {{VALUE}}',
],
]
);
$this->end_controls_tab();
$this->end_controls_tabs();
$this->end_controls_section();
$this->start_controls_section(
'content_style', [
'label' => esc_html__('Content', 'business-roy'),
'tab' => Controls_Manager::TAB_STYLE,
'condition' => ['layout' => ['style1']]
]
);
$this->add_control(
'content_color', [
'label' => esc_html__('Color', 'business-roy'),
'type' => Controls_Manager::COLOR,
'default' => '',
'selectors' => [
'{{WRAPPER}} .ikthemes-blog-desc' => 'color: {{VALUE}}'
],
]
);
$this->add_group_control(
Group_Control_Typography::get_type(), [
'name' => 'content_typography',
'label' => esc_html__('Typography', 'business-roy'),
'selector' => '{{WRAPPER}} .ikthemes-blog-desc',
]
);
$this->add_control(
'content_margin', [
'label' => esc_html__('Margin', 'business-roy'),
'type' => Controls_Manager::DIMENSIONS,
'allowed_dimensions' => 'vertical',
'size_units' => ['px', '%', 'em'],
'selectors' => [
'{{WRAPPER}} .ikthemes-blog-desc' => 'margin: {{TOP}}{{UNIT}} 0 {{BOTTOM}}{{UNIT}} 0;',
],
]
);
$this->end_controls_section();
$this->start_controls_section(
'post_meta_style', [
'label' => esc_html__('Post Metas (Author, Comment)', 'business-roy'),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->start_controls_tabs('post_meta_style_tabs' );
$this->start_controls_tab(
'post_meta_normal_tab', [
'label' => esc_html__('Normal', 'business-roy'),
]
);
$this->add_control(
'post_meta_color', [
'label' => esc_html__('Color', 'business-roy'),
'type' => Controls_Manager::COLOR,
'default' => '',
'selectors' => [
'{{WRAPPER}} .ikthemes-entry-meta, {{WRAPPER}} .ikthemes-entry-meta a' => 'color: {{VALUE}}',
],
]
);
$this->end_controls_tab();
$this->start_controls_tab(
'post_meta_hover_tab', [
'label' => esc_html__('Hover', 'business-roy'),
]
);
$this->add_control(
'post_meta_hover_color', [
'label' => esc_html__('Hover Color', 'business-roy'),
'type' => Controls_Manager::COLOR,
'default' => '',
'selectors' => [
'{{WRAPPER}} .ikthemes-entry-meta a:hover' => 'color: {{VALUE}}',
],
]
);
$this->end_controls_tab();
$this->end_controls_tabs();
$this->add_group_control(
Group_Control_Border::get_type(),[
'name' => 'post_meta_border',
'selector' => '{{WRAPPER}} .ikthemes-entry-meta .avatar',
'label' => esc_html__('Author Avatar', 'business-roy'),
'default' => 'none',
]
);
$this->add_group_control(
Group_Control_Typography::get_type(), [
'name' => 'post_meta_typography',
'label' => esc_html__('Typography', 'business-roy'),
'selector' => '{{WRAPPER}} .ikthemes-entry-meta',
]
);
$this->add_responsive_control(
'post_meta_margin', [
'label' => esc_html__('Margin', 'business-roy'),
'type' => Controls_Manager::DIMENSIONS,
'allowed_dimensions' => 'vertical',
'size_units' => ['px', '%', 'em'],
'selectors' => [
'{{WRAPPER}} .ikthemes-entry-meta' => 'margin: {{TOP}}{{UNIT}} 0 {{BOTTOM}}{{UNIT}} 0;',
],
]
);
$this->add_responsive_control(
'item_space',[
'label' => esc_html__( 'Spacing', 'business-roy' ),
'type' => Controls_Manager::SLIDER,
'default' => [
'size' => 8,
'unit' => 'px',
],
'size_units' => [ 'px', 'em', 'rem', 'custom' ],
'range' => [
'px' => [
'max' => 100,
],
'em' => [
'min' => 0,
'max' => 10,
],
'rem' => [
'min' => 0,
'max' => 10,
],
],
'selectors' => [
'{{WRAPPER}} .ikthemes-entry-meta' => 'gap: 0 {{SIZE}}{{UNIT}};',
],
]
);
$this->end_controls_section();
$this->start_controls_section(
'date_style', [
'label' => esc_html__('Post Date', 'business-roy'),
'tab' => Controls_Manager::TAB_STYLE,
'condition' => ['layout' => ['style1']]
]
);
$this->add_group_control(
Group_Control_Typography::get_type(), [
'name' => 'date_typography',
'label' => esc_html__('Typography', 'business-roy'),
'selector' => '{{WRAPPER}} .ikthemes-article-date',
]
);
$this->add_control(
'date_bg', [
'label' => esc_html__('Background Color', 'business-roy'),
'type' => Controls_Manager::COLOR,
'default' => '',
'selectors' => [
'{{WRAPPER}} .ikthemes-article-date' => 'background-color: {{VALUE}}'
],
]
);
$this->add_control(
'date_color', [
'label' => esc_html__('Color', 'business-roy'),
'type' => Controls_Manager::COLOR,
'default' => '',
'selectors' => [
'{{WRAPPER}} .ikthemes-article-date' => 'color: {{VALUE}}',
],
]
);
$this->end_controls_section();
$this->start_controls_section(
'content_button',[
'label' => esc_html__( 'Button (Read More)', 'business-roy' ),
'tab' => Controls_Manager::TAB_STYLE,
]
);
$this->add_group_control(
Group_Control_Typography::get_type(),[
'name' => 'button_typography',
'selector' => '{{WRAPPER}} .iktheme-button',
]
);
$this->add_group_control(
Group_Control_Text_Shadow::get_type(),[
'name' => 'button_text_shadow',
'selector' => '{{WRAPPER}} .iktheme-button',
]
);
$this->add_responsive_control(
'button_padding',[
'label' => esc_html__( 'Padding', 'business-roy' ),
'type' => Controls_Manager::DIMENSIONS,
'size_units' => [ 'px', '%', 'em', 'rem', 'vw', 'custom' ],
'selectors' => [
'{{WRAPPER}} .iktheme-button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
],
]
);
$this->add_responsive_control(
'button_border_radius',[
'label' => esc_html__( 'Border Radius', 'business-roy' ),
'type' => Controls_Manager::SLIDER,
'size_units' => [ 'px', '%', 'em', 'rem', 'custom' ],
'range' => [
'px' => [
'max' => 100,
],
'em' => [
'max' => 10,
],
'rem' => [
'max' => 10,
],
],
'selectors' => [
'{{WRAPPER}} .iktheme-button' => 'border-radius: {{SIZE}}{{UNIT}};',
],
]
);
$this->add_control(
'heading_primary_button',[
'type' => Controls_Manager::HEADING,
'label' => esc_html__( 'Primary Button', 'business-roy' ),
'separator' => 'before',
]
);
$this->start_controls_tabs( 'primary_button_tabs' );
$this->start_controls_tab(
'normal',[
'label' => esc_html__( 'Normal', 'business-roy' ),
]
);
$this->add_control(
'button_text_color',[
'label' => esc_html__( 'Text Color', 'business-roy' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .iktheme-button, {{WRAPPER}} .iktheme-button.iktheme-button-noborder .iktheme-link-icon svg' => 'color: {{VALUE}}; fill: {{VALUE}};',
],
]
);
$this->add_group_control(
Group_Control_Background::get_type(),[
'name' => 'button_background',
'types' => [ 'classic', 'gradient' ],
'exclude' => [ 'image' ],
'selector' => '{{WRAPPER}} .iktheme-button',
'fields_options' => [
'background' => [
'default' => 'classic',
],
],
]
);
$this->add_group_control(
Group_Control_Border::get_type(),[
'name' => 'button_border_color',
'selector' => '{{WRAPPER}} .iktheme-button',
'default' => 'none',
]
);
$this->end_controls_tab();
$this->start_controls_tab(
'hover',[
'label' => esc_html__( 'Hover', 'business-roy' ),
]
);
$this->add_control(
'button_hover_text_color',[
'label' => esc_html__( 'Text Color', 'business-roy' ),
'type' => Controls_Manager::COLOR,
'selectors' => [
'{{WRAPPER}} .iktheme-button:hover, {{WRAPPER}} .iktheme-button.iktheme-button-noborder:hover .iktheme-link-icon svg' => 'color: {{VALUE}}; fill: {{VALUE}};',
],
]
);
$this->add_group_control(
Group_Control_Background::get_type(),[
'name' => 'button_hover_background',
'types' => [ 'classic', 'gradient' ],
'exclude' => [ 'image' ],
'selector' => '{{WRAPPER}} .iktheme-button.iktheme-button-noborder::before',
'fields_options' => [
'background' => [
'default' => 'classic',
],
],
]
);
$this->add_group_control(
Group_Control_Border::get_type(),[
'name' => 'button_hover_border_color',
'selector' => '{{WRAPPER}} .iktheme-button:hover',
'default' => 'none',
]
);
$this->end_controls_tab();
$this->end_controls_tabs();
$this->end_controls_section();
}
/** Render Layout */
protected function render() {
$settings = $this->get_settings_for_display();
$wrapper_tag = 'div';
$this->add_render_attribute('wrapper', 'class', [
'ikthemes-blog-wrap',
$settings['layout'],
]
);
?>
< print_render_attribute_string( 'wrapper' ); ?>>
get_blog_style1();
} elseif ($settings['layout'] == 'style2') {
$this->get_blog_style2();
}
?>
>
get_settings_for_display();
$excerpt_count = $settings['excerpt_length']['size'];
$args = array(
'posts_per_page' => $settings['post_count']['size'],
'category__not_in' => $settings['exclude_cats']
);
$query = new \WP_Query($args);
if ($query->have_posts()) { while ($query->have_posts()) { $query->the_post(); ?>
';
}
protected function businessroy_themes_post_meta() {
$settings = $this->get_settings_for_display();
?>