public function load($itemId, $pages_total) { $html = new Html(); $menu = new Menu(); if (isset($_GET['page'])) { if ($_GET['page'] <= 1) { $back = $_GET['page'] == 1; } else { $back = $_GET['page'] - 1; } } else { $back = ''; } $html->b('section', 0, 1, '', '{"class":"row", "data-min-height":"10"}'); $html->b('div', 0, 1, '', '{"class":"vertical"}'); $html->b('div', 0, 1, '', '{"class":"col col-center col-xs-8"}'); $html->b('ul', 0, 1, '', '{"class":"pagination"}'); $html->b('li', 0, 1, '', '{"class":"back"}'); $html->b('a', 0, 1, '', '{"href":"' . $menu->link($itemId) . '&page=' . $back . '"}'); $html->e(1, 'Back'); $html->b('a', 1, 1); $html->b('li', 1, 1); for ($i = 1; $i <= $pages_total; $i++) { if (empty($_GET["page"])) { $_GET["page"] = 1; } if ($_GET["page"] == $i) { $class = 'active'; } else { $class = ''; } $html->b('li', 0, 1, '', '{"class":"' . $class . '"}'); $html->b('a', 0, 1, '', '{"href":"' . $menu->link($itemId) . '&page=' . $i . '"}'); $html->e(1, $i); $html->b('a', 1, 1); $html->b('li', 1, 1); } if ($_GET['page'] >= $pages_total) { $next = $pages_total; } else { $next = $_GET["page"] + 1; } $html->b('li', 0, 1, '', '{"class":"next"}'); $html->b('a', 0, 1, '', '{"href":"' . $menu->link($itemId) . '&page=' . $next . '"}'); $html->e(1, 'Next'); $html->b('a', 1, 1); $html->b('li', 1, 1); $html->b('ul', 1, 1); $html->b('div', 1, 1); $html->b('div', 1, 1); $html->b('section', 1, 1); }
public function build($menutype, $element, $active, $id = '', $class = '') { $h = new Html(); $data = ''; $load = $this->load($menutype); foreach ($load as $key => $val) { if ($id != '') { $count = '-' . $key; } else { $count = ''; } if ($val['id'] == $active) { $this->activeItemAlias = $val['alias']; if ($class != '') { $activeClass = ' active'; } else { $activeClass = 'active'; } } else { $activeClass = ''; } $h->b($element, 0, 1, '', '{"id":"' . $id . $count . '", "class":"' . $class . $activeClass . '"}'); $h->b('a', 0, 1, '', '{"href":"' . $val['link'] . '&Itemid=' . $val['id'] . '"}'); $h->e(1, $val['title']); $h->b('a', 1, 1); $h->b($element, 1, 1); } }
public function deploy($id, $itemId, $showLimit, $template, $alias, $view, $categoryTitle, $schema = '') { $html = new Html(); $attr = '{"id":"' . $alias . '-' . $view . '"}'; $html->b('main', 0, 1, $schema, $attr); $html->b('h1', 0, 1); $html->e(1, $categoryTitle); $html->b('h1', 1, 1); $this->content($id, $itemId, $showLimit, $template); $html->b('main', 1, 1); }
<?php //ARTICLE //FAQ //SECTION #1 //BOXES use Antfuentes\Titan\Framework; $h = new Framework\Html(); $column = '{"class":"column col col-xs-4"}'; $background = '{"class":"background vertical", "data-mh":"faq-section-1-col"}'; $container = '{"class":"col col-center col-xs-11"}'; $title = '{"class":"title col col-xs-12"}'; $content = '{"class":"content col col-xs-12"}'; $h->b('section', 0, 1, '', $column); $h->b('div', 0, 1, '', $background); $h->b('div', 0, 1, '', $container); $h->b('h1', 0, 1, '', $title); $h->e(1, $this->array[$this->key[0]]); $h->b('h1', 1, 1); $h->b('p', 0, 1, '', $content); $h->e(1, $this->array[$this->key[1]]); $h->b('p', 1, 1); $h->b('div', 1, 1); $h->b('div', 1, 1); $h->b('section', 1, 1);
use Antfuentes\Titan\Framework; $article = new Joomla\Article(); $string = new Framework\String(); $h = new Framework\Html(); $article->sectionContent($this->articleAlias, $this->sectionAlias); $introtext = $string->breakExplode($article->introtext); $introtextSlice = array_slice($introtext, 2); $row = '{"class":"row", "data-min-height":"70"}'; $vertical = '{"class":"vertical"}'; $container = '{"class":"col col-center col-xs-11 col-sm-10 col-md-9 col-lg-8"}'; $title = '{"class":"title col col-xs-12"}'; $content = '{"class":"content col col-xs-12"}'; $form = '{"class":"form row", "method":"post", "action":"/"}'; $list = '{"class":"list col col-xs-12"}'; $h->b('div', 0, 1, '', $row); $h->b('div', 0, 1, '', $vertical); $h->b('div', 0, 1, '', $container); $h->b('h2', 0, 1, '', $title); $h->e(1, $introtext[0]); $h->b('h2', 1, 1); $h->b('p', 0, 1, '', $content); $h->e(1, $introtext[1]); $h->b('p', 1, 1); $h->b('form', 0, 1, '', $form); $h->b('dl', 0, 1, '', $list); $string->breakByGroupSize(1, $introtextSlice, __DIR__, 'items'); $h->b('dl', 1, 1); $h->b('form', 1, 1); $h->b('div', 1, 1); $h->b('div', 1, 1); $h->b('div', 1, 1);
<?php //ARTICLE //FAQ //SECTION #3 //QUESTIONS use Antfuentes\Titan\Joomla; use Antfuentes\Titan\Framework; $menu = new Joomla\Menu(); $h = new Framework\Html(); $sch = new Framework\Sch(); $string = new Framework\String(); $css = new Framework\Css(); $article = new Joomla\Article(); $item = '{"class":"item acc-item"}'; $itemTitle = '{"class":"item-title acc-title"}'; $content = '{"class":"content acc-content"}'; if ($this->counter == 0) { $this->counter = 1; } else { $this->counter++; } $h->b('li', 0, 1, '', $item); $h->b('h2', 0, 1, '', $itemTitle); $h->e(1, $this->counter . '. ' . $this->array[$this->key[0]]); $h->b('h2', 1, 1); $h->b('div', 0, 1, '', $content); $h->e(1, $this->array[$this->key[1]]); $h->b('div', 1, 1); $h->b('li', 1, 1);
<?php use Antfuentes\Titan\Joomla; use Antfuentes\Titan\Framework; $article = new Joomla\Article(); $string = new Framework\String(); $h = new Framework\Html(); $article->sectionContent($this->articleAlias, $this->sectionAlias); $introtext = $string->breakExplode($article->introtext); $introtextSlice = array_slice($introtext, 4); $h->b('div', 0, 1, '', '{"class":"row", "data-min-height":"70"}'); $h->b('div', 0, 1, '', '{"class":"vertical"}'); $h->b('div', 0, 1, '', '{"class":"col col-xs-12"}'); $h->b('h1', 0, 1, '', '{"class":"h1 col col-xs-12"}'); $h->e(1, trim($introtext[0])); $h->b('h1', 1, 1); $h->b('div', 0, 1, '', '{"class":"left-img-col col col-xs-2", "data-mh":"home-section-3-col"}'); $h->b('div', 0, 1, '', '{"class":"left-img", "style":"background-image:url(' . trim($introtext[2]) . ')"}'); $h->b('div', 1, 1); $h->b('div', 1, 1); $h->b('div', 0, 1, '', '{"class":"left-col col col-xs-6", "data-mh":"home-section-3-col"}'); $h->b('ul', 0, 1, '', '{"class":"left-list row"}'); $string->breakByGroupSize(3, $introtextSlice, __DIR__, 'list'); $h->b('ul', 1, 1); $h->b('div', 1, 1); $h->b('div', 0, 1, '', '{"class":"right-col col col-xs-2", "data-mh":"home-section-3-col"}'); $h->b('div', 0, 1, '', '{"class":"vertical"}'); $h->b('video', 0, 1, '', '{"class":"right-video", "src":"' . trim($introtext[1]) . '", "autoplay ":"", "loop":""}'); $h->e(1, 'Your browser does not support the video element.'); $h->b('video', 1, 1); $h->b('div', 1, 1);
$introtext = $string->breakExplode($article->introtext); $introtextSlice = array_slice($introtext, 3); $row = '{"class":"row", "data-min-height":"80"}'; $vertical = '{"class":"vertical"}'; $container = '{"class":"col col-center col-xs-11 col-sm-10 col-md-9 col-lg-8"}'; $title = '{"class":"title col col-xs-12"}'; $subTitle = '{"class":"sub-title col col-xs-12"}'; $itemsCol = '{"class":"items-col col col-xs-6"}'; $items = '{"class":"items"}'; $imgCol = '{"class":"img-col col col-xs-6"}'; $img = '{"class":"img", "src":"' . trim($introtext[0]) . '"}'; $h->b('div', 0, 1, '', $row); $h->b('div', 0, 1, '', $vertical); $h->b('div', 0, 1, '', $container); $h->b('h1', 0, 1, '', $title); $h->e(1, $introtext[1]); $h->b('h1', 1, 1); $h->b('h2', 0, 1, '', $subTitle); $h->e(1, $introtext[2]); $h->b('h2', 1, 1); $h->b('div', 0, 1, '', $itemsCol); $h->b('ul', 0, 1, '', $items); $string->breakByGroupSize(1, $introtextSlice, __DIR__, 'items'); $h->b('ul', 1, 1); $h->b('div', 1, 1); $h->b('div', 0, 1, '', $imgCol); $h->b('img', 0, 1, '', $img); $h->b('div', 1, 1); $h->b('div', 1, 1); $h->b('div', 1, 1); $h->b('div', 1, 1);
$string = new Framework\String(); $h = new Framework\Html(); $article->content($this->routerId); $introtext = $string->breakExplode($article->introtext); $content = array_slice($introtext, 2); $img = json_decode($article->images); $article->getCatergoryPath($this->routerId); $city = ucwords($string->replaceString('-', ' ', $article->path_1)); $artist = ucwords($article->path_2); $h->b('section', 0, 1, '', '{"class":"row artists-article", "data-min-height":"50"}'); $h->b('div', 0, 1, '', '{"class":"vertical"}'); $h->b('div', 0, 1, '', '{"class":"col col-center col-xs-8"}'); $h->b('div', 0, 1, '', '{"class":"col col-xs-12 top"}'); $h->b('div', 0, 1, '', '{"class":"vertical"}'); $h->b('h1', 0, 1, '', '{"class":"h1"}'); $h->e(1, $city . ' / ' . $artist); $h->b('h1', 1, 1); $h->b('div', 1, 1); $h->b('div', 1, 1); $h->b('div', 0, 1, '', '{"class":"col col-xs-4 left", "data-mh":"artists-article-div"}'); $h->b('div', 0, 1, '', '{"class":"vertical"}'); $h->b('figure', 0, 1, '', '{"class":"col col-xs-12"}'); $h->b('img', 0, 1, '', '{"class":"col col-xs-12 image", "src":"' . $img->image_fulltext . '", "alt":"' . $img->image_fulltext_alt . '"}'); $h->b('div', 0, 1, '', '{"style":"background-image: url(' . $img->image_fulltext . ')", "class":"div-img"}'); $h->b('div', 1, 1); $h->b('figcaption', 0, 1, '', '{"class":"figcaption"}'); $h->b('hgroup', 0, 1, '', '{"class":"col col-center col-xs-8", "id":"hgroup"}'); $h->b('h2', 0, 1, '', '{"id":"h2"}'); $h->e(1, $introtext[0]); $h->b('h2', 1, 1); $h->b('h3', 0, 1, '', '{"id":"h3"}');
$getID3 = new getID3(); if (is_file(trim($this->content))) { $content = trim($this->content); $ID3 = $getID3->analyze(trim($this->content)); $ID3_Title = $ID3["tags"]["id3v2"]["title"][0]; $flag = $this->key / 3; if ($this->counter == 0) { $h->b('audio', 0, 1, '', '{"preload":"auto", "tabindex":"0", "controls":"controls", "type":"audio/mpeg", "id":"audio", "class":"col col-xs-12"}'); $h->b('source', 0, 1, '', '{"type":"audio/mpeg", "src":"' . $content . '"}'); $h->b('audio', 1, 1); $h->b('ul', 0, 1, '', '{"class":"col col-xs-12 playlist", "id":"playlist"}'); $h->b('li', 0, 1, '', '{"class":"active", "id":"li"}'); $h->b('i', 0, 1, '', '{"class":"fa fa-play-circle"}'); $h->b('i', 1, 1); $h->b('a', 0, 1, '', '{"href":"' . $content . '", "id":"a"}'); $h->e(1, $ID3_Title); $h->b('a', 1, 1); $h->b('li', 1, 1); $this->counter++; } else { if ($this->counter != 0 and $this->key != $this->count - 1) { if ($flag != 1) { $h->b('li', 0, 1, '', '{"id":"li"}'); $h->b('i', 0, 1, '', '{"class":"fa fa-play-circle"}'); $h->b('i', 1, 1); $h->b('a', 0, 1, '', '{"href":"' . $content . '", "id":"a"}'); $h->e(1, $ID3_Title); $h->b('a', 1, 1); $h->b('li', 1, 1); $this->counter++; }
<?php use Antfuentes\Titan\Framework; $h = new Framework\Html(); if (!is_file(trim($this->content))) { $h->b('p', 0, 1, '', '{"id":"p"}'); $h->e(1, $this->content); $h->b('p', 1, 1); }
<?php use Antfuentes\Titan\Joomla; use Antfuentes\Titan\Framework; $menu = new Joomla\Menu(); $db = new Joomla\Database(); $string = new Framework\String(); $h = new Framework\Html(); $h->b('div', 0, 1); $h->e(1, 'HELLO'); $h->b('div', 1, 1);
$contentContainer = '{"class":"col col-xs-12"}'; $playBar = '{"class":"play-bar col col-xs-12", "preload":"auto", "tabindex":"0", "controls":"controls", "type":"audio/mpeg", "id":"audio"}'; $playBarSource = ' "class":"play-bar-source", "type":"audio/mpeg"'; $playList = '{"class":"play-list col col-xs-12", "id":"playlist"}'; $playListItemActive = '{"class":"play-list-item active col col-xs-12"}'; $playListItem = '{"class":"play-list-item col col-xs-12"}'; $playListItemIcon = '{"class":"play-list-item-icon fa fa-play-circle"}'; $playListItemLink = ' "class":"play-list-item-link"'; $fbCommentsRow = '{"class":"fb-comments-row row", "data-min-height":"20"}'; $fbContainer = '{"class":"fb-comments-container col col-center col-xs-11 col-sm-10 col-md-9 col-lg-8"}'; $fbComments = '{"class":"fb-comments col col-xs-12", "data-href":"' . $fbCommentsLink . '", "data-numposts":"5"}'; $h->b('div', 0, 1, '', $row); $h->b('div', 0, 1, '', $vertical); $h->b('div', 0, 1, '', $container); $h->b('h1', 0, 1, '', $title); $h->e(1, $city . ' / ' . $artist); $h->b('h1', 1, 1); $h->b('div', 0, 1, '', $imgCol); $h->b('div', 0, 1, '', $imgVertical); $h->b('div', 0, 1, '', $imgContainer); $h->b('img', 0, 1, '', $img); $h->b('div', 1, 1); $h->b('div', 1, 1); $h->b('div', 1, 1); $h->b('div', 0, 1, '', $contentCol); $h->b('div', 0, 1, '', $contentVertical); $h->b('div', 0, 1, '', $contentContainer); foreach ($audio as $key => $track) { $audioCount = count($audio) - 1; $trackPath = AUDIO_PATH . $article->alias . '/' . $track; $trackArray = $getID3->analyze($trackPath);
$article->sectionContent($this->articleAlias, $this->sectionAlias); $string->breakExplodeVars($article->introtext); $row = '{"class":"row", "data-min-height":"30"}'; $vertical = '{"class":"vertical"}'; $container = '{"class":"col col-center col-xs-11 col-sm-10 col-md-9 col-lg-8"}'; $title = '{"class":"title col-xs-12"}'; $article = '{"class":"article row"}'; $subTitle = '{"class":"sub-title col-xs-12"}'; $content = '{"class":"content col-xs-12"}'; $link = '{"class":"link col-xs-12", "href":"' . $string->text_3 . '"}'; $btn = '{"class":"btn"}'; $h->b('div', 0, 1, '', $row); $h->b('div', 0, 1, '', $vertical); $h->b('div', 0, 1, '', $container); $h->b('h1', 0, 1, '', $title); $h->e(1, $string->text_0); $h->b('h1', 1, 1); $h->b('article', 0, 1, '', $article); $h->b('h1', 0, 1, '', $subTitle); $h->e(1, $string->text_1); $h->b('h1', 1, 1); $h->b('p', 0, 1, '', $content); $h->e(1, $string->text_2); $h->b('p', 1, 1); $h->b('a', 0, 1, '', $link); $h->b('button', 0, 1, '', $btn); $h->e(1, $string->text_4); $h->b('button', 1, 1); $h->b('a', 1, 1); $h->b('article', 1, 1); $h->b('div', 1, 1);
//echo '<a href="'.$link.'">'.$this->title.'</a>'; //echo '<br>'; if ($resultsKey == 0) { $h->b('section', 0, 1, '{"class":"row section", "data-min-height":"80"}'); $h->b('div', 0, 1, '', '{"class":"vertical"}'); $h->b('div', 0, 1, '', '{"class":"col col-center col-xs-8", "data-mh":"audio-cat-div"}'); } $h->b('article', 0, 1, '', '{"class":"col col-xs-12 col-sm-3 col-md-3 col-lg-3", "id":"article", "data-mh":"artists-catergory-article"}'); $h->b('a', 0, 1, '', '{"href":"' . $menu->articleLink . '", "class":"col col-xs-12 artists-a"}'); $h->b('figure', 0, 1, '', '{"class":"col col-xs-12 figure"}'); $h->b('img', 0, 1, '', '{"class":"col col-xs-12 image", "src":"' . $img->image_intro . '", "alt":"' . $img->image_intro_alt . '"}'); $h->b('div', 0, 1, '', '{"style":"background-image: url(' . $img->image_intro . ')", "class":"div-img"}'); $h->b('div', 1, 1); $h->b('figure', 1, 1); $h->b('a', 1, 1); $h->b('a', 0, 1, '', '{"href":"' . $menu->articleLink . '", "class":"col col-xs-12 artists-a"}'); $h->b('hgroup', 0, 1, '{"id":"hgroup"}'); $h->b('h2', 0, 1); $h->e(1, $text[0]); $h->b('h2', 1, 1); $h->b('h3', 0, 1); $h->e(1, $text[1]); $h->b('h3', 1, 1); $h->b('hgroup', 1, 1); $h->b('a', 1, 1); $h->b('article', 1, 1); if ($resultsKey == $this->showLimit - 1) { $h->b('div', 1, 1); $h->b('div', 1, 1); $h->b('section', 1, 1); }
$sch = new Framework\Sch(); $string = new Framework\String(); $menu->categoryBlog($this->catid, $this->id); $menu->article($this->id, JRequest::getVar('Itemid')); $text = $string->breakExplode($this->introtext); $img = json_decode($this->images); $link = 'index.php?option=com_content&view=article&id=' . $this->id . ':' . $this->alias . '&catid=' . $this->catid . '&Itemid=' . JRequest::getVar('Itemid'); if ($resultsKey == 0) { $h->b('section', 0, 1, '{"class":"row section", "data-min-height":"80"}'); $h->b('div', 0, 1, '', '{"class":"vertical"}'); $h->b('div', 0, 1, '', '{"class":"col col-center col-xs-8", "data-mh":"audio-cat-div"}'); } $h->b('div', 0, 1, '', '{"class":"col col-xs-12 col-sm-3 col-md-3 col-lg-3", "id":"article"}'); $h->b('a', 0, 1, '', '{"href":"' . $menu->articleLink . '", "class":"col col-xs-12 artists-a"}'); $h->b('figure', 0, 1, '', '{"class":"col col-xs-12", "id":"figure"}'); $h->b('img', 0, 1, '', '{"class":"col col-xs-12 image", "src":"' . $img->image_intro . '", "alt":"' . $img->image_intro_alt . '"}'); $h->b('div', 0, 1, '', '{"style":"background-image: url(' . $img->image_intro . ')", "class":"div-img"}'); $h->b('div', 1, 1); $h->b('figure', 1, 1); $h->b('a', 1, 1); $h->b('a', 0, 1, '', '{"href":"' . $link . '", "class":"col col-xs-12 artists-a"}'); $h->b('h2', 0, 1, '', '{"id":"h2"}'); $h->e(1, $this->title); $h->b('h2', 1, 1); $h->b('a', 1, 1); $h->b('div', 1, 1); if ($resultsKey == $this->showLimit - 1) { $h->b('div', 1, 1); $h->b('div', 1, 1); $h->b('section', 1, 1); }
use Antfuentes\Titan\Framework; $h = new Framework\Html(); $wallopItemImg = trim($this->array[$this->key[0]]); $wallopItemTitle = trim($this->array[$this->key[1]]); $wallopItemSubTitle = trim($this->array[$this->key[2]]); $wallopItemRow = '{"class":"row", "data-min-height":"80"}'; $wallopItemVertical = '{"class":"vertical"}'; $wallopItemContainer = '{"class":"col col-center col-xs-11 col-sm-10 col-md-9 col-lg-8 "}'; $wallopItemH1 = '{"class":"h1"}'; $wallopItemH2 = '{"class":"h2"}'; if ($this->counter == 0) { $wallopItem = '{"class":"Wallop-item Wallop-item--current", "data-min-height":"80", "style":"background-image: url(' . $wallopItemImg . ');"}'; $this->counter++; } else { $wallopItem = '{"class":"Wallop-item", "data-min-height":"80", "style":"background-image: url(' . $wallopItemImg . ');"}'; } $h->b('div', 0, 1, '', $wallopItem); $h->b('div', 0, 1, '', $wallopItemRow); $h->b('div', 0, 1, '', $wallopItemVertical); $h->b('div', 0, 1, '', $wallopItemContainer); $h->b('h1', 0, 1, '', $wallopItemH1); $h->e(1, $wallopItemTitle); $h->b('h1', 1, 1); $h->b('h2', 0, 1, '', $wallopItemH2); $h->e(1, $wallopItemSubTitle); $h->b('h2', 1, 1); $h->b('div', 1, 1); $h->b('div', 1, 1); $h->b('div', 1, 1); $h->b('div', 1, 1);
public function meta() { if ($this->routerView == 'article') { $h = new Html(); $article = new Article(); $article->content($this->routerId); $images = json_decode($article->images); $metadata = json_decode($article->metadata); $h->b('meta', 0, 1, '', '{"charset":"utf-8"}'); $h->b('meta', 0, 1, '', '{"http-equiv":"X-UA-Compatible", "content":"IE=edge"}'); $h->b('meta', 0, 1, '', '{"name":"viewport", "content":"width=device-width, initial-scale=1"}'); $h->b('meta', 0, 1, '', '{"name":"keywords", "content":"' . $article->metakey . '"}'); $h->b('meta', 0, 1, '', '{"name":"robots", "content":"' . $metadata->robots . '"}'); $h->b('meta', 0, 1, '', '{"name":"revised", "content":"' . $article->modified . '"}'); $h->b('meta', 0, 1, '', '{"name":"reply-to", "content":"' . $this->routerMailFrom . '"}'); $h->b('meta', 0, 1, '', '{"name":"pagename", "content":"' . $article->title . '"}'); $h->b('meta', 0, 1, '', '{"name":"description", "content":"' . $article->metadesc . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:url", "content":"' . $this->routerInstance . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:type", "content":"' . $this->routerView . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:title", "content":"' . $article->title . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:description", "content":"' . $article->metadesc . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:image", "content":"' . $this->routerBase . $images->image_intro . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:site_name", "content":"' . $this->routerSiteName . '"}'); $h->b('meta', 0, 1, '', '{"property":"article:author", "content":"' . $metadata->xreference . '"}'); $h->b('title', 0, 1); $h->e(1, $article->title . ' - ' . $this->routerSiteName); $h->b('title', 1, 1); } if ($this->routerView == 'category') { $h = new Html(); $category = new Category(); $category->categoryContent($this->routerId); $params = json_decode($category->params); $metadata = json_decode($category->metadata); $h->b('meta', 0, 1, '', '{"charset":"utf-8"}'); $h->b('meta', 0, 1, '', '{"http-equiv":"X-UA-Compatible", "content":"IE=edge"}'); $h->b('meta', 0, 1, '', '{"name":"viewport", "content":"device-width, initial-scale=1"}'); $h->b('meta', 0, 1, '', '{"name":"keywords", "content":"' . $category->metakey . '"}'); $h->b('meta', 0, 1, '', '{"name":"robots", "content":"' . $metadata->robots . '"}'); $h->b('meta', 0, 1, '', '{"name":"revised", "content":"' . $category->modified_time . '"}'); $h->b('meta', 0, 1, '', '{"name":"reply-to", "content":"' . $this->routerMailFrom . '"}'); $h->b('meta', 0, 1, '', '{"name":"pagename", "content":"' . $category->title . '"}'); $h->b('meta', 0, 1, '', '{"name":"description", "content":"' . $category->metadesc . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:url", "content":"' . $this->routerInstance . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:type", "content":"' . $this->routerView . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:title", "content":"' . $category->title . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:description", "content":"' . $category->metadesc . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:image", "content":"' . $this->routerBase . $params->image . '"}'); $h->b('meta', 0, 1, '', '{"property":"og:site_name", "content":"' . $this->routerSiteName . '"}'); $h->b('meta', 0, 1, '', '{"property":"article:author", "content":"' . $category->description . '"}'); $h->b('title', 0, 1); $h->e(1, $category->title . ' - ' . $this->routerSiteName); $h->b('title', 1, 1); } }
//ARTICLE //CONTACT //SECTION #2 //ITEMS use Antfuentes\Titan\Framework; $h = new Framework\Html(); $labels = array(0 => 'name', 1 => 'email', 2 => 'subject', 3 => 'message', 4 => 'copy'); $listLabel = '{"class":"list-label col col-xs-12"}'; $listContainer = '{"class":"list-container col col-xs-12"}'; $listInput = '" class":"list-input col col-xs-6"'; $listCheckbox = '" class":"list-checkbox"'; $listBtn = '" class":"list-btn"'; if (array_key_exists($this->key, $labels)) { $h->b('dt', 0, 1, '', $listLabel); $h->b('label', 0, 1, '', '{"for":"' . $labels[$this->key] . '"}'); $h->e(1, $this->content . ' *'); $h->b('label', 1, 1); $h->b('dt', 1, 1); } switch ($this->key) { case 0: case 2: $h->b('dd', 0, 1, '', $listContainer); $h->b('input', 0, 1, '', '{"type":"text", "id":"' . $labels[$this->key] . '", "required":"", ' . $listInput . '}'); $h->b('dd', 1, 1); break; case 1: $h->b('dd', 0, 1, '', $listContainer); $h->b('input', 0, 1, '', '{"type":"' . $labels[$this->key] . '", "id":"' . $labels[$this->key] . '", "required":"", ' . $listInput . '}'); $h->b('dd', 1, 1); break;
$title = trim($this->array[$this->key[2]]); $content = trim($this->array[$this->key[3]]); $linkHref = trim($this->array[$this->key[4]]); $buttonText = trim($this->array[$this->key[5]]); $imgAttr = sprintf('{"src":"%s", "style": "max-width:100%%;max-height:100%%;"}', $imgSrc); $aAttr = sprintf('{"href": "%s"}', $linkHref); $h->b('div', $open, 1, '', '{"class":"col col-sm-4", "style": "padding: 15px;"}'); $h->b('div', $open, 1, '', '{"class":"overlay_inner_gc"}'); $h->b('div', $open, 1, '', '{"style":"background-color: #fff;"}'); $h->b("img", $open, 1, '', $imgAttr); $h->b('div', $open, 1, '', '{"class":"overlay_whiteback_inner"}'); $h->b('div', $open, 1, '', '{"class":"col col-sm-4 col-center", "style":"text-align:center; top:-40px;"}'); $h->b('i', $open, 1, '', '{"class":"fa ' . $iconClass . ' fa-2x serviceBox-icon"}'); $h->b('i', $close, 1); $h->b('div', $close, 1); $h->b('div', $open, 1, '', '{"class":"s", "style":"text-align:center;"}'); $h->b('h3', $open, 1, '', ''); $h->e(1, $title); $h->b('h3', $close, 1); /* $h->b('div', $close, 1); $h->b('div', $open, 1,'', '{"class":"overlay_whiteback_text"}'); */ $h->e(1, $content); $h->b('br', $open, 1); $h->b('a', $open, 1, '', $aAttr); $h->e(1, $buttonText); $h->b("a", $close, 1); $h->b('div', $close, 1); $h->b('div', $close, 1); $h->b('div', $close, 1); $h->b('div', $close, 1); $h->b('div', $close, 1);