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