Skip to content

Commit 6a1203a

Browse files
committed
1 parent c333add commit 6a1203a

File tree

4 files changed

+54
-54
lines changed

4 files changed

+54
-54
lines changed

footer.php

+11-11
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
<div class="row desktop">
2323
<div class="col-md-6 col-xs-6 footer_description">
2424
<ul>
25-
<li><? echo $word_by ?></li>
26-
<li><? echo $word_coordination ?></li>
27-
<li><? echo $word_spanish_credits ?></li>
28-
<li><? echo $word_design_dev ?></li>
29-
<li><? echo $word_licensed ?></li>
25+
<li><?= $word_by ?></li>
26+
<li><?= $word_coordination ?></li>
27+
<li><?= $word_spanish_credits ?></li>
28+
<li><?= $word_design_dev ?></li>
29+
<li><?= $word_licensed ?></li>
3030
</ul>
3131
</div>
3232
<div class="col-md-5 col-xs-6 footer_links">
@@ -41,11 +41,11 @@
4141
</div>
4242

4343
<div class="row mobile">
44-
<p><? echo $word_by ?><br><a href="https://creativecommons.org/">Creative Commons</a></p>
45-
<p><? echo $word_coordination ?><br><a href="http://creativecommons.pt/">Creative Commons Portugal</a></p>
46-
<p><? echo $word_spanish_credits ?><br><a href="https://www.creativecommons.org.py/">Creative Commons Paraguay</a></p>
47-
<p><? echo $word_design_dev ?><br><a href="http://jplusplus.org/pt/">Journalism++</a></p>
48-
<p><? echo $word_licensed ?><br><a href="https://creativecommons.org/licenses/by/4.0/">Attribution 4.0 International (CC BY 4.0)</a></p>
44+
<p><?= $word_by ?><br><a href="https://creativecommons.org/">Creative Commons</a></p>
45+
<p><?= $word_coordination ?><br><a href="http://creativecommons.pt/">Creative Commons Portugal</a></p>
46+
<p><?= $word_spanish_credits ?><br><a href="https://www.creativecommons.org.py/">Creative Commons Paraguay</a></p>
47+
<p><?= $word_design_dev ?><br><a href="http://jplusplus.org/pt/">Journalism++</a></p>
48+
<p><?= $word_licensed ?><br><a href="https://creativecommons.org/licenses/by/4.0/">Attribution 4.0 International (CC BY 4.0)</a></p>
4949
</div>
5050
</footer>
5151

@@ -54,4 +54,4 @@
5454
</div>
5555

5656
</body>
57-
</html>
57+
</html>

header.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<head>
1515

1616
<meta charset="<?php bloginfo( 'charset' ); ?>">
17-
<title><? the_field('page_title', 'option'); ?></title>
17+
<title><?php the_field('page_title', 'option'); ?></title>
1818

1919
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
2020

@@ -30,4 +30,4 @@
3030
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
3131

3232
</head>
33-
<body>
33+
<body>

index.php

+18-18
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@
2424
<div class="row">
2525
<!-- Logo -->
2626
<div class="col-md-6">
27-
<h1><img src="/wp-content/themes/cctoolkit/img/logo/<? echo $logo_link ?>" class="img-responsive"/></h1>
27+
<h1><img src="/wp-content/themes/cctoolkit/img/logo/<?= $logo_link ?>" class="img-responsive"/></h1>
2828
</div>
2929
<!-- Menus -->
3030
<div class="col-md-6">
3131
<div id="lang_switcher" class="hidden-xs">
32-
<? the_widget('qTranslateXWidget', array('type' => 'list-item', 'hide-title' => true) ) ?>
32+
<?php the_widget('qTranslateXWidget', array('type' => 'list-item', 'hide-title' => true) ) ?>
3333
</div>
3434
<nav class="hidden-xs">
3535
<ul>
36-
<li><a href="#intro"><? echo $word_introduction ?></a></li>
37-
<li><a href="#content"><? echo $word_how ?></a></li>
38-
<li><a href="#links"><? echo $word_links ?></a></li>
39-
<li><a href="#downloads"><? echo $word_downloads ?></a></li>
36+
<li><a href="#intro"><?= $word_introduction ?></a></li>
37+
<li><a href="#content"><?= $word_how ?></a></li>
38+
<li><a href="#links"><?= $word_links ?></a></li>
39+
<li><a href="#downloads"><?= $word_downloads ?></a></li>
4040
</ul>
4141
</nav>
4242

@@ -48,7 +48,7 @@
4848
<button class="btn dropdown-toggle" type="button" data-toggle="dropdown">
4949
<img src="/wp-content/themes/cctoolkit/img/outline-language-24px.svg" /></button>
5050
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
51-
<? the_widget('qTranslateXWidget', array('type' => 'list-item', 'hide-title' => true) ) ?>
51+
<?php the_widget('qTranslateXWidget', array('type' => 'list-item', 'hide-title' => true) ) ?>
5252
</div>
5353
</div>
5454

@@ -87,15 +87,15 @@
8787
}
8888
?>
8989

90-
<a href="<? echo $download_file_url ?>"><? echo $word_download_call_to_action ?></a>
90+
<a href="<?= $download_file_url ?>"><?= $word_download_call_to_action ?></a>
9191
</p>
9292
</div>
9393

9494

9595
<!-- Introduction text -->
9696
<div class="row" style="margin: 0 auto;">
9797
<div class="introduction_text col-md-6 col-xs-12 col-md-offset-3">
98-
<? the_field('introduction', 'option'); ?>
98+
<?php the_field('introduction', 'option'); ?>
9999
</div>
100100
</div>
101101
</section>
@@ -104,7 +104,7 @@
104104
<section id="content" name="how">
105105
<div class="row">
106106
<div class="col-md-12">
107-
<h2 name="how"><span><i class="material-icons">business_center</i><? echo $word_how_benefit ?></span></h2>
107+
<h2 name="how"><span><i class="material-icons">business_center</i><?= $word_how_benefit ?></span></h2>
108108
</div>
109109
</div>
110110

@@ -133,24 +133,24 @@
133133
<img src="<?php the_field('illustration')['url'] ?>" />
134134
</div>
135135
<div class="col-md-6">
136-
<h3><? the_title(); ?></h3>
136+
<h3><?php the_title(); ?></h3>
137137
<p><?php the_field('text') ?></p>
138138
</div>
139139
</div>
140-
<? } else { ?>
140+
<?php } else { ?>
141141
<div class="row item left">
142142
<div class="col-md-4 visible-xs">
143143
<img src="<?php the_field('illustration')['url'] ?>"/>
144144
</div>
145145
<div class="col-md-6 col-md-offset-1">
146-
<h3><? the_title(); ?></h3>
146+
<h3><?php the_title(); ?></h3>
147147
<p><?php the_field('text') ?></p>
148148
</div>
149149
<div class="col-md-4 hidden-xs">
150150
<img src="<?php the_field('illustration')['url'] ?>"/>
151151
</div>
152152
</div>
153-
<? } ?>
153+
<?php } ?>
154154

155155

156156
<?php
@@ -172,10 +172,10 @@
172172

173173
<!-- Call to Action -->
174174
<div class="call_to_action">
175-
<p><? echo $word_for_more_information ?></p>
175+
<p><?= $word_for_more_information ?></p>
176176
<p class="download">
177177
<i class="material-icons">cloud_download</i>
178-
<a href="<? echo $download_file_url ?>"><? echo $word_download_call_to_action ?></a>
178+
<a href="<?= $download_file_url ?>"><?= $word_download_call_to_action ?></a>
179179
</p>
180180
</div>
181181

@@ -185,7 +185,7 @@
185185
<div class="col-md-2">
186186
</div>
187187
<div class="col-md-4" id="links">
188-
<h3 name="links"><span><i class="material-icons">link</i><? echo $word_links ?></span></h3>
188+
<h3 name="links"><span><i class="material-icons">link</i><?= $word_links ?></span></h3>
189189
<?php
190190

191191
$posts = get_posts(array(
@@ -215,7 +215,7 @@
215215
<?php endif; ?>
216216
</div>
217217
<div class="col-md-4" id="downloads">
218-
<h3 name="downloads"><span><i class="material-icons">folder</i><? echo $word_downloads ?></span></h3>
218+
<h3 name="downloads"><span><i class="material-icons">folder</i><?= $word_downloads ?></span></h3>
219219
<?php
220220

221221
$posts = get_posts(array(

index_old.php

+23-23
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
<div class="row">
1313
<div id="title" class="col-sm-6">
1414
<h1>
15-
<? if (qtranxf_getLanguage() == "en") { ?>
15+
<?php if (qtranxf_getLanguage() == "en") { ?>
1616
CC Toolkit for Business
17-
<? } elseif (qtranxf_getLanguage() == "es") { ?>
17+
<?php } elseif (qtranxf_getLanguage() == "es") { ?>
1818
Herramientas CC para los Negocios
19-
<? } elseif (qtranxf_getLanguage() == "pt") { ?>
19+
<?php } elseif (qtranxf_getLanguage() == "pt") { ?>
2020
Toolkit CC para Negócios
21-
<? } ?>
21+
<?php } ?>
2222
</h1>
2323
</div>
2424
<div id="lang_switch" class="col-sm-6">
25-
<? the_widget('qTranslateXWidget', array('type' => 'both', 'hide-title' => true, 'flags' => 'all') ) ?>
25+
<?php the_widget('qTranslateXWidget', array('type' => 'both', 'hide-title' => true, 'flags' => 'all') ) ?>
2626
</div>
2727
</div>
2828
</div>
@@ -31,7 +31,7 @@
3131
<div id="intro" class="container">
3232
<div class="row">
3333
<div id="intro_text" class="col-sm-6">
34-
<?
34+
<?php
3535
$my_postid = 1;//This is page id or post id
3636
$content_post = get_post($my_postid);
3737
$content = $content_post->post_content;
@@ -41,24 +41,24 @@
4141

4242
?>
4343
<button type="button" class="btn btn-success">
44-
<? if (qtranxf_getLanguage() == "en") { ?>
44+
<?php if (qtranxf_getLanguage() == "en") { ?>
4545
Download
46-
<? } elseif (qtranxf_getLanguage() == "es") { ?>
46+
<?php } elseif (qtranxf_getLanguage() == "es") { ?>
4747
Descargar
48-
<? } elseif (qtranxf_getLanguage() == "pt") { ?>
48+
<?php } elseif (qtranxf_getLanguage() == "pt") { ?>
4949
Descarregar
50-
<? } ?>
50+
<?php } ?>
5151
</button>
5252
</div>
5353
<div id="intro_video" class="col-sm-6">
5454
<p>
55-
<? if (qtranxf_getLanguage() == "en") { ?>
55+
<?php if (qtranxf_getLanguage() == "en") { ?>
5656
EN YouTube video
57-
<? } elseif (qtranxf_getLanguage() == "es") { ?>
57+
<?php } elseif (qtranxf_getLanguage() == "es") { ?>
5858
ES Youtube Video con subtítulos
59-
<? } elseif (qtranxf_getLanguage() == "pt") { ?>
59+
<?php } elseif (qtranxf_getLanguage() == "pt") { ?>
6060
PT Youtube Video com legendas ou voiceover?
61-
<? } ?>
61+
<?php } ?>
6262
</p>
6363
</div>
6464
</div>
@@ -69,13 +69,13 @@
6969
<div class="row">
7070
<div id="references" class="col-sm-6">
7171
<h3>
72-
<? if (qtranxf_getLanguage() == "en") { ?>
72+
<?php if (qtranxf_getLanguage() == "en") { ?>
7373
Links
74-
<? } elseif (qtranxf_getLanguage() == "es") { ?>
74+
<?php } elseif (qtranxf_getLanguage() == "es") { ?>
7575
Enlaces
76-
<? } elseif (qtranxf_getLanguage() == "pt") { ?>
76+
<?php } elseif (qtranxf_getLanguage() == "pt") { ?>
7777
Ligações
78-
<? } ?>
78+
<?php } ?>
7979
</h3>
8080
<!-- Links -->
8181
<?php
@@ -108,13 +108,13 @@
108108
</div>
109109
<div id="downloads" class="col-sm-6">
110110
<h3>
111-
<? if (qtranxf_getLanguage() == "en") { ?>
111+
<?php if (qtranxf_getLanguage() == "en") { ?>
112112
Other Downloads
113-
<? } elseif (qtranxf_getLanguage() == "es") { ?>
113+
<?php } elseif (qtranxf_getLanguage() == "es") { ?>
114114
Otras Descargas
115-
<? } elseif (qtranxf_getLanguage() == "pt") { ?>
115+
<?php } elseif (qtranxf_getLanguage() == "pt") { ?>
116116
Outros Descarregamentos
117-
<? } ?>
117+
<?php } ?>
118118
</h3>
119119
<!-- Downloads -->
120120
<?php
@@ -153,7 +153,7 @@
153153

154154
<?// echo qtranxf_getLanguage(); ?>
155155

156-
<? /*
156+
<?php /*
157157
$my_postid = 1;//This is page id or post id
158158
$content_post = get_post($my_postid);
159159
$content = $content_post->post_content;

0 commit comments

Comments
 (0)