-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
71 lines (68 loc) · 3.43 KB
/
single.php
File metadata and controls
71 lines (68 loc) · 3.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<?php get_header(); ?>
<?php global $post;?>
<?php $rh_post_layout_style = get_post_meta($post->ID, '_post_layout', true);?>
<?php if ($rh_post_layout_style == '') {
if($post->post_type =='blog'){
$rh_post_layout_style = rehub_option('blog_layout_style');
}else{
$rh_post_layout_style = rehub_option('post_layout_style');
}
} ?>
<?php if ($rh_post_layout_style == '') :?>
<?php
if (REHUB_NAME_ACTIVE_THEME == 'RECASH') {
$rh_post_layout_style = 'meta_compact';
}
elseif (REHUB_NAME_ACTIVE_THEME == 'REPICK') {
$rh_post_layout_style = 'corner_offer';
}
elseif (REHUB_NAME_ACTIVE_THEME == 'RETHING') {
$rh_post_layout_style = 'meta_center';
}
elseif (REHUB_NAME_ACTIVE_THEME == 'REVENDOR') {
$rh_post_layout_style = 'meta_outside';
}
elseif (REHUB_NAME_ACTIVE_THEME == 'REDIRECT') {
$rh_post_layout_style = 'meta_compact_dir';
}
elseif (REHUB_NAME_ACTIVE_THEME == 'REWISE') {
$rh_post_layout_style = 'default';
}
else{
$rh_post_layout_style = 'default';
}?>
<?php endif;?>
<?php if($rh_post_layout_style == 'default') : ?>
<?php include(rh_locate_template('inc/post_layout/single-default.php')); ?>
<?php elseif($rh_post_layout_style == 'default_text_opt') : ?>
<?php include(rh_locate_template('inc/post_layout/single-default-readopt.php')); ?>
<?php elseif($rh_post_layout_style == 'meta_outside') : ?>
<?php include(rh_locate_template('inc/post_layout/single-meta-outside.php')); ?>
<?php elseif($rh_post_layout_style == 'meta_center') : ?>
<?php include(rh_locate_template('inc/post_layout/single-meta-center.php')); ?>
<?php elseif($rh_post_layout_style == 'meta_compact') : ?>
<?php include(rh_locate_template('inc/post_layout/single-meta-compact.php')); ?>
<?php elseif($rh_post_layout_style == 'meta_compact_dir') : ?>
<?php include(rh_locate_template('inc/post_layout/single-meta-compact-dir.php')); ?>
<?php elseif($rh_post_layout_style == 'corner_offer') : ?>
<?php include(rh_locate_template('inc/post_layout/single-corner-offer.php')); ?>
<?php elseif($rh_post_layout_style == 'meta_in_image') : ?>
<?php include(rh_locate_template('inc/post_layout/single-inimage.php')); ?>
<?php elseif($rh_post_layout_style == 'meta_in_imagefull') : ?>
<?php include(rh_locate_template('inc/post_layout/single-inimagefull.php')); ?>
<?php elseif($rh_post_layout_style == 'meta_ce_compare') : ?>
<?php include(rh_locate_template('inc/post_layout/single-ce-compare.php')); ?>
<?php elseif($rh_post_layout_style == 'meta_ce_compare_full') : ?>
<?php include(rh_locate_template('inc/post_layout/single-ce-compare-full.php')); ?>
<?php elseif($rh_post_layout_style == 'big_post_offer') : ?>
<?php include(rh_locate_template('inc/post_layout/single-big-offer.php')); ?>
<?php elseif($rh_post_layout_style == 'meta_ce_compare_auto_sec') : ?>
<?php include(rh_locate_template('inc/post_layout/single-ce-compare-autocontent.php')); ?>
<?php elseif($rh_post_layout_style == 'offer_and_review') : ?>
<?php include(rh_locate_template('inc/post_layout/single-offer-reviewscore.php')); ?>
<?php else:?>
<?php include(rh_locate_template('inc/post_layout/single-default.php')); ?>
<?php endif;?>
<!-- FOOTER -->
<?php get_footer(); ?>