-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex_old.php
169 lines (133 loc) · 3.99 KB
/
index_old.php
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<?php
/**
* The main template file.
*
*
* @package cctoolkit
*/
get_header(); ?>
<div id="header" class="container">
<div class="row">
<div id="title" class="col-sm-6">
<h1>
<?php if (qtranxf_getLanguage() == "en") { ?>
CC Toolkit for Business
<?php } elseif (qtranxf_getLanguage() == "es") { ?>
Herramientas CC para los Negocios
<?php } elseif (qtranxf_getLanguage() == "pt") { ?>
Toolkit CC para Negócios
<?php } ?>
</h1>
</div>
<div id="lang_switch" class="col-sm-6">
<?php the_widget('qTranslateXWidget', array('type' => 'both', 'hide-title' => true, 'flags' => 'all') ) ?>
</div>
</div>
</div>
<div id="intro" class="container">
<div class="row">
<div id="intro_text" class="col-sm-6">
<?php
$my_postid = 1;//This is page id or post id
$content_post = get_post($my_postid);
$content = $content_post->post_content;
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
echo $content;
?>
<button type="button" class="btn btn-success">
<?php if (qtranxf_getLanguage() == "en") { ?>
Download
<?php } elseif (qtranxf_getLanguage() == "es") { ?>
Descargar
<?php } elseif (qtranxf_getLanguage() == "pt") { ?>
Descarregar
<?php } ?>
</button>
</div>
<div id="intro_video" class="col-sm-6">
<p>
<?php if (qtranxf_getLanguage() == "en") { ?>
EN YouTube video
<?php } elseif (qtranxf_getLanguage() == "es") { ?>
ES Youtube Video con subtítulos
<?php } elseif (qtranxf_getLanguage() == "pt") { ?>
PT Youtube Video com legendas ou voiceover?
<?php } ?>
</p>
</div>
</div>
</div>
<div id="content" class="container">
<div class="row">
<div id="references" class="col-sm-6">
<h3>
<?php if (qtranxf_getLanguage() == "en") { ?>
Links
<?php } elseif (qtranxf_getLanguage() == "es") { ?>
Enlaces
<?php } elseif (qtranxf_getLanguage() == "pt") { ?>
Ligações
<?php } ?>
</h3>
<!-- Links -->
<?php
$posts = get_posts(array(
'posts_per_page' => -1,
'post_type' => 'link'
));
if( $posts ): ?>
<ul>
<?php foreach( $posts as $post ):
setup_postdata( $post )
?>
<li>
<a href="<?php strip_tags(the_content()); ?>" target="_blank"><?php the_title(); ?></a>
</li>
<?php endforeach; ?>
</ul>
<?php wp_reset_postdata(); ?>
<?php endif; ?>
</div>
<div id="downloads" class="col-sm-6">
<h3>
<?php if (qtranxf_getLanguage() == "en") { ?>
Other Downloads
<?php } elseif (qtranxf_getLanguage() == "es") { ?>
Otras Descargas
<?php } elseif (qtranxf_getLanguage() == "pt") { ?>
Outros Descarregamentos
<?php } ?>
</h3>
<!-- Downloads -->
<?php
$posts = get_posts(array(
'posts_per_page' => -1,
'post_type' => 'download'
));
if( $posts ): ?>
<ul>
<?php foreach( $posts as $post ):
setup_postdata( $post )
?>
<li>
<a href="<?php strip_tags(the_content()); ?>" target="_blank"><?php the_title(); ?></a>
</li>
<?php endforeach; ?>
</ul>
<?php wp_reset_postdata(); ?>
<?php endif; ?>
</div>
</div>
</div>
<?// echo qtranxf_getLanguage(); ?>
<?php /*
$my_postid = 1;//This is page id or post id
$content_post = get_post($my_postid);
$content = $content_post->post_content;
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
echo $content;
*/
?>
<?php get_footer(); ?>