This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0|nextjs | at Function.getInitialProps (/opt/publisher-pwa/.next/server/pages/_document.js:103:65) | |
0|nextjs | at Object.loadGetInitialProps (/opt/publisher-pwa/node_modules/next/dist/shared/lib/utils.js:65:29) | |
0|nextjs | TypeError: Cannot read property 'isEnglish' of undefined | |
0|nextjs | at Object.children (/opt/publisher-pwa/.next/server/chunks/210.js:270:35) | |
0|nextjs | at a.b.render (/opt/publisher-pwa/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:44:213) | |
0|nextjs | at a.b.read (/opt/publisher-pwa/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:41:83) | |
0|nextjs | at Object.exports.renderToString (/opt/publisher-pwa/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:52:138) | |
0|nextjs | at renderPage (/opt/publisher-pwa/node_modules/next/dist/server/render.js:804:45) | |
0|nextjs | at Object.ctx.renderPage (/opt/publisher-pwa/.next/server/pages/_document.js:97:34) | |
0|nextjs | at Object.defaultGetInitialPro |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body.noI form.wufoo { | |
clear:left!important; | |
font-family: 'Roboto', Arial, Helvetica, sans-serif!important; | |
padding: 15px 20px!important; | |
max-width: 560px!important; | |
} | |
form.wufoo ul { | |
margin-left: 0px!important; | |
list-style: none!important; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- In order to use display maps you must include jQuery in the header of your document --> | |
{{ if $gimme->article->has_map }} | |
<h4>Article: {{ $gimme->article->name }}</h4> | |
<div> | |
{{ map show_original_map="true" show_reset_link="true" show_locations_list="false" width="100%" height="250" }} | |
</div> | |
{{ if $gimme->map->name|strip !== "" }} | |
<p>Map Name: {{ $gimme->map->name }}</p> | |
{{ /if }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section class="clearfix"> | |
{{ capture name="check_image" assign="thumbImage" }}{{ strip }} | |
{{ image rendition="square" }} | |
<figure class="thumb"> | |
<a href="{{ url options="article" }}"> | |
<img src="{{ $image->src }}" width="{{ $image->width }}" height="{{ $image->height }}" rel="resizable" style="max-width: 100%" alt="{{ $image->caption }} {{ if $image->photographer|trim }}(photo: {{ $image->photographer }}){{ /if }}" /> | |
</a> | |
<figcaption> | |
<em>{{ $image->caption }} {{ if $image->photographer|trim }}(Photo: {{ $image->photographer }}){{ /if }}</em> | |
</figcaption> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ list_articles ignore_issue="true" ignore_section="true" length="5" order="byPopularity desc" constraints="type is news" }} | |
{{ if $gimme->current_list->at_beginning }} | |
<ul> | |
{{ /if }} | |
<li>{{ $gimme->article->name }}, {{ $gimme->article->reads }} read{{ if $gimme->article->comment_count ne 1 }}s{{ /if }}</li> | |
{{ if $gimme->current_list->at_end }} | |
</ul> | |
{{ /if }} | |
{{ /list_articles }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{* working with array of authors here *}} | |
{{ $userArray=[] }} | |
{{ $userArray['A']=[] }}{{ $userArray['B']=[] }}{{ $userArray['C']=[] }}{{ $userArray['D']=[] }}{{ $userArray['E']=[] }}{{ $userArray['F']=[] }}{{ $userArray['G']=[] }}{{ $userArray['H']=[] }}{{ $userArray['I']=[] }}{{ $userArray['J']=[] }}{{ $userArray['K']=[] }}{{ $userArray['L']=[] }}{{ $userArray['M']=[] }}{{ $userArray['N']=[] }}{{ $userArray['O']=[] }}{{ $userArray['P']=[] }}{{ $userArray['Q']=[] }}{{ $userArray['R']=[] }}{{ $userArray['S']=[] }}{{ $userArray['T']=[] }}{{ $userArray['U']=[] }}{{ $userArray['V']=[] }}{{ $userArray['W']=[] }}{{ $userArray['X']=[] }}{{ $userArray['Y']=[] }}{{ $userArray['Z']=[] }} | |
{{* Associative array of arrays - keys are alphabet letters, values are arrays of users whose names start with that letter *}} | |
{{* list_users filter="editors" editor_groups="8" length="100" *}} | |
{{* As can be seen in the example above, list can be further filtered out to specific user type - for e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ include file="_tpl/_html-head.tpl" }} | |
<body id="page-{{ $gimme->section->url_name }}"> | |
<div id="fb-root"></div> | |
<script>(function(d, s, id) { | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) return; | |
js = d.createElement(s); js.id = id; | |
js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&appId=395335463866299&version=v2.0"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row" style="background-color: #ddd; padding: 15px 0; margin-bottom: 20px"> | |
<div> | |
<div class="col-md-4"> | |
{{ include file="_snippets/user-image.tpl" size="xbig" }} | |
</div> | |
<div class="col-md-4"> | |
<h3 class="bigger">{{ $user->first_name }} {{ $user->last_name }}</h3> | |
<p>{{ $user['bio']|escape }}</p> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row" style="background-color: #ddd; padding: 15px 0; margin-bottom: 20px"> | |
{{ if $gimme->author->picture->imageurl }} | |
<div class="col-md-4"> | |
<img src="{{ $gimme->author->picture->getImageUrl(200, 200, 'crop') }}" alt="{{ $gimme->author->name }}" style="max-width: 100%" /> | |
</div> | |
{{ elseif $gimme->author->user->image(200, 200, 'crop') }} | |
<div class="col-md-4"> | |
<img src="{{ $gimme->author->user->image(200, 200, 'crop') }}" alt="{{ $gimme->author->user->uname|escape }}" style="max-width: 100%" /> | |
</div> | |
{{ /if }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="loadMore scroll"> | |
{{ list_articles length="5" ignore_issue="true" ignore_section="true" constraints="type is news" }} | |
{{* here we include another code snippet that generates article teasers *}} | |
{{ include file="_snippets/news-teaser.tpl" }} | |
{{ if $gimme->current_list->at_end }} | |
{{* here we check if list has more elements, and if so, we create a link for | |
loading next bunch of articles *}} |
NewerOlder