Exemplo n.º 1
0
 def getChapters(self, component, **kwargs):
     return Data(items=('Chapter1', 'Chapter2', 'Chapter3'))
Exemplo n.º 2
0
 def forEachResult(self):
     return Data(text="<?php foreach($results as $result): ?>")
Exemplo n.º 3
0
 def resultTitle(self):
     return Data(text="<?php echo $result->title() ?>")
Exemplo n.º 4
0
 def articleUrl(self):
     return Data(url="<?php echo $article->url() ?>")
Exemplo n.º 5
0
 def excerptArticle(self, length):
     return Data(text="<?php echo excerpt($article->text(), %d) ?>" %
                 length)
Exemplo n.º 6
0
 def forEachArticle(self):
     return Data(loop="<?php foreach($articles as $article): ?>")
Exemplo n.º 7
0
 def ifPaginationHasPages(self):
     return Data(text="<?php if($articles->pagination()->hasPages()): ?>")
Exemplo n.º 8
0
 def getLogoUrl(self, component, **kwargs):
     return Data(
         url=
         'http://data.xierpa.com.s3.amazonaws.com/_images/xierpa_x_green.png'
     )
Exemplo n.º 9
0
 def ifArticlesHasNext(self):
     return Data(
         text="<?php if($articles->pagination()->hasNextPage()): ?>")
Exemplo n.º 10
0
 def getFooter(self, component, **kwargs):
     return Data(text='Footer ' * 20)
Exemplo n.º 11
0
 def getLogo(self, component, **kwargs):
     return Data(text='Logo ' * 4)
Exemplo n.º 12
0
 def getArticle(self, component, **kwargs):
     return Data(text='Article ' * 300)
Exemplo n.º 13
0
 def getArticles(self, component, **kwargs):
     return Data(items=('Article1', 'Article2', 'Article3'))
Exemplo n.º 14
0
 def getFeaturedArticles(self, component, **kwargs):
     return Data(items=('Featured article1', 'Featured article2',
                        'Featured article3'))
Exemplo n.º 15
0
 def htmlTag(self):
     return Data(text="<?php echo html($tag) ?>")
Exemplo n.º 16
0
 def articlesNextUrl(self):
     return Data(url="<?= $articles->pagination()->nextPageURL() ?>")
Exemplo n.º 17
0
 def articleTagUrl(self):
     return Data(url="<?php echo url('articles/tag:' . urlencode($tag)) ?>")
Exemplo n.º 18
0
 def articlePublished(self):
     return Data(text="<?php echo html($article->published()) ?>")
Exemplo n.º 19
0
 def _forEach(self):
     return Data(text="<?php endforeach ?>")
Exemplo n.º 20
0
 def kirbyText(self):
     return Data(text="<?php echo kirbytext($page->text()) ?>")
Exemplo n.º 21
0
 def _if(self):
     return Data(text="<?php endif ?>")
Exemplo n.º 22
0
 def logoUrl(self):
     return Data(url="<?php echo url('assets/images/logo_petr.png') ?>")
Exemplo n.º 23
0
 def articleTitle(self):
     return Data(text="<?php echo html($article->title()) ?>")
Exemplo n.º 24
0
 def tagsLabel(self):
     return Data(text="Tags: ")
Exemplo n.º 25
0
 def ifResults(self):
     return Data(text="<?php if($results): ?>")
Exemplo n.º 26
0
 def forEachPageTag(self):
     return Data(
         text="<?php foreach(str::split($page->tags()) as $tag): ?>")
Exemplo n.º 27
0
 def resultUrl(self):
     return Data(url="<?php echo $result->url() ?>")
Exemplo n.º 28
0
 def pageTags(self):
     return Data(
         loop="<?php echo url('articles/tag:' . urlencode($tag)) ?>")
Exemplo n.º 29
0
 def resultDescription(self):
     return Data(text="<?php echo $result->description() ?>")
Exemplo n.º 30
0
 def getTagCloud(self, component, **kwargs):
     return Data(text='Tag Cloud ' * kwargs.get('count', 10))