public function __construct($id = 0) { parent::__construct($id); $this->default_template = "<h3>{{title}}</h3>\n{% for record in records %}\n<p>{{record.header}}</p>\n<blockquote>{{record.content}}</blockquote>\n{% endfor %}"; }
public function __construct($id = 0) { parent::__construct($id); $this->default_template = "<h3>{{title}}</h3>\n<p>{{resume}}</p>\n<img src='{{logo.large}}'/>\n<p>{{content}}</p>\n <h5>Sous-rubriques</h5> \n <ul>\n {% for child in children %}\n <li><a href='{{child.link}}'>{{child.title}}</a></li>\n {% endfor %}\n </ul>\n<h4>Articles</h4>\n <ul>\n {% for article in articles %}\n <li><a href='{{article.link}}'>{{article.title}}</a></li>\n {% endfor %}\n </ul>"; }
public function __construct($id = 0) { parent::__construct($id); $this->default_template = "\n<!-- Attention, avec un template Django, vous devez gérer la profondeur de votre menu dans le template, il n'existe pas de récursivité avec Django -->\n<ul class='cms_menu cms_menu_deep0'>\n\t{% for item in items %}\n\t\t<li {% if item.current %} class='cms_menu_current'{% endif %}>\n\t\t\t{% if item.link %}\n\t\t\t\t<a href='{{item.link}}'>{{item.title}}</a>\n\t\t\t{% else %}\n\t\t\t\t{{item.title}}\n\t\t\t{% endif %}\n\t\t\t<!-- Voici un exemple pour la profondeur dans les menus, à répéter autant de fois que de niveaux.. -->\n\t\t\t{% if item.children %}\n\t\t\t\t<ul class='cms_menu cms_menu_deep1'>\n\t\t\t\t\t{% for children1 in item.children %}\n\t\t\t\t\t\t<li {% if children1.current %} class='cms_menu_current'{% endif %}>\n\t\t\t\t\t\t\t{% if children1.link %}\n\t\t\t\t\t\t\t\t<a href='{{children1.link}}'>{{children1.title}}</a>\n\t\t\t\t\t\t\t{% else %}\n\t\t\t\t\t\t\t\t{{children1.title}}\n\t\t\t\t\t\t\t{% endif %}\n\t\t\t\t\t\t\t{% if children1.children %}\n\t\t\t\t\t\t\t\t<ul class='cms_menu cms_menu_deep2'>\n\t\t\t\t\t\t\t\t\t{% for children2 in children1.children %}\n\t\t\t\t\t\t\t\t\t\t<li {% if children2.current %} class='cms_menu_current'{% endif %}>\n\t\t\t\t\t\t\t\t\t\t\t{% if children2.link %}\n\t\t\t\t\t\t\t\t\t\t\t\t<a href='{{children2.link}}'>{{children2.title}}</a>\n\t\t\t\t\t\t\t\t\t\t\t{% else %}\n\t\t\t\t\t\t\t\t\t\t\t\t{{children2.title}}\n\t\t\t\t\t\t\t\t\t\t\t{% endif %}\n\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t{% endfor %}\n\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t{% endif %}\n\t\t\t\t\t\t</li>\n\t\t\t\t\t{% endfor %}\n\t\t\t\t</ul>\n\t\t\t{% endif %}\n\t\t</li>\n\t{% endfor %}\n</ul>"; }
public function __construct($id = 0) { parent::__construct($id); }
public function __construct($id = 0) { $this->use_dojo = true; parent::__construct($id); $this->default_template = "\n<div>\n<h3>Titre</h3>\n{{calendar}}\n{% for legend in legends %}\n<div style='float:left;'>\n<div style='float:left;width:1em;height:1em;background-color:{{legend.color}}'></div>\n<div style='float:left;'> {{legend.calendar}} </div>\n</div>\n{% endfor %}\t\t\t\t\n{% for event in events %}\n<h3>\n{% if event.event_start.format_value %}\n {% if event.event_end.format_value %}\ndu {{event.event_start.format_value}} au {{event.event_end.format_value}}\n {% else %}\nle {{event.event_start.format_value}}\n {% endif %}\n{% endif%} : {{event.title}}\n</h3>\n<blockquote>\n<img src='{{event.logo.large}}'/>\n<p>{{event.resume}}<br/><a href='{{event.link}}'>plus d'infos...<a/></p>\n</blockquote>\n{% endfor %}\n</div>"; }
public function __construct($id = 0) { parent::__construct($id); $this->default_template = "<h3>{{title}}</h3>\n<p>{{resume}}</p>\n<img src='{{logo.large}}'/>\n<p>{{content}}</p>"; }
public function __construct($id = 0) { parent::__construct($id); $this->default_template = "{% for category in categories %}\n<div>\n <h3>{{category.title}}</h3>\n <ul>\n {% for watch in category.watches %}\n <li><a href='{{watch.rss_link}}' target='_blank'>{{watch.title}}</a></li>\n {% endfor %}\n </ul>\n <!-- Cascade pour la recursion....-->\t\t\n {% for sub_category in category.children %}\n <div>\n <h4>{{sub_category.title}}</h4>\n <ul>\n {% for watch in sub_category.watches %}\n <li><a href='{{watch.rss_link}}' target='_blank'>{{watch.title}}</a></li>\n {% endfor %}\n </ul>\n <!-- Cascade pour la recursion....-->\n {% for sub_category2 in sub_category.children %}\n\t <div>\n <h4>{{sub_category2.title}}</h4>\n <ul>\n {% for watch in sub_category2.watches %}\n <li><a href='{{watch.rss_link}}' target='_blank'>{{watch.title}}</a></li>\n {% endfor %}\n </ul>\n <!-- Cascade pour la recursion....-->\n {% for sub_category3 in sub_category2.children %}\n\t\t\t\t\n {% endfor %}\n </div>\t\t\t\n {% endfor %}\n </div>\n {% endfor %}\n</div>\n{% endfor %}\n<div>\n <h3>Hors Classement</h3>\n <ul>\n {% for watch in watches %}\n <li><a href='{{watch.rss_link}}' target='_blank'>{{watch.title}}</a></li>\n {% endfor %}\n </ul>\n</div>"; }
public function __construct($id = 0) { parent::__construct($id); $this->default_template = "<div>\n<h3>{{comment}}</h3>\n{% for flux in flux_rss %}\n\t<a href='{{flux.link}}'>{{flux.name}}</a>\n{% endfor %}\n{{content}}\n</div>\n"; }
public function __construct($id = 0) { parent::__construct($id); $this->default_template = "\n<h3>{{watch.title}}</h3>\n{% if watch.logo.exists %}\n<img src='{{watch.logo.vign}}'/>\n{% else %}\t\t\t\n<img src='{{watch.logo_url}}'/>\n{% endif %}\n<blockquote>{{watch.desc}}</blockquote>\n"; }
public function __construct($id = 0) { parent::__construct($id); $this->default_template = "<div>\n{% for section in sections %}\n<h3>{{section.title}}</h3>\n<img src='{{section.logo.large}}'/>\n<blockquote>{{section.resume}}</blockquote>\n<blockquote>{{section.content}}</blockquote>\n{% endfor %}\n</div>"; }
public function __construct($id = 0) { parent::__construct($id); $this->default_template = "<span class='breadcrumb'>\t\t\n\t>> <a href='{{home.link}}'>{{home.title}}</a> \n{% for section in sections %}\n\t> <span class='elem'><a href='{{section.link}}'>{{section.title}}</a></span> \n{% endfor %}\n</span>\n"; }
public function __construct($id = 0) { parent::__construct($id); $this->default_template = "<h2>{{title}}</h2>\n<p>{{description}}</p>\n{% for item in items %}\n<blockquote>\n<h4><a href='{{item.link}}' target='_blank'>{{item.title}}</a></h4>\n<p>{{item.description}}</p>\n</blockquote>\n{% endfor %}"; }
public function __construct($id = 0) { parent::__construct($id); $this->default_template = "<div>\n\t{% for shelve in shelves %}\n\t\t<h3>{{shelve.name}}</h3>\n\t\t{% if shelve.link_rss %}\n\t\t\t<a href='{{shelve.link_rss}}'>Flux RSS</a>\n\t\t{% endif %}\n\t\t<div>\n\t\t\t<blockquote>{{shelve.comment}}</blockquote>\n\t\t\t{{shelve.records}}\n\t\t</div>\n\t{% endfor %}\n</div>"; }
public function __construct($id = 0) { parent::__construct($id); $this->default_template = "\n{{info.header}}\n<br /><br />\n<div class=summary>\n<ul>\n{% for sommaire in sommaires %}\n{% if sommaire.level==1 %}\n<li>\n<a href=#{{loop.counter}}>\n{{sommaire.title}}\n</a>\n</li>\n{% endif %}\n{% endfor %}\n</ul>\n</div>\n<hr/>\n{% for sommaire in sommaires %}\n{% if sommaire.level==1 %}\n<h4 id={{loop.counter}}>{{sommaire.title}}</h4>\n{% endif %}\n{% if sommaire.level==2 %}\n<h5>{{sommaire.title}}</h5>\n{% endif %}\n{% if sommaire.level==3 %}\n<h6>{{sommaire.title}}</h6>\n{% endif %}\n{% for record in sommaire.records %}\n{{record.render}}\n<hr/>\n{% endfor %}\n<br />\n{% endfor %}\n{{info.footer}}\n"; }
public function __construct($id = 0) { parent::__construct($id); $this->default_template = "<div>\n{% for watch in watches %}\n<h3>{{watch.title}}</h3>\n<img src='{{watch.logo_url}}'/>\n<blockquote>{{watch.desc}}</blockquote>\n{% endfor %}\n</div>"; }
public function __construct($id = 0) { parent::__construct($id); $this->default_template = "\n<p>{{record.header}}</p>\n<blockquote>{{record.content}}</blockquote>\n"; }
public function __construct($id = 0) { parent::__construct($id); $this->default_template = "<div class='row document_list'>\n {% for document in documents %}\n <div class='document_item'>\n \n <div class='document_item_content'>\n <a target='_blank' href='{{document.url}}' title='{% if document.name %}{{document.name}}{% else %}{{document.filename}}{% endif %}' alt='{% if document.name %}{{document.name}}{% else %}{{document.filename}}{% endif %}'>\n <img src='{{document.thumbnails_url}}'/>\n <br />\n <p>{% if document.name %}{{document.name|limitstring 30 \"[...]\"}}{% else %}{{document.filename|limitstring 30 \"[...]\"}}{% endif %}\n <br />\n <span style='font-size:.8em;'>{{document.mimetype}}{%if document.filesize.human %} - ({{document.filesize.human}}){% endif %}</span></p>\n </a>\n </div>\n \n </div>\n {% endfor %}\n</div>\n<div class='row'></div>"; }
public function __construct($id = 0) { parent::__construct($id); $this->default_template = "<div>\n\t{% for bannette in bannettes %}\n\t\t<h3>{{bannette.name}}</h3>\n\t\t{% for flux_rss in bannette.flux_rss %}\n\t\t\t<a href='{{flux_rss.link}}'>{{flux_rss.name}}</a>\n\t\t{% endfor %}\n\t\t<div>\n\t\t\t<blockquote>{{bannette.comment}}</blockquote>\n\t\t\t{% for record in bannette.records %}\n\t\t\t\t{{record.content}}\n\t\t\t{% endfor %}\n\t\t</div>\n\t{% endfor %}\n</div>\n"; }
public function __construct($id = 0) { parent::__construct($id); $this->default_template = "<div>\n{% for item in items %}\n<h3>{{item.title}}</h3>\n<img src='{{item.logo_url}}'/>\n<blockquote>{{item.summary}}</blockquote>\n<blockquote>{{item.content}}</blockquote>\n{% endfor %}\n</div>"; }
public function __construct($id = 0) { parent::__construct($id); $this->default_template = "\n\t\t{% for term in terms %}\n \t\t{% if loop.first %}\n <h3>Synonymes</h3>\n \t\t<span>Les synonymes des catégories suivantes, ont été pris en compte pendant la recherche:</span>\n \t\t<ul>\n \t\t{% endif %}\n \t\t <li><a href='./index.php?lvl=categ_see&id={{term.id_retenue}}'>{{term.libelle_retenue}}</a> ({{term.libelle_rejetee}}) </li>\n \t\t{% if loop.last %}\n \t\t</ul>\n \t\t{% endif %}\n\t\t{% endfor %}"; }
public function __construct($id = 0) { $this->use_jquery = true; $this->default_template = "\n<ul id='carousel_{{id}}'>\n\t{% for record in records %}\n\t\t<li class='{{id}}_item'>\n\t\t\t<a href='{{record.link}}' alt='{{record.title}}' title='{{record.title}}'>\n\t\t\t\t<img src='{{record.vign}}'/>\n\t\t\t\t<br />\n\t\t\t</a>\n\t\t</li>\n\t{% endfor %}\n</ul>\n"; parent::__construct($id); }
public function __construct($id = 0) { parent::__construct($id); $this->default_template = "\n<h3>{{watch.title}}</h3>\n<img src='{{watch.logo_url}}'/>\n<blockquote>{{watch.desc}}</blockquote>\n"; }