blog_item_id) . '" ';
if( $post_format == 'audio' ){
$ret .= ' data-sync-height-center';
}
$ret .= ' >';
}else{
$ret = '
';
}
if( empty($args['show-thumbnail']) || $args['show-thumbnail'] == 'enable' ){
$blog_thumbnail = $this->blog_thumbnail(array(
'thumbnail-size' => $args['thumbnail-size'],
'post-format' => $post_format,
'post-format-gallery' => 'slider',
'opacity-on-hover' => empty($args['enable-thumbnail-opacity-on-hover'])? 'enable': $args['enable-thumbnail-opacity-on-hover'],
'zoom-on-hover' => empty($args['enable-thumbnail-zoom-on-hover'])? 'enable': $args['enable-thumbnail-zoom-on-hover'],
'grayscale-effect' => empty($args['enable-thumbnail-grayscale-effect'])? 'disable': $args['enable-thumbnail-grayscale-effect'],
'thumbnail-content' => $this->blog_info(array(
'display' => array('comment-number', 'category'),
'category-background-color' => empty($args['category-background-color'])? '': $args['category-background-color']
))
), $thumbnail_shadow);
$ret .= $blog_thumbnail;
if( !empty($blog_thumbnail) && empty($post_format) ){
$args['meta-option'] = array_diff($args['meta-option'], array('comment-number', 'category'));
}
}
if( $args['blog-style'] == 'blog-column-with-frame' ){
$ret .= '
';
}else{
$ret .= '
';
}
$ret .= $this->blog_info(array(
'display' => $args['meta-option'],
'wrapper' => true,
'separator' => '•'
));
$ret .= $this->blog_title($args);
$ret .= $this->get_blog_excerpt($args);
$ret .= '
'; // gdlr-core-blog-grid-content-wrap
$ret .= '
'; // gdlr-core-blog-grid
return $ret;
}
// blog modern
function blog_modern( $args ){
$feature_image = get_post_thumbnail_id();
$additional_class = empty($feature_image)? ' gdlr-core-no-image': ' gdlr-core-with-image';
if( empty($args['always-show-overlay-content']) || $args['always-show-overlay-content'] == 'disable' ){
$additional_class .= ' gdlr-core-hover-overlay-content';
}
if( empty($args['enable-thumbnail-opacity-on-hover']) || $args['enable-thumbnail-opacity-on-hover'] == 'enable' ){
$additional_class .= ' gdlr-core-opacity-on-hover';
}
if( empty($args['enable-thumbnail-zoom-on-hover']) || $args['enable-thumbnail-zoom-on-hover'] == 'enable' ){
$additional_class .= ' gdlr-core-zoom-on-hover';
}
if( !empty($args['enable-thumbnail-grayscale-effect']) && $args['enable-thumbnail-grayscale-effect'] == 'enable' ){
$additional_class .= ' gdlr-core-grayscale-effect';
}
if( !empty($args['blog-image-style']) && $args['blog-image-style'] == 'style-2' ){
$additional_class .= ' gdlr-core-style-2';
}
$thumbnail_shadow = array();
if( !empty($feature_image) && !empty($args['frame-shadow-size']['size']) && !empty($args['frame-shadow-color']) && !empty($args['frame-shadow-opacity']) ){
$thumbnail_shadow['background-shadow-size'] = $args['frame-shadow-size'];
$thumbnail_shadow['background-shadow-color'] = $args['frame-shadow-color'];
$thumbnail_shadow['background-shadow-opacity'] = $args['frame-shadow-opacity'];
$additional_class .= ' gdlr-core-outer-frame-element';
}
$ret = '
';
$ret .= '
';
if( !empty($feature_image) ){
$ret .= '
';
$ret .= gdlr_core_get_image($feature_image, $args['thumbnail-size'], array('placeholder' => false));
if( !empty($args['blog-image-style']) && $args['blog-image-style'] == 'style-2' ){
$ret .= $this->blog_info(array(
'display' => array('category'),
'category-background-color' => empty($args['category-background-color'])? '': $args['category-background-color']
));
$args['meta-option'] = array_diff($args['meta-option'], array('category'));
}
$ret .= '
';
}
if( !empty($args['blog-image-thumbnail-overlay']) ){
if( $args['blog-image-thumbnail-overlay'] == 'gradient' ){
$ret .= '
';
}else if( $args['blog-image-thumbnail-overlay'] == 'gradient2' ){
$ret .= '
';
}else if( $args['blog-image-thumbnail-overlay'] == 'opacity' ){
$ret .= '
(empty($args['blog-image-thumbnail-overlay-opacity']) || $args['blog-image-thumbnail-overlay-opacity'] == '0.4')? '': $args['blog-image-thumbnail-overlay-opacity']
)) . ' >
';
}
}
$ret .= '
empty($args['blog-image-overlay-content-padding'])? '': $args['blog-image-overlay-content-padding']
)) . '>';
$ret .= $this->blog_title($args);
$ret .= $this->blog_info(array(
'display' => $args['meta-option'],
'wrapper' => true
));
if( !empty($args['blog-image-excerpt-number']) ){
$args['excerpt'] = 'specify-number';
$args['excerpt-number'] = $args['blog-image-excerpt-number'];
$ret .= $this->get_blog_excerpt($args);
}
$ret .= '
'; // gdlr-core-blog-modern-content
$ret .= '
'; // gdlr-core-blog-modern-inner
$ret .= '
'; // gdlr-core-blog-modern
return $ret;
}
// blog feature
function blog_feature( $args ){
$feature_image = get_post_thumbnail_id();
$additional_class = empty($feature_image)? ' gdlr-core-no-image': ' gdlr-core-with-image';
if( empty($args['blog-feature-main']) ){
$additional_class .= ' gdlr-core-sub-item';
unset($args['blog-title-font-size']);
}else{
$additional_class .= ' gdlr-core-main-item';
}
if( empty($args['always-show-overlay-content']) || $args['always-show-overlay-content'] == 'disable' ){
$additional_class .= ' gdlr-core-hover-overlay-content';
}
if( empty($args['enable-thumbnail-opacity-on-hover']) || $args['enable-thumbnail-opacity-on-hover'] == 'enable' ){
$additional_class .= ' gdlr-core-opacity-on-hover';
}
if( empty($args['enable-thumbnail-zoom-on-hover']) || $args['enable-thumbnail-zoom-on-hover'] == 'enable' ){
$additional_class .= ' gdlr-core-zoom-on-hover';
}
if( !empty($args['enable-thumbnail-grayscale-effect']) && $args['enable-thumbnail-grayscale-effect'] == 'enable' ){
$additional_class .= ' gdlr-core-grayscale-effect';
}
$ret = '
';
$ret .= '
';
if( !empty($feature_image) ){
$ret .= '
';
$ret .= gdlr_core_get_image($feature_image, $args['thumbnail-size'], array('placeholder' => false));
$ret .= '
';
}
if( !empty($args['blog-image-thumbnail-overlay']) ){
if( $args['blog-image-thumbnail-overlay'] == 'gradient' ){
$ret .= '
';
}else if( $args['blog-image-thumbnail-overlay'] == 'gradient2' ){
$ret .= '
';
}else if( $args['blog-image-thumbnail-overlay'] == 'opacity' ){
$ret .= '
(empty($args['blog-image-thumbnail-overlay-opacity']) || $args['blog-image-thumbnail-overlay-opacity'] == '0.4')? '': $args['blog-image-thumbnail-overlay-opacity']
)) . ' >
';
}
}
if( in_array('category', $args['meta-option']) ){
$ret .= $this->blog_info(array(
'display' => array('category'),
'category-background-color' => empty($args['category-background-color'])? '': $args['category-background-color']
));
$args['meta-option'] = array_diff($args['meta-option'], array('category'));
}
$ret .= '
';
$ret .= $this->blog_title($args);
$ret .= $this->blog_info(array(
'display' => $args['meta-option'],
'wrapper' => true
));
$ret .= '
'; // gdlr-core-blog-modern-content
$ret .= '
'; // gdlr-core-blog-modern-inner
$ret .= '
'; // gdlr-core-blog-modern
return $ret;
}
// blog metro
function blog_metro( $args ){
$feature_image = get_post_thumbnail_id();
$additional_class = empty($feature_image)? ' gdlr-core-no-image': ' gdlr-core-with-image';
if( empty($args['enable-thumbnail-opacity-on-hover']) || $args['enable-thumbnail-opacity-on-hover'] == 'enable' ){
$additional_class .= ' gdlr-core-opacity-on-hover';
}
if( empty($args['enable-thumbnail-zoom-on-hover']) || $args['enable-thumbnail-zoom-on-hover'] == 'enable' ){
$additional_class .= ' gdlr-core-zoom-on-hover';
}
if( !empty($args['enable-thumbnail-grayscale-effect']) && $args['enable-thumbnail-grayscale-effect'] == 'enable' ){
$additional_class .= ' gdlr-core-grayscale-effect';
}
$thumbnail_shadow = array();
if( !empty($feature_image) && !empty($args['frame-shadow-size']['size']) && !empty($args['frame-shadow-color']) && !empty($args['frame-shadow-opacity']) ){
$thumbnail_shadow['background-shadow-size'] = $args['frame-shadow-size'];
$thumbnail_shadow['background-shadow-color'] = $args['frame-shadow-color'];
$thumbnail_shadow['background-shadow-opacity'] = $args['frame-shadow-opacity'];
}
$ret = '
';
$ret .= '
';
if( !empty($feature_image) ){
$ret .= '
';
$ret .= gdlr_core_get_image($feature_image, $args['thumbnail-size'], array('placeholder' => false));
$ret .= '
';
}
$ret .= '
';
$ret .= $this->blog_title($args);
$ret .= $this->blog_info(array(
'display' => $args['meta-option'],
'wrapper' => true
));
$ret .= '
'; // gdlr-core-blog-metro-content
$ret .= '
'; // gdlr-core-blog-metro-inner
$ret .= '
'; // gdlr-core-blog-metro
return $ret;
}
// blog list
function blog_widget( $args ){
$additional_class = empty($args['text-align'])? '': ' gdlr-core-' . $args['text-align'] . '-align';
$additional_class .= empty($args['item-size'])? '': 'gdlr-core-style-' . $args['item-size'];
$ret = '
empty($args['margin-bottom'])? '': $args['margin-bottom']
)) . ' >';
if( empty($args['show-thumbnail']) || $args['show-thumbnail'] == 'enable' ){
$ret .= $this->blog_thumbnail(array(
'thumbnail-size' => 'thumbnail',
'opacity-on-hover' => empty($args['enable-thumbnail-opacity-on-hover'])? 'enable': $args['enable-thumbnail-opacity-on-hover'],
'zoom-on-hover' => empty($args['enable-thumbnail-zoom-on-hover'])? 'enable': $args['enable-thumbnail-zoom-on-hover'],
'grayscale-effect' => empty($args['enable-thumbnail-grayscale-effect'])? 'disable': $args['enable-thumbnail-grayscale-effect']
));
}
$ret .= '
';
$ret .= $this->blog_title($args);
$ret .= $this->blog_info(array(
'display' => $args['meta-option'],
'wrapper' => true
));
$ret .= '
'; // gdlr-core-blog-widget-content
$ret .= '
'; // gdlr-core-blog-widget
return $ret;
}
// blog list
function blog_list( $args ){
$with_frame = ( !empty($args['blog-list-with-frame']) && $args['blog-list-with-frame'] == 'enable' );
$additional_class = ($args['blog-style'] == 'blog-list-center')? ' gdlr-core-center-align': '';
$additional_class .= ($with_frame)? ' gdlr-core-blog-list-with-frame': '';
$ret = '
empty($args['margin-bottom'])? '': $args['margin-bottom']
)) . ' >';
$ret .= $with_frame? '
': '';
$ret .= $this->blog_title($args);
$ret .= $this->blog_info(array(
'display' => $args['meta-option'],
'wrapper' => true,
'icon' => false,
'separator' => '/'
));
$ret .= $with_frame? '
': '';
$ret .= '
'; // gdlr-core-blog-list
return $ret;
}
} // gdlr_core_blog_item
} // class_exists
{"id":34,"date":"2019-05-21T14:42:43","date_gmt":"2019-05-21T14:42:43","guid":{"rendered":"http:\/\/chetanheaters.com\/?page_id=34"},"modified":"2020-01-12T06:53:05","modified_gmt":"2020-01-12T06:53:05","slug":"homepage","status":"publish","type":"page","link":"https:\/\/chetanheaters.com\/","title":{"rendered":"Homepage"},"content":{"rendered":"","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-34","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/chetanheaters.com\/wp-json\/wp\/v2\/pages\/34"}],"collection":[{"href":"https:\/\/chetanheaters.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/chetanheaters.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/chetanheaters.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chetanheaters.com\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":5,"href":"https:\/\/chetanheaters.com\/wp-json\/wp\/v2\/pages\/34\/revisions"}],"predecessor-version":[{"id":255,"href":"https:\/\/chetanheaters.com\/wp-json\/wp\/v2\/pages\/34\/revisions\/255"}],"wp:attachment":[{"href":"https:\/\/chetanheaters.com\/wp-json\/wp\/v2\/media?parent=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}