' );
}
}
/**
* Social Network Lists
*
* @access public
* @return array
*/
public static function social_network_list() {
return [
'facebook' => esc_html__( 'Facebook', 'aarambha-real-estate' ),
'twitter' => esc_html__( 'Twitter', 'aarambha-real-estate' )
];
}
/**
* Retrieves the post meta.
*
* @param int $post_id The ID of the post.
* @param null|array $meta_list custom post meta list
* @return void
*/
public static function post_meta( $post_id = null, $meta_list = null ) {
// Require post ID.
if ( ! $post_id ) {
return;
}
/**
* Filters post types array.
*
* @param array Array of post types
*/
$disallowed_post_types = apply_filters( 'aarambha_real_estate_disallowed_post_meta', array( 'page' ) );
// Check whether the post type is allowed to output post meta.
if ( in_array( get_post_type( $post_id ), $disallowed_post_types, true ) ) {
return;
}
if ( 'property' == get_post_type() ) {
$post_meta = $meta_list ? $meta_list : get_theme_mod(
'aarambha_real_estate_property_single_post_meta_elements',
['author','post-date']
);
}
else {
$post_meta = $meta_list ? $meta_list : get_theme_mod(
'aarambha_real_estate_single_post_meta_elements',
['author','post-date']
);
}
// If the post meta setting has the value 'empty', it's explicitly empty and the default post meta shouldn't be output.
if ( $post_meta && ! in_array( 'empty', $post_meta, true ) ) {
// Make sure we don't output an empty container.
$has_meta = false;
global $post;
$the_post = get_post( $post_id );
setup_postdata( $the_post );
ob_start();
?>
>
have_posts() ) : $the_query->the_post();
/*
* Include the Post-Type-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Type name) and that will be used instead.
*/
?>