#3 | Phalcon\Mvc\View\Engine\AbstractEngine->partial
/tmp/cache/volt/%%srv%%chathispanoengine%%releases%%99%%apps%%web%%views%%index%%index.volt.compiled (663) - <!DOCTYPE html>
- <html lang="en">
- <head>
- <?php if ($env == 'prod') { ?>
- <script async src="https://www.googletagmanager.com/gtag/js?id=G-55ZZ1BSSED"></script>
- <script>
- window.dataLayer = window.dataLayer || [];
- function gtag(){dataLayer.push(arguments);}
- gtag('js', new Date());
- gtag('config', 'G-55ZZ1BSSED');
- </script>
- <script>
- var _paq = window._paq = window._paq || [];
- /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
- _paq.push(['trackPageView']);
- _paq.push(['enableLinkTracking']);
- (function() {
- var u="//analytics.chathispano.com/";
- _paq.push(['setTrackerUrl', u+'matomo.php']);
- _paq.push(['setSiteId', '2']);
- var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
- g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
- })();
- </script>
- <?php } ?>
-
- <meta charset="UTF-8" />
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
- <meta name="keywords" content="chat, chats, chatear, chat gratis, red de chat, irc, ligar en chat, chat de ciudades, chat de pueblos, chatear gratis" />
-
- <?php if ($controller == 'index' && $action == 'index') { ?>
- <meta name="publisuites-verify-code" content="aHR0cHM6Ly9jaGF0aGlzcGFuby5jb20=" />
- <meta name="google-site-verification" content="qcxe2DWGaxmp1Db8zhwmwe5-A7BlJicc7R7hfTywm-4" />
- <meta name="msvalidate.01" content="8599F70ACD2A8328EADD494BDE2BD875" />
- <?php } ?>
-
- <?php if (isset($amphtml)) { ?>
- <link rel="amphtml" href="<?= $amphtml ?>">
- <?php } ?>
-
- <title><?= $head_title ?> <?= $head_suffix ?></title>
-
- <?php if ($rel_canonical) { ?>
- <link rel="canonical" href="<?= $rel_canonical ?>" />
- <?php } ?>
-
- <meta name="description" content="<?= $meta_description ?>" />
-
- <meta name="twitter:card" content="summary">
- <meta name="twitter:description" content="<?= $meta_description ?>">
- <meta name="twitter:title" content="<?= $head_title ?>">
- <meta name="twitter:site" content="<?= $meta_twitter_profile ?>">
-
- <meta property="og:title" content="<?= $head_title ?>" />
- <meta property="og:type" content="website" />
- <meta property="og:url" content="<?= $fullUri ?>" />
- <?php if ($meta_show_image) { ?>
- <meta property="og:image" content="<?= $meta_image ?>" />
- <?php } ?>
- <meta property="og:description" content="<?= $meta_description ?>" />
- <meta property="og:site_name" content="<?= $meta_site_name ?>" />
- <meta property="fb:admins" content="<?= $meta_facebook_id ?>" />
-
- <?php if ($meta_article) { ?>
- <?php foreach ($meta_article_tags as $tag) { ?>
- <?php if ($tag && $tag != '') { ?>
- <meta property="article:tag" content="<?= $tag ?>" />
- <?php } ?>
- <?php } ?>
- <meta property="article:section" content="<?= $meta_article_section ?>" />
- <meta property="article:published_time" content="<?= $meta_article_created ?>" />
- <meta property="article:modified_time" content="<?= $meta_article_updated ?>" />
- <?php } ?>
-
- <?php if ($meta_noindex && $meta_nofollow) { ?>
- <meta name="robots" content="noindex,nofollow">
- <meta name="googlebot" content="noindex,nofollow">
- <?php } elseif ($meta_noindex) { ?>
- <meta name="robots" content="noindex">
- <meta name="googlebot" content="noindex">
- <?php } elseif ($meta_nofollow) { ?>
- <meta name="robots" content="nofollow">
- <meta name="googlebot" content="nofollow">
- <?php } ?>
-
- <script>
- var googletag = googletag || {};
- googletag.cmd = googletag.cmd || [];
- var msTag = {
- site: 'chathispano',
- <?php if ($controller == 'index' && $action == 'index') { ?>
- page: 'home',
- <?php } elseif ($controller == 'blogs' || ($controller == 'news' && ($action == 'index' || ($action == 'list' && $type == 'noticias')))) { ?>
- page: 'blog',
- <?php } elseif ($controller == 'webchat' && ($action == 'index' || $action == 'element')) { ?>
- page: 'chat',
- <?php } else { ?>
- page: 'ros',
- <?php } ?>
- data: {
- <?php if ($controller == 'index' && $action == 'index') { ?>
- ZonasMassarius: 'home',
- <?php } elseif ($controller == 'blogs' || ($controller == 'news' && ($action == 'index' || ($action == 'list' && $type == 'noticias')))) { ?>
- //ZonasMassarius: 'article',
- ZonasMassarius: 'blog',
- <?php } elseif ($controller == 'webchat' && $action == 'index') { ?>
- ZonasMassarius: 'chat',
- <?php } elseif ($controller == 'webchat' && $action == 'element') { ?>
- ZonasMassarius: 'chat',
- <?php } else { ?>
- ZonasMassarius: 'ros',
- <?php } ?>
- <?php if ($hasPremium || $ads_revive_enabled || $refinery89_enabled || $section_gay == 1 || $section_sex == 1 || $section_lesbianas == 1) { ?>
- noAds: true
- <?php } elseif ($controller == 'error' || $controller == 'paywall' || $controller == 'auth' || $controller == 'sexshop') { ?>
- noAds: true
- <?php } else { ?>
- noAds: false
- <?php } ?>
- },
- cb: function () {},
- };
- if (window.self !== window.top) {
- msTag.data.noAds = true;
- }
- </script>
-
-
- <script type="text/javascript">
- (function(c,l,a,r,i,t,y){
- c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
- t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
- y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
- })(window, document, "clarity", "script", "mh9qwq8zpy");
- </script>
-
-
- <!-- favicon -->
- <link rel="shortcut icon" href="/assets/web/images/favicon.ico" type="image/x-icon">
- <link rel="icon" href="/assets/web/images/favicon.ico" type="image/x-icon">
-
- <link rel="preload" as="font" href="<?= $baseUri ?>webfonts/fa-solid-900.woff2" type="font/woff2" crossorigin="anonymous">
- <link rel="preload" as="font" href="<?= $baseUri ?>webfonts/fa-brands-400.woff2" type="font/woff2" crossorigin="anonymous">
- <link rel="preload" as="font" href="<?= $baseUri ?>webfonts/fa-regular-400.woff2" type="font/woff2" crossorigin="anonymous">
- <link rel="preload" as="font" href="<?= $baseUri ?>assets/web/fonts/Asap-BoldItalic.ttf" type="font/ttf" crossorigin="anonymous">
- <link rel="preload" as="font" href="<?= $baseUri ?>assets/web/fonts/Asap-Bold.ttf" type="font/ttf" crossorigin="anonymous">
- <link rel="preload" as="font" href="<?= $baseUri ?>assets/web/fonts/Asap-Italic.ttf" type="font/ttf" crossorigin="anonymous">
- <link rel="preload" as="font" href="<?= $baseUri ?>assets/web/fonts/Asap-MediumItalic.ttf" type="font/ttf" crossorigin="anonymous">
- <link rel="preload" as="font" href="<?= $baseUri ?>assets/web/fonts/Asap-Medium.ttf" type="font/ttf" crossorigin="anonymous">
- <link rel="preload" as="font" href="<?= $baseUri ?>assets/web/fonts/Asap-Regular.ttf" type="font/ttf" crossorigin="anonymous">
- <link rel="preload" as="font" href="<?= $baseUri ?>assets/web/fonts/Asap-SemiBoldItalic.ttf" type="font/ttf" crossorigin="anonymous">
- <link rel="preload" as="font" href="<?= $baseUri ?>assets/web/fonts/Asap-SemiBold.ttf" type="font/ttf" crossorigin="anonymous">
-
-
- <link rel="stylesheet" href="https://massariuscdn.com/pubs/chathispano/index.css">
- <script async type="text/javascript" src="https://massariuscdn.com/pubs/chathispano/chathispano_hb_setup.js"></script>
-
- <?php if ($refinery89_enabled) { ?>
- <script src="https://tags.refinery89.com/chathispanocom.js" async></script>
- <?php } ?>
-
- <style>
- :root {
- --banner-container-top: url(<?= $baseUri ?>assets/web/images/banner-container-top-cutted.png);
- --banner-container-top-home: url(<?= $baseUri ?>assets/web/images/banner-container-top-home.png);
- --banner-container-bottom: url(<?= $baseUri ?>assets/web/images/banner-container-bottom.png);
- --banner-container-top-webp: url(<?= $baseUri ?>assets/web/images/banner-container-top-cutted.webp);
- --banner-container-top-home-webp: url(<?= $baseUri ?>assets/web/images/banner-container-top-home.webp);
- --banner-container-bottom-webp: url(<?= $baseUri ?>assets/web/images/banner-container-bottom.webp);
- }
- @media (max-width : 576px) {
- :root {
- --banner-container-top: url(<?= $baseUri ?>assets/web/images/banner-container-top-cutted-xs.png);
- --banner-container-top-home: url(<?= $baseUri ?>assets/web/images/banner-container-top-home-xs.png);
- --banner-container-bottom: url(<?= $baseUri ?>assets/web/images/banner-container-bottom-xs.png);
- --banner-container-top-webp: url(<?= $baseUri ?>assets/web/images/banner-container-top-cutted-xs.webp);
- --banner-container-top-home-webp: url(<?= $baseUri ?>assets/web/images/banner-container-top-home-xs.webp);
- --banner-container-bottom-webp: url(<?= $baseUri ?>assets/web/images/banner-container-bottom-xs.webp);
- }
- }
- @media (min-width : 577px) and (max-width : 768px) {
- :root {
- --banner-container-top: url(<?= $baseUri ?>assets/web/images/banner-container-top-cutted-sm.png);
- --banner-container-top-home: url(<?= $baseUri ?>assets/web/images/banner-container-top-home-sm.png);
- --banner-container-bottom: url(<?= $baseUri ?>assets/web/images/banner-container-bottom-sm.png);
- --banner-container-top-webp: url(<?= $baseUri ?>assets/web/images/banner-container-top-cutted-sm.webp);
- --banner-container-top-home-webp: url(<?= $baseUri ?>assets/web/images/banner-container-top-home-sm.webp);
- --banner-container-bottom-webp: url(<?= $baseUri ?>assets/web/images/banner-container-bottom-sm.webp);
- }
- }
- @media (min-width : 769px) and (max-width : 992px) {
- :root {
- --banner-container-top: url(<?= $baseUri ?>assets/web/images/banner-container-top-cutted-md.png);
- --banner-container-top-home: url(<?= $baseUri ?>assets/web/images/banner-container-top-home-md.png);
- --banner-container-bottom: url(<?= $baseUri ?>assets/web/images/banner-container-bottom-md.png);
- --banner-container-top-webp: url(<?= $baseUri ?>assets/web/images/banner-container-top-cutted-md.webp);
- --banner-container-top-home-webp: url(<?= $baseUri ?>assets/web/images/banner-container-top-home-md.webp);
- --banner-container-bottom-webp: url(<?= $baseUri ?>assets/web/images/banner-container-bottom-md.webp);
- }
- }
- @media (min-width : 993px) and (max-width : 1200px) {
- :root {
- --banner-container-top: url(<?= $baseUri ?>assets/web/images/banner-container-top-cutted-lg.png);
- --banner-container-top-home: url(<?= $baseUri ?>assets/web/images/banner-container-top-home-lg.png);
- --banner-container-bottom: url(<?= $baseUri ?>assets/web/images/banner-container-bottom-lg.png);
- --banner-container-top-webp: url(<?= $baseUri ?>assets/web/images/banner-container-top-cutted-lg.webp);
- --banner-container-top-home-webp: url(<?= $baseUri ?>assets/web/images/banner-container-top-home-lg.webp);
- --banner-container-bottom-webp: url(<?= $baseUri ?>assets/web/images/banner-container-bottom-lg.webp);
- }
- }
- </style>
-
- <style>
- @font-face {
- font-family: FontAwesome5Solid;
- src: url(<?= $baseUri ?>webfonts/fa-solid-900.woff2);
- font-display: swap;
- }
-
- @font-face {
- font-family: FontAwesome5Brands;
- src: url(<?= $baseUri ?>webfonts/fa-brands-400.woff2);
- font-display: swap;
- }
-
- @font-face {
- font-family: FontAwesome5Regular;
- src: url(<?= $baseUri ?>webfonts/fa-regular-400.woff2);
- font-display: swap;
- }
-
- .fa, .fas {
- font-family: FontAwesome5Solid !important;
- }
- .fab {
- font-family: FontAwesome5Brands !important;
- }
- .far {
- font-family: FontAwesome5Regular !important;
- }
-
- @font-face {
- font-family: AsapBold;
- src: url(<?= $baseUri ?>assets/web/fonts/Asap-Bold.ttf);
- font-display: swap;
- }
-
- @font-face {
- font-family: AsapBoldItalic;
- src: url(<?= $baseUri ?>assets/web/fonts/Asap-BoldItalic.ttf);
- font-display: swap;
- }
-
- @font-face {
- font-family: AsapItalic;
- src: url(<?= $baseUri ?>assets/web/fonts/Asap-Italic.ttf);
- font-display: swap;
- }
-
- @font-face {
- font-family: AsapMedium;
- src: url(<?= $baseUri ?>assets/web/fonts/Asap-Medium.ttf);
- font-display: swap;
- }
-
- @font-face {
- font-family: AsapMediumItalic;
- src: url(<?= $baseUri ?>assets/web/fonts/Asap-MediumItalic.ttf);
- font-display: swap;
- }
-
- @font-face {
- font-family: AsapRegular;
- src: url(<?= $baseUri ?>assets/web/fonts/Asap-Regular.ttf);
- font-display: swap;
- }
-
- @font-face {
- font-family: AsapSemiBold;
- src: url(<?= $baseUri ?>assets/web/fonts/Asap-SemiBold.ttf);
- font-display: swap;
- }
-
- @font-face {
- font-family: AsapSemiBoldItalic;
- src: url(<?= $baseUri ?>assets/web/fonts/Asap-SemiBoldItalic.ttf);
- font-display: swap;
- }
- </style>
-
- <?= $this->assets->outputInlineCss('headerCss') ?>
- </head>
-
- <body class="container-fluid pl-0 pr-0 pb-0">
- <div id="veil"
- style="position:absolute;top:0px;bottom:0px;left:0px;right:0px;width:100%;height:100%;margin:0px;padding:0px;background-color:#ffffff;z-index:100000000;">
- </div>
-
-
- <?php if ($env == 'prod') { ?>
- <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-N9MM3TX"
- height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
- <?php } ?>
-
- <?php if (!$hasPremium && ($section_gay == 1 || $section_lesbianas == 1 || $section_sex == 1)) { ?>
- <script async type="application/javascript" src="https://a.exdynsrv.com/ad-provider.js"></script>
-
- <?php } ?>
-
- <nav class="navbar fixed-top navbar-expand-lg">
- <div class="container-xl">
- <button class="navbar-toggler text-neutral1" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
- aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="<?= $this->translate->translate('Toggle navigation') ?>">
- <span class="fas fa-ellipsis-v"></span>
- <font style="position:fixed;top:14px;left:0px;width:100%;text-align:center;font-weight:bold;">CHAT HISPANO</font>
- </button>
- <div class="collapse navbar-collapse" id="navbarSupportedContent">
- <ul class="navbar-nav mr-auto d-lg-none d-xl-none">
- <li class="nav-item">
- <a href="<?php if ($enable_element) { ?>/chat/<?php } else { ?>/webchat/<?php } ?>" class="nav-link pt-2 pb-2" target="_blank">
- <font><?= $this->translate->translate('Chat') ?></font>
- </a>
- </li>
- <li class="nav-item">
- <a href="https://foro.chathispano.com/" class="nav-link pt-2 pb-2" target="_blank">
- <font><?= $this->translate->translate('Forum') ?></font>
- </a>
- </li>
- <li class="nav-item">
- <a href="<?= $this->url->get('blogs/') ?>" class="nav-link pt-2 pb-2">
- <font><?= $this->translate->translate('Blogs') ?></font>
- </a>
- </li>
- <li class="nav-item">
- <a href="<?= $this->url->get('noticias/') ?>" class="nav-link pt-2 pb-2">
- <font><?= $this->translate->translate('News') ?></font>
- </a>
- </li>
- <li class="nav-item">
- <a href="<?= $this->url->get('normas/') ?>" class="nav-link pt-2 pb-2">
- <font><?= $this->translate->translate('Rules') ?></font>
- </a>
- </li>
- <li class="nav-item">
- <a href="<?= $this->url->get('gestiones/') ?>" class="nav-link pt-2 pb-2">
- <font><?= $this->translate->translate('Procedures') ?></font>
- </a>
- </li>
- <li class="nav-item">
- <a href="<?= $this->url->get('contactar/') ?>" class="nav-link pt-2 pb-2">
- <font><?= $this->translate->translate('Contact') ?></font>
- </a>
- </li>
- <li class="nav-item">
- <a href="<?= $this->url->get('ayuda/') ?>" class="nav-link pt-2 pb-2">
- <font><?= $this->translate->translate('Help') ?></font>
- </a>
- </li>
- <li class="dropdown-divider"></li>
- <li class="nav-item">
- <a class="nav-link pt-2 pb-2" href="/faqs-premium">
- <span class="fa fa-question" style="color:#ffffff;"></span>
- <font><?= $this->translate->translate('Premium FAQS') ?></font>
- </a>
- </li>
- <li class="dropdown-divider"></li>
- <?php if ($loggedIn) { ?>
- <li class="nav-item">
- <a href="<?= $this->url->get('perfil/') ?>" class="nav-link pt-2 pb-2">
- <font><?= $this->translate->translate('Profile') ?></font>
- </a>
- </li>
- <?php } ?>
- <li class="nav-item">
- <a href="/faqs-premium" class="nav-link pt-2 pb-2">
- <font><?= $this->translate->translate('Premium FAQS') ?></font>
- </a>
- </li>
- <li class="nav-item">
- <a href="/suscripciones" class="nav-link pt-2 pb-2">
- <font><?= $this->translate->translate('Subscriptions') ?></font>
- </a>
- </li>
- <?php if ($loggedIn) { ?>
- <li class="nav-item">
- <a href="<?= $this->url->get('auth/logout') ?>" class="nav-link pt-2 pb-2">
- <font><?= $this->translate->translate('Log out') ?></font>
- </a>
- </li>
- <?php } else { ?>
- <li class="nav-item">
- <a href="<?= $this->url->get('auth/login') ?>" class="nav-link pt-2 pb-2">
- <font><?= $this->translate->translate('Log in') ?></font>
- </a>
- </li>
- <?php } ?>
- </ul>
- </div>
- <div class="d-none d-lg-flex d-xl-flex justify-content-end">
- <ul class="navbar-nav mr-auto d-none d-lg-flex d-xl-flex">
- <li class="nav-item mr-4">
- <a href="<?php if ($enable_element) { ?>/chat/<?php } else { ?>/webchat/<?php } ?>" class="nav-link" target="_blank">
- <font><?= $this->translate->translate('Chat') ?></font>
- </a>
- </li>
- <li class="nav-item mr-4">
- <a href="https://foro.chathispano.com" class="nav-link" target="_blank">
- <font><?= $this->translate->translate('Forum') ?></font>
- </a>
- </li>
- <li class="nav-item mr-4">
- <a href="<?= $this->url->get('blogs/') ?>" class="nav-link">
- <font><?= $this->translate->translate('Blogs') ?></font>
- </a>
- </li>
- <li class="nav-item mr-4">
- <a href="<?= $this->url->get('noticias/') ?>" class="nav-link">
- <font><?= $this->translate->translate('News') ?></font>
- </a>
- </li>
- <li class="nav-item mr-4">
- <a href="<?= $this->url->get('normas/') ?>" class="nav-link">
- <font><?= $this->translate->translate('Rules') ?></font>
- </a>
- </li>
- <li class="nav-item mr-4">
- <a href="<?= $this->url->get('gestiones/') ?>" class="nav-link">
- <font><?= $this->translate->translate('Procedures') ?></font>
- </a>
- </li>
- <li class="nav-item mr-4">
- <a href="<?= $this->url->get('contactar/') ?>" class="nav-link">
- <font><?= $this->translate->translate('Contact') ?></font>
- </a>
- </li>
- <li class="nav-item mr-4">
- <a href="<?= $this->url->get('ayuda/') ?>" class="nav-link">
- <font><?= $this->translate->translate('Help') ?></font>
- </a>
- </li>
- </ul>
- <?php if ($controller != 'error') { ?>
- <form class="form-inline mr-4 pt-2 pb-1">
- <div class="dropdown">
- <button class="btn btn-outline-light dropdown-toggle" type="button"
- id="dropdownSearch" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- <span class="fa fa-search"></span>
- <?= $this->translate->translate('Search') ?>
- </button>
- <div class="dropdown-menu" aria-labelledby="dropdownSearch">
- <div class="input-group">
- <input type="search" class="border-0 pl-2 pr-2 pb-2 pt-2 rounded-right typeahead" name="search" placeHolder="<?= $this->translate->translate('Search') ?>"
- data-url='["<?= $baseUri ?>noticias/buscar/%QUERY","<?= $baseUri ?>blogs/buscar/%QUERY","<?= $baseUri ?>canal/buscar/%QUERY"]'
- data-wildcard="%QUERY"
- data-name='["News","Blogs","Channels"]'
- data-type="single"
- data-empty='["<?= str_replace(["'","à ","á","è","é","Ã","ò","ó","ú"], ["'","à","á","è","é","í","ò","ó","ú"], $this->translate->translate('No articles found')) ?>","<?= str_replace(["'","à ","á","è","é","Ã","ò","ó","ú"], ["'","à","á","è","é","í","ò","ó","ú"], $this->translate->translate('No blog posts found')) ?>","<?= str_replace(["'","à ","á","è","é","Ã","ò","ó","ú"], ["'","à","á","è","é","í","ò","ó","ú"], $this->translate->translate('No channels found.')) ?>"]'
- data-template='["articles_search_mini","blogs_search_mini","channel_search_mini"]'
- data-limit="5"
- data-pending='<?= $this->translate->translate('Searching...') ?>'
- data-position="absolute"
- data-header="1">
- </div>
- </div>
- </div>
- </form>
- <?php } ?>
- <ul class="navbar-nav mr-auto d-none d-lg-flex d-xl-flex">
- <?php if ($hasPremium) { ?>
- <li class="nav-item pt-3 mr-2 nav-item-be-premium">
- <a href="<?= $baseUri ?>suscripciones/premium" class="nav-link btn btn-sm btn-gold">
- <span class="fa fa-star"></span>
- Webchat Premium
- </a>
- </li>
- <?php } else { ?>
- <li class="nav-item pt-3 mr-2 nav-item-be-premium">
- <a href="<?= $baseUri ?>suscripciones/premium" class="nav-link btn btn-sm btn-green">
- <span class="fa fa-star"></span>
- <?= $this->translate->translate('Chat without ads!') ?>
- </a>
- </li>
- <?php } ?>
- <li class="nav-item">
- <div class="dropdown">
- <a href="#" class="nav-link"
- data-toggle="dropdown" id="MenuProfile" aria-haspopup="true" aria-expanded="false">
- <img class="icon-log-in" src="/assets/web/images/log-in.png">
- </a>
- <div class="dropdown-menu dropdown-menu-right pt-0 pb-0 border-0">
- <?php if ($loggedIn) { ?>
- <a class="dropdown-item" href="/perfil"><?= $this->translate->translate('Profile') ?></a>
- <?php } ?>
- <a class="dropdown-item" href="/faqs-premium">
- <span class="fa fa-question"></span>
- <?= $this->translate->translate('Premium FAQS') ?>
- </a>
- <a class="dropdown-item" href="/suscripciones">
- <span class="fa fa-list"></span>
- <?= $this->translate->translate('Subscriptions') ?>
- </a>
- <?php if ($loggedIn) { ?>
- <a class="dropdown-item rounded-bottom" href="/auth/logout"><?= $this->translate->translate('Log out') ?></a>
- <?php } else { ?>
- <a class="dropdown-item rounded-bottom" href="/auth/login"><?= $this->translate->translate('Log in') ?></a>
- <?php } ?>
- </div>
- </div>
- </li>
- </ul>
- </div>
- </div>
- </nav>
-
- <div class="container-fluid d-sm-none nav-item-be-premium pt-2 pb-2">
- <a href="<?= $baseUri ?>suscripciones" class="btn btn-block btn-green">
- <span class="fa fa-star"></span>
- <?= $this->translate->translate('Chat without ads!') ?>
- </a>
- </div>
-
-
- <?php if (!$hasPremium && $controller != 'error' && $controller != 'paywall' && $controller != 'auth' && $controller != 'sexshop') { ?>
- <div class="container-fluid banner-top pt-2 pb-2">
- <div id="pubtop" class="pt-2 pb-4 text-center">
- <p class="text-muted pt-0 pb-2"><small>PUBLICIDAD</small></p>
- <?php if ($ads_revive_enabled) { ?>
- <!-- We do not need to include anything here -->
- <?php } elseif ($section_gay == 1 || $section_lesbianas == 1 || $section_sex == 1) { ?>
- <?php if (isset($vivelavita) && $vivelavita) { ?>
- <?php if ($section_lesbianas == 1) { ?>
- <?php $vivelavita_slug = 'lesbianas'; ?>
- <?php } elseif ($section_gay == 1) { ?>
- <?php $vivelavita_slug = 'gays'; ?>
- <?php } else { ?>
- <?php $vivelavita_slug = 'heteros'; ?>
- <?php } ?>
- <a href="/sexshop/<?= $vivelavita_slug ?>" target="_blank" style="display:block;height:90px;">
- <img src="/assets/web/images/vivelavita.jpg" style="height:90px;">
- </a>
- <br>
- <a href="/sexshop/<?= $vivelavita_slug ?>" target="_blank" class="text-primary" style="text-transform:uppercase;font-weight:bold;">Ir al sexshop</a>
- <?php } ?>
-
- <?php } else { ?>
- <div id="div-gpt-ad-1489776310120-0" style="display:block;"></div>
- <?php } ?>
- </div>
-
- </div>
- <?php } ?>
-
- <?php if ($controller == 'index' && $action == 'index') { ?>
- <div class="container-fluid main-content main-content-home">
- <?php } else { ?>
- <div class="container-fluid main-content">
- <?php } ?>
- <div class="row">
- <?php if ($controller == 'index' && $action == 'index') { ?>
- <div class="container-fluid home-header">
- <div class="container-xl main-content-header">
- <div class="row">
- <div class="col-5 pt-sm-4 pb-sm-4">
- <h1 class="mb-1 mb-sm-4 text-left">Chat Hispano</h1>
- <h2 class="mb-1 mb-sm-4 text-left"><?= $this->translate->translate('Greatest free chat network in spanish') ?></h2>
- <a href="<?php if ($enable_element) { ?>/chat/<?php } else { ?>/webchat/<?php } ?>" class="btn btn-lg btn-primary mt-4 ml-sm-4" target="_blank"><?= $this->translate->translate('Chat') ?></a>
- </div>
- </div>
- </div>
- <style>
- .main-content.main-content-home .main-content-header {
- color: var(--color-neutral1);
- }
- .main-content.main-content-home .main-content-header h1,
- .main-content.main-content-home .main-content-header h2 {
- font-size: 48px;
- }
- .main-content.main-content-home .main-content-header div a.btn {
- background-color: var(--color-primary);
- color: var(--color-neutral1);
- width: 250px;
- font-family: AsapSemiBold;
- }
-
- /* xs mobile */
- @media (max-width: 575px) {
- .main-content.main-content-home .main-content-header h1,
- .main-content.main-content-home .main-content-header h2 {
- font-size: 19px;
- }
- }
- </style>
-
- </div>
- <?php } ?>
- <div class="container-xl">
- <?php if (isset($navigation) && $this->length($navigation) > 0) { ?>
- <nav aria-label="breadcrumb">
- <ol class="breadcrumb bg-transparent">
- <?php foreach ($navigation as $idx => $item) { ?>
- <?php if ($idx == $this->length($navigation) - 1) { ?>
- <li class="breadcrumb-item active text-neutral1" aria-current="page"><?= $item['name'] ?></li>
- <?php } else { ?>
- <li class="breadcrumb-item text-neutral1"><a href="<?= $item['url'] ?>" class="text-neutral1"><?= $item['name'] ?></a></li>
- <?php } ?>
- <?php } ?>
- </ol>
- </nav>
- <style>
- .breadcrumb-item:not(.active) {
- font-weight: normal;
- }
- .breadcrumb-item.active {
- font-family: AsapSemiBold;
- font-weight: normal;
- text-decoration: underline;
- }
- </style>
- <?php } ?>
-
- </div>
- <div class="container-xl">
- <div class="row">
- <div class="col-sm main-content-left bg-neutral1 rounded">
- <?= $this->flashSession->output() ?>
-
- <div class="container-fluid pb-0">
- <div class="row pb-4">
- <h2 class="mb-4"><?= $this->translate->translate('Welcome!') ?></h2>
- <p class="text-left"><?= $this->translate->translate('WELCOME_INTRO1') ?></p>
- <p class="text-left"><?= $this->translate->translate('WELCOME_INTRO2') ?></p>
- </div>
- </div>
- <?php if (!$hasPremium) { ?>
- <div class="mt-0 mb-4 text-center">
- <a href="/suscripciones/premium">
- <?php if ($paywall_promo_enabled) { ?>
- <img src="/assets/web/images/<?= $paywall_promo_image ?>" />
- <?php } else { ?>
- <img src="/assets/web/images/hispano-large-premium.png" />
- <?php } ?>
- </a>
- <h5 class="modal-title text-center mt-3">
- <b>
- <?php if ($paywall_promo_enabled) { ?>
- <a href="/suscripciones/premium" class="text-primary"><?= $paywall_promo_keyword_header ?></a>
- <?php } else { ?>
- <a href="/suscripciones/premium" class="text-primary">¡Chatea como nunca lo has soñado!</a>
- <?php } ?>
- </b>
- </h5>
- <?php if ($paywall_promo_enabled) { ?>
- <p class="text-muted pt-2"><small><i><?= $paywall_promo_keyword_description ?></i></small></p>
- <?php } ?>
- <a href="/suscripciones/premium" class="btn btn-lg btn-goldenrot mt-4 mb-4" target="_blank">
- <?= $this->translate->translate('Try it free') ?>
- </a>
- </div>
-
- <?php } ?>
- <?php $this->partial('index/categorylist', ['seemore' => 1]); ?>
- <?php $this->partial('index/carousel', ['list' => $carousel_data, 'carousel_id' => 'HomeCarousel', 'title' => $this->translate->translate('Outstanding news')]); ?>
- <h1 class="mb-4 mt-4"><?= $this->translate->translate('Information for webmasters') ?></h1>
- <div class="row">
- <div class="col-12 col-sm-6 mb-4">
- <div class="card bg-secondary1 border-0 h-100">
- <div class="card-body border-0">
- <p>
- <?= $this->translate->translate('If you have a web in Wordpress, you can use our %plugin%.', ['plugin' => '<a href="https://wordpress.org/plugins/chathispano/" target="_blank">' . $this->translate->translate('official plugin') . '</a>']) ?>
- </p>
- <p>
- <?= $this->translate->translate('It will help you configure our webchat in your page. Easy and simple.') ?>
- </p>
- </div>
- <div class="card-footer border-0">
- <a href="https://wordpress.org/plugins/chathispano/" target="_blank"
- class="btn btn-block btn-primary btn-outline">
- <?= $this->translate->translate('Download Wordpress plugin') ?>
- </a>
- </div>
- </div>
- </div>
- <div class="col-12 col-sm-6 mb-4">
- <div class="card bg-secondary1 border-0 h-100">
- <div class="card-body border-0">
- <p>
- <?= $this->translate->translate('We also offer you the possibility to use %configurator% to generate a javascript code that you will only have to paste in your web page code.', ['configurator' => '<a href="' . $this->url->get('webmaster/embed') . '">' . $this->translate->translate('our configurator') . '</a>']) ?>
- </p>
- <p>
- <?= $this->translate->translate('Is simple as put Google Analytics code.') ?>
- </p>
- </div>
- <div class="card-footer border-0">
- <a href="<?= $this->url->get('webmaster/embed') ?>"
- class="btn btn-block btn-primary btn-outline">
- <?= $this->translate->translate('Go to configurator') ?>
- </a>
- </div>
- </div>
- </div>
- </div>
-
-
- <?php if (!$hasPremium && $controller != 'paywall' && $controller != 'auth' && $controller != 'error' && $controller != 'sexshop' && $section_gay != 1 && $section_lesbianas != 1 && $section_sex != 1) { ?>
- <?php if ($ads_onnetwork_enabled) { ?><div class="container-fluid text-center mb-4 pl-0 pr-0 ml-0 mr-0">
- <div id="onnetworkvideo">
- </div>
- </div>
- <script type="text/javascript">
- if (window.top === window.self) {
- console.log('Launching OnNetwork video');
- s = document.createElement('script');
- s.type = "text/javascript";
- <?php if ($controller == 'index' && $action == 'index') { ?>
- s.src = "https://video.onnetwork.tv/embed.php?sid=MnVjLDAsbDQ=";
- <?php } else { ?>
- s.src = "https://video.onnetwork.tv/embed.php?sid=MnVjLDAsbEs=";
- <?php } ?>
- document.getElementById('onnetworkvideo').append(s);
- }
- </script>
- <style>
- div#onnetworkvideo {
- max-width: 500px;
- width:100%;
- display:inline-block;
- }
- @media (max-width: 500px) {
- div#onnetworkvideo {
- max-width: 100%;
- }
- }
- </style>
- <?php } ?>
- <?php } ?>
- </div>
- <?php if (!$hasPremium && $controller != 'paywall' && $controller != 'auth' && $controller != 'error' && $controller != 'sexshop') { ?>
- <div class="col col-sm-auto main-content-right ml-sm-4 mt-4 mt-sm-0 bg-neutral3 rounded">
- <div id="pubright" class="banner-right">
- <p class="text-muted pt-0 pb-2"><small>PUBLICIDAD</small></p>
- <?php if ($ads_revive_enabled) { ?>
- <!-- We do not need to include anything here -->
- <?php } elseif ($section_gay == 1 || $section_lesbianas == 1 || $section_sex == 1) { ?>
- <ins id="exoright" class="adsbyexoclick" data-zoneid="4557896"></ins>
- <script type="text/javascript">
- if (window.screen.width <= 575) {
- document.getElementById('exoright').remove();
- }
- </script>
-
- <?php } else { ?>
- <div id="div-gpt-ad-1489677647865-0" style="display:block;"></div>
- <?php if ($ads_optimanetwork_enabled) { ?>
- <div id="div-gpt-ad-chathispano-optima-network"></div>
-
- <?php } ?>
- <?php } ?>
- </div>
-
- </div>
- <?php } ?>
- </div>
- <?php if ($controller != 'paywall' && $controller != 'auth' && $controller != 'error' && $controller != 'profile' && $controller != 'sexshop') { ?>
- <div class="row">
- <?php if (!$hasPremium && $controller == 'index' && $action == 'index') { ?>
- <div class="col-12 pt-4 pb-4">
- <div class="container-fluid bg-neutral1 rounded mb-0">
- <?php if ($section_lesbianas != 1 && $section_gay != 1 && $section_sex != 1) { ?>
- <div id="div-gpt-ad-1511474953866-0"></div>
- <?php } ?>
-
- </div>
- </div>
- <?php } ?>
- </div>
- <?php } ?>
- </div>
- </div>
- </div>
-
- <div id="footer" class="container-fluid bg-neutral6">
- <div class="container-xl">
- <div class="row justify-content-center mb-4">
- <div class="col">
- <img class="lazyload"
- data-src="<?= $cdnUri ?>/public/assets/web/images/logo-menu-large.png?system=1">
- </div>
- <div class="col-auto">
- <ul class="sitemap list-group border-0 pl-4">
- <li class="list-group-item border-0 bg-transparent">
- <a href="<?= $this->url->get('webchat/') ?>" target="_blank"><?= $this->translate->translate('Chat') ?></a>
- </li>
- <li class="list-group-item border-0 bg-transparent">
- <a href="https://foro.chathispano.com/" target="_blank"><?= $this->translate->translate('Forum') ?></a>
- </li>
- <li class="list-group-item border-0 bg-transparent">
- <a href="<?= $this->url->get('blogs/') ?>"><?= $this->translate->translate('Blogs') ?></a>
- </li>
- <li class="list-group-item border-0 bg-transparent">
- <a href="<?= $this->url->get('noticias/') ?>"><?= $this->translate->translate('News') ?></a>
- </li>
- <li class="list-group-item border-0 bg-transparent">
- <a href="<?= $this->url->get('normas/') ?>"><?= $this->translate->translate('Rules') ?></a>
- </li>
- <li class="list-group-item border-0 bg-transparent">
- <a href="<?= $this->url->get('stats/') ?>"><?= $this->translate->translate('Stats') ?></a>
- </li>
- <li class="list-group-item border-0 bg-transparent">
- <a href="<?= $this->url->get('historias/') ?>"><?= $this->translate->translate('Stories') ?></a>
- </li>
- <li class="list-group-item border-0 bg-transparent">
- <a href="https://tuforo.chathispano.com"><?= $this->translate->translate('Your free forum') ?></a>
- </li>
- </ul>
- </div>
- <div class="col-auto">
- <ul class="sitemap list-group border-0">
- <li class="list-group-item border-0 bg-transparent">
- <a href="<?= $this->url->get('contactar/') ?>"><?= $this->translate->translate('Contact') ?></a>
- </li>
- <li class="list-group-item border-0 bg-transparent">
- <a href="<?= $this->url->get('ayuda/') ?>"><?= $this->translate->translate('Help') ?></a>
- </li>
- </ul>
- </div>
- <div class="col-auto">
- <ul class="sitemap list-group border-0 pr-4">
- <li class="list-group-item border-0 bg-transparent">
- <a href="<?= $this->url->get('condiciones/') ?>"><?= $this->translate->translate('Use conditions') ?></a>
- </li>
- <li class="list-group-item border-0 bg-transparent">
- <a href="<?= $this->url->get('lopd/') ?>"><?= $this->translate->translate('Privacy') ?></a>
- </li>
- <li class="list-group-item border-0 bg-transparent">
- <a href="<?= $this->url->get('soporte/') ?>"><?= $this->translate->translate('Support') ?></a>
- </li>
- <li class="list-group-item border-0 bg-transparent">
- <a href="<?= $this->url->get('contactar/comercial') ?>"><?= $this->translate->translate('Advertising') ?></a>
- </li>
- </ul>
- </div>
- <div class="col social text-right">
- <a href="https://www.facebook.com/IRCHispanoChat/" target="_blank">
- <i class="fab fa-facebook-f fa-2x"></i>
- </a>
- <a href="https://twitter.com/irchispanochat" target="_blank" class="ml-2">
- <i class="fab fa-twitter fa-2x"></i>
- </a>
- <a href="https://www.youtube.com/channel/UCDTR3d_JQWNqcfXIak35XKg" target="_blank" class="ml-2">
- <i class="fab fa-youtube fa-2x"></i>
- </a>
- </div>
- </div>
- <div class="row mt-4 pt-4">
- <div class="col-12 text-center copyright">
- Copyright © 1996-<?= $current_year ?> Chat Hispano, S.L. Todos los derechos reservados.
- </div>
- </div>
- </div>
- </div>
-
-
- <script type="text/javascript">
- document.getElementById('veil').remove();
- </script>
-
-
- <!-- main JavaScript -->
- <?= $this->assets->outputInlineJs('mainJs') ?>
- <?php if ($enable_moment) { ?>
- <?= $this->assets->outputInlineJs('momentJs') ?>
- <?php } ?>
- <?php if ($enable_charts) { ?>
- <?= $this->assets->outputInlineJs('chartJs') ?>
- <?php } ?>
- <?php if ($enable_editor) { ?>
- <?= $this->assets->outputJs('ckeditorJs') ?>
- <?php } ?>
- <?= $this->assets->outputInlineJs('pluginJs') ?>
-
- <script type="text/javascript">
- $(document).ready(function() {
- /**********
- * PLUGIN *
- **********/
- var chathispano = new $.chathispano({
- 'baseUri': "<?= $baseUri ?>",
- 'locale': "<?= $locale ?>",
- 'rev': "<?= $revision ?>",
- 'tmpl_dir': '/assets/web/js/templates/',
- 'storage_prefix': 'ChatHispanoWeb-',
- 'language_file': 'web',
- });
- window.chathispano = chathispano;
- document.chathispano = chathispano;
- chathispano.init();
- chathispano.ready();
-
- <?php if ($env == 'prod') { ?>
- $(window).on('unload', function() {
- window.dataLayer.push({'event': 'unloadPage'});
- });
- <?php if ($ads_revive_enabled) { ?>
- window.dataLayer.push({'event': 'revive'});
- <?php } else { ?>
- window.dataLayer.push({'event': 'massarius'});
- <?php } ?>
- <?php } ?>
- });
- </script>
-
- <script type="text/javascript">
- function check_menu_css() {
- if ($('nav').css('opacity') != 1) {
- $('nav').css('opacity', '');
- $('nav').css('pointer-events', '');
- console.log('Fixed nav CSS');
- } else {
- setTimeout(check_menu_css, 1000);
- }
- }
- setTimeout(check_menu_css, 1000);
- </script>
-
-
-
-
- <?php if (!$hasPremium && $controller != 'error' && $controller != 'paywall' && $controller != 'auth' && $controller != 'sexshop' && $section_gay != 1 && $section_lesbianas != 1 && $section_sex != 1) { ?>
- <?php } elseif (!$hasPremium && $controller != 'error' && $controller != 'paywall' && $controller != 'auth' && $controller != 'sexshop') { ?>
- <script>(AdProvider = window.AdProvider || []).push({"serve": {}});</script>
-
- <?php } ?>
-
- <?php if ($controller == 'index' && $controller == 'index' && !$hasPremium && $ads_revive_enabled) { ?>
- <div class="modal fade" id="pubmodal" tabindex="-1" aria-hidden="true">
- <div class="modal-dialog modal-dialog-centered">
- <div class="modal-content">
- <div class="modal-header">
- PUBLICIDAD
- <button type="button" class="close" data-dismiss="modal" aria-label="<?= $this->translate->translate('Close') ?>">
- <span aria-hidden="true">×</span>
- </button>
- </div>
- <div class="modal-body">
- </div>
- </div>
- </div>
- </div>
- <style>
- #pubmodal .modal-dialog .modal-content {
- width: auto;
- }
- #pubmodal .modal-dialog .modal-content .modal-header {
- border-bottom: 0px;
- padding-left: 5px;
- padding-right: 5px;
- padding-top: 5px;
- padding-bottom: 0px;
- }
- #pubmodal .modal-dialog .modal-content .modal-body {
- padding-left: 5px;
- padding-right: 5px;
- padding-top: 5px;
- padding-bottom: 0px;
- }
- @media (max-width: 767px) {
- #pubmodal .modal-dialog .modal-content {
- width: 100%;
- }
- #pubmodal .modal-dialog .modal-content .modal-body {
- text-align: center;
- }
- }
- </style>
-
- <script type="text/javascript">
- // Vars
- var reviveId = 'ce33c1420c1c0f400ccdb1a320f6d2f5';
- var reviveRefreshInterval = 120000;
- // Sets up a banner given its node, zone and id
- function revive_setup_banner(node, zoneId) {
- $(node+' ins, '+node+' script').remove();
- el = $(node+' ins');
- el = document.createElement('ins');
- el.setAttribute('data-revive-zoneid', zoneId);
- el.setAttribute('data-revive-id', reviveId);
- $(node).append(el);
- }
- // Setup modal
- function revive_modal(zoneId) {
- el = document.createElement('ins');
- el.setAttribute('data-revive-zoneid', zoneId);
- el.setAttribute('data-revive-id', reviveId);
- $('#pubmodal .modal-body').append(el);
- $('#pubmodal').modal();
- }
- // Setup function
- function revive_setup() {
- <?php if ($section_gay == 1) { ?>
- <!-- g section -->
- if (window.screen.width >= 992) { // desktop
- revive_setup_banner('#pubtop', '66');
- revive_setup_banner('#pubright', '90');
- <?php if ($controller == 'webchat' && $action == 'index') { ?>
- revive_setup_banner('#publeft', '96');
- revive_setup_banner('#pubbottom', '78');
- <?php } ?>
- } else if (window.screen.width >= 768) { // tablet
- revive_setup_banner('#pubtop', '72');
- <?php if ($controller == 'webchat' && $action == 'index') { ?>
- revive_setup_banner('#pubbottom', '84');
- <?php } else { ?>
- revive_setup_banner('#pubright', '102');
- <?php } ?>
- } else { // mobile
- revive_setup_banner('#pubtop', '150');
- <?php if ($controller == 'webchat' && $action == 'index') { ?>
- revive_setup_banner('#pubbottom', '144');
- <?php } else { ?>
- revive_setup_banner('#pubright', '102');
- <?php } ?>
- }
- <?php } elseif ($section_sex == 1) { ?>
- <!-- a section -->
- if (window.screen.width >= 992) { // desktop
- revive_setup_banner('#pubtop', '192');
- revive_setup_banner('#pubright', '180');
- <?php if ($controller == 'webchat' && $action == 'index') { ?>
- revive_setup_banner('#publeft', '174');
- revive_setup_banner('#pubbottom', '156');
- <?php } ?>
- } else if (window.screen.width >= 768) { // tablet
- revive_setup_banner('#pubtop', '204');
- <?php if ($controller == 'webchat' && $action == 'index') { ?>
- revive_setup_banner('#pubbottom', '168');
- <?php } else { ?>
- revive_setup_banner('#pubright', '186');
- <?php } ?>
- } else { // mobile
- revive_setup_banner('#pubtop', '198');
- <?php if ($controller == 'webchat' && $action == 'index') { ?>
- revive_setup_banner('#pubbottom', '162');
- <?php } else { ?>
- revive_setup_banner('#pubright', '186');
- <?php } ?>
- }
- <?php } else { ?>
- <!-- default -->
- if (window.screen.width >= 992) { // desktop
- revive_setup_banner('#pubtop', '6');
- revive_setup_banner('#pubright', '54');
- <?php if ($controller == 'webchat' && $action == 'index') { ?>
- revive_setup_banner('#publeft', '48');
- revive_setup_banner('#pubbottom', '30');
- <?php } ?>
- } else if (window.screen.width >= 768) { // tablet
- revive_setup_banner('#pubtop', '24');
- <?php if ($controller == 'webchat' && $action == 'index') { ?>
- revive_setup_banner('#pubbottom', '36');
- <?php } else { ?>
- revive_setup_banner('#pubright', '60');
- <?php } ?>
- } else { // mobile
- revive_setup_banner('#pubtop', '18');
- <?php if ($controller == 'webchat' && $action == 'index') { ?>
- revive_setup_banner('#pubbottom', '42');
- <?php } else { ?>
- revive_setup_banner('#pubright', '60');
- <?php } ?>
- }
- <?php } ?>
- var s = document.createElement("script");
- s.async = true;
- s.type = "text/javascript";
- s.src = "https://ad.chathispano.com/www/delivery/asyncjs.php";
- $('body').append(s);
- }
- function revive_start() {
- setInterval(function() {
- window.reviveAsync={};
- revive_setup();
- }, reviveRefreshInterval);
- revive_setup();
- }
- revive_start();
- if (window.screen.width >= 768) { // tablet + desktop
- revive_modal('282');
- } else { // mobile
- revive_modal('294');
- }
- </script>
-
- <?php } ?>
-
- <div id="hispanito">
- <img src="/assets/web/images/logo-menu.png">
- <div>
- <?php if ($loggedIn) { ?>
- <hr>
- <a href="/perfil/info" class="text-purple" <?php if ($controller == 'webchat' && $action == 'index') { ?>target="_blank"<?php } ?>>
- <span class="fa fa-2x fa-user-circle"></span><br>
- <?= $this->translate->translate('Profile') ?>
- </a>
- <?php } else { ?>
- <hr>
- <a href="/auth/login" class="text-purple" <?php if ($controller == 'webchat' && $action == 'index') { ?>target="_blank"<?php } ?>>
- <span class="fas fa-2x fa-sign-in-alt"></span><br>
- <?= $this->translate->translate('Log in') ?>
- </a>
- <?php } ?>
- <hr>
- <a href="/suscripciones"
- class="<?php if (!$hasPremium) { ?>text-darkgreen<?php } else { ?>text-goldenrot<?php } ?>"
- <?php if ($controller == 'webchat' && $action == 'index') { ?>target="_blank"<?php } ?>>
- <?php if (!$hasPremium) { ?>
- <span class="fa fa-2x fa-star"></span><br>
- <?= $this->translate->translate('Chat without ads!') ?>
- <?php } else { ?>
- <span class="fa fa-2x fa-star"></span><br>
- <font class="text-goldenrot">Webchat Premium</font>
- <?php } ?>
- </a>
- <?php if (!$loggedIn) { ?>
- <hr>
- <a href="/auth/register" <?php if ($controller == 'webchat' && $action == 'index') { ?>target="_blank"<?php } ?>>
- <span class="fa fa-2x fa-user-circle"></span><br>
- <?= $this->translate->translate('Create an account') ?>
- </a>
- <?php } ?>
- <?php if (!$loggedIn || isset($identity) && $this->length($identity['nicks']) < 3) { ?>
- <hr>
- <a href="/regnick" <?php if ($controller == 'webchat' && $action == 'index') { ?>target="_blank"<?php } ?>>
- <span class="fa fa-2x fa-user-plus"></span><br>
- <?= $this->translate->translate('Nick reservation') ?>
- </a>
- <?php } ?>
- <?php if (!$loggedIn || isset($identity) && $this->length($identity['nicks']) > 0) { ?>
- <hr>
- <a href="/setpass" <?php if ($controller == 'webchat' && $action == 'index') { ?>target="_blank"<?php } ?>>
- <span class="fa fa-2x fa-key"></span><br>
- <?= $this->translate->translate('Update password') ?>
- </a>
- <hr>
- <a href="/ipvirtual" <?php if ($controller == 'webchat' && $action == 'index') { ?>target="_blank"<?php } ?>>
- <span class="fa fa-2x fa-paint-brush"></span><br>
- <?= $this->translate->translate('Update Virtual IP') ?>
- </a>
- <hr>
- <a href="/perfil/misblogs" <?php if ($controller == 'webchat' && $action == 'index') { ?>target="_blank"<?php } ?>>
- <span class="fa fa-2x fa-blog"></span><br>
- <?= $this->translate->translate('My blogs') ?>
- </a>
- <hr>
- <a href="/perfil/misforos" <?php if ($controller == 'webchat' && $action == 'index') { ?>target="_blank"<?php } ?>>
- <span class="fab fa-2x fa-discourse"></span><br>
- <?= $this->translate->translate('My forums') ?>
- </a>
- <hr>
- <a href="/chanreg" <?php if ($controller == 'webchat' && $action == 'index') { ?>target="_blank"<?php } ?>>
- <span class="fa fa-2x fa-users"></span><br>
- <?= $this->translate->translate('Channel registration') ?>
- </a>
- <?php } ?>
- <hr>
- <a href="/gestiones" <?php if ($controller == 'webchat' && $action == 'index') { ?>target="_blank"<?php } ?>>
- <span class="fa fa-2x fa-list"></span><br>
- <?= $this->translate->translate('More procedures') ?>
- </a>
- </div>
- </div>
-
- </body>
- </html>
|
#8 | Phalcon\Mvc\Application->handle
/srv/ChatHispanoEngine/releases/99/apps/Application.php (150) - <?php
-
- // namespace ChatHispanoEngine;
-
- /**
- * Application driver class to initialize Phalcon and
- * other resources.
- */
- class Application extends \Phalcon\Mvc\Application
- {
- private static $mode = 'dev';
-
- private static $DEFAULT_MODULE = 'api';
-
- public const MODE_PRODUCTION = 'prod';
- public const MODE_STAGING = 'staging';
- public const MODE_TEST = 'test';
- public const MODE_DEVELOPMENT = 'dev';
-
- /**
- * Set application mode and error reporting level.
- */
- public function __construct($defaultModule, $env = 'dev')
- {
- $this->modules = array(
- 'core' => array(
- 'className' => 'ChatHispanoEngine\Core\Module',
- 'path' => __DIR__.'/Core/Module.php',
- ),
- 'api' => array(
- 'className' => 'ChatHispanoEngine\Api\Module',
- 'path' => __DIR__.'/Api/Module.php',
- ),
- 'login' => array(
- 'className' => 'ChatHispanoEngine\Login\Module',
- 'path' => __DIR__.'/Login/Module.php',
- ),
- 'oidc' => array(
- 'className' => 'ChatHispanoEngine\Oidc\Module',
- 'path' => __DIR__.'/Oidc/Module.php',
- ),
- 'web' => array(
- 'className' => 'ChatHispanoEngine\Web\Module',
- 'path' => __DIR__.'/Web/Module.php',
- ),
- 'backoffice' => array(
- 'className' => 'ChatHispanoEngine\Backoffice\Module',
- 'path' => __DIR__.'/Backoffice/Module.php',
- ),
- 'movil' => array(
- 'className' => 'ChatHispanoEngine\Movil\Module',
- 'path' => __DIR__.'/Movil/Module.php',
- ),
- 'regwebexternal' => array(
- 'className' => 'ChatHispanoEngine\RegWebExternal\Module',
- 'path' => __DIR__.'/Regwebexternal/Module.php',
- ),
- 'cdn' => array(
- 'className' => 'ChatHispanoEngine\Cdn\Module',
- 'path' => __DIR__.'/Cdn/Module.php',
- ),
- 'shorten' => array(
- 'className' => 'ChatHispanoEngine\Shorten\Module',
- 'path' => __DIR__.'/Shorten/Module.php',
- ),
- );
-
- static::$DEFAULT_MODULE = $defaultModule;
- self::$mode = $env;
-
- self::$mode = trim(file_get_contents(__DIR__.'/../config/environment.txt'));
- define('ENVIRONMENT', self::$mode);
-
- if (!defined('PHALCON_MODE')) {
- $mode = getenv('PHALCON_MODE');
- $mode = $mode ? $mode : self::$mode;
- define('PHALCON_MODE', $mode);
- }
-
- switch (self::getMode()) {
- case self::MODE_PRODUCTION:
- case self::MODE_STAGING:
- error_reporting(0);
- break;
- case self::MODE_TEST:
- case self::MODE_DEVELOPMENT:
- ini_set('display_errors', 'On');
- error_reporting(E_ALL);
- break;
- }
- }
-
- /**
- * Register the services here to make them general or register in
- * the ModuleDefinition to make them module-specific.
- */
- protected function _registerServices()
- {
- $defaultModule = self::$DEFAULT_MODULE;
- $modules = $this->modules;
- $config = include __DIR__.'/../config/config.php';
- $env_config = include __DIR__.'/../config/config_'.ENVIRONMENT.'.php';
- $config->merge($env_config);
-
- $di = new \Phalcon\DI\FactoryDefault();
-
- include __DIR__.'/../config/loader.php';
- include __DIR__.'/../config/services.php';
- include __DIR__.'/../config/routing.php';
-
- $this->setDI($di);
- }
-
- /**
- * Run the application.
- */
- public function main()
- {
- if (static::MODE_PRODUCTION === static::getMode()) {
- $this->mainProd();
- } else {
- $this->mainDev();
- }
- }
-
- private function getRequestUri()
- {
- if (!isset($_SERVER)) {
- return "/";
- }
- if (!is_array($_SERVER)) {
- return "/";
- }
- if (!isset($_SERVER['REQUEST_URI'])) {
- return "/";
- }
- return $_SERVER['REQUEST_URI'];
- }
-
- /**
- * Run the development environment.
- */
- private function mainDev()
- {
- (new \Phalcon\Support\Debug())->listen();
-
- $this->_registerServices();
- $this->registerModules($this->modules);
-
- $response = $this->handle($this->getRequestUri());
- $response->send();
- }
-
- /**
- * Run the production environment.
- */
- private function mainProd()
- {
- try {
- $this->registerModules($this->modules);
- $this->_registerServices();
-
- $response = $this->handle($this->getRequestUri());
- $response->send();
- } catch (\Exception $e) {
- $logger = new \Phalcon\Logger\Adapter\Stream(__DIR__.'/../logs/'.date('Y-m-d').'.log');
- $msg = "[".$_SERVER['SERVER_NAME']."] [".$_SERVER['REQUEST_URI']."] [".$e->getCode()."] ".$e->getMessage()." at ".$e->getFile()." (".$e->getLine().")";
- $msg .= "\n".$e->getTraceAsString();
- $logger->process(new \Phalcon\Logger\Item($msg, "error", 100));
- $logger->close();
-
- // remove view contents from buffer
- ob_clean();
-
- $errorCode = 500;
- $errorView = __DIR__.'/../public/errors/error.html';
-
- if (401 === $e->getCode()) {
- // 401 UNAUTHORIZED
- $errorCode = 401;
- } elseif (403 === $e->getCode()) {
- // 403 FORBIDDEN
- $errorCode = 403;
- } elseif (404 === $e->getCode()
- || $e instanceof Phalcon\Mvc\View\Exception
- || $e instanceof Phalcon\Mvc\Dispatcher\Exception) {
- // 404 NOT FOUND
- $errorCode = 404;
- }
-
- // Get error view contents. Since we are including the view
- // file here you can use PHP and local vars inside the error view.
- ob_start();
- include_once $errorView;
- $contents = ob_get_contents();
- ob_end_clean();
-
- // send view to header
- $response = $this->getDI()->getShared('response');
- $response->resetHeaders()
- ->setStatusCode($errorCode, null)
- ->setContent($contents)
- ->send()
- ;
-
- /**
- * We try to register in MongoDB the error to be able to
- * track it in backoffice and/or receive emails
- */
- try {
- $system_log_manager = $this->getDI()->get('system_log_manager');
- if ($errorCode == 500) {
- $system_log_manager->createError([
- 'ip' => $_SERVER['SERVER_ADDR'],
- 'host' => $_SERVER['SERVER_NAME'],
- 'process' => 'php-fpm',
- 'message' => $e->getMessage(),
- 'file' => $e->getFile(),
- 'line' => $e->getLine(),
- ]);
- } else {
- $system_log_manager->createWarning([
- 'ip' => $_SERVER['SERVER_ADDR'],
- 'host' => $_SERVER['SERVER_NAME'],
- 'process' => 'php-fpm',
- 'message' => $e->getMessage(),
- 'file' => $e->getFile(),
- 'line' => $e->getLine(),
- ]);
- }
- } catch (\Exception $e) {
- }
- }
- }
-
- public function slowLog($t)
- {
- $config = $this->getDI()->get('config');
- $irc_manager = $this->getDI()->get('inspircd_irc_manager');
- $server = gethostname() ? gethostname() : 'unknown';
- $uri = "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
- if (substr($_SERVER['REQUEST_URI'], 0, 10) == '/historias') {
- return;
- }
- $msg = "\x02[SLOWLOG] [".str_pad($server, 6, " ", STR_PAD_LEFT)."] [".str_pad(round($t, 1), 5, " ", STR_PAD_LEFT)."s] PATH=\x02 ".$_SERVER['REQUEST_URI']
- ."\x02 TYPE=\x02 ".$_SERVER['REQUEST_METHOD']."\x02 URI=\x02 ".$uri;
- $irc_manager->privmsgOrderEnqueue('AAAAAI', $config->irc->debug_channel, $msg);
- }
-
- /**
- * Get the current mode.
- *
- * @return string
- */
- public static function getMode()
- {
- return self::$mode;
- }
- }
|
#9 | Application->mainDev
/srv/ChatHispanoEngine/releases/99/apps/Application.php (122) - <?php
-
- // namespace ChatHispanoEngine;
-
- /**
- * Application driver class to initialize Phalcon and
- * other resources.
- */
- class Application extends \Phalcon\Mvc\Application
- {
- private static $mode = 'dev';
-
- private static $DEFAULT_MODULE = 'api';
-
- public const MODE_PRODUCTION = 'prod';
- public const MODE_STAGING = 'staging';
- public const MODE_TEST = 'test';
- public const MODE_DEVELOPMENT = 'dev';
-
- /**
- * Set application mode and error reporting level.
- */
- public function __construct($defaultModule, $env = 'dev')
- {
- $this->modules = array(
- 'core' => array(
- 'className' => 'ChatHispanoEngine\Core\Module',
- 'path' => __DIR__.'/Core/Module.php',
- ),
- 'api' => array(
- 'className' => 'ChatHispanoEngine\Api\Module',
- 'path' => __DIR__.'/Api/Module.php',
- ),
- 'login' => array(
- 'className' => 'ChatHispanoEngine\Login\Module',
- 'path' => __DIR__.'/Login/Module.php',
- ),
- 'oidc' => array(
- 'className' => 'ChatHispanoEngine\Oidc\Module',
- 'path' => __DIR__.'/Oidc/Module.php',
- ),
- 'web' => array(
- 'className' => 'ChatHispanoEngine\Web\Module',
- 'path' => __DIR__.'/Web/Module.php',
- ),
- 'backoffice' => array(
- 'className' => 'ChatHispanoEngine\Backoffice\Module',
- 'path' => __DIR__.'/Backoffice/Module.php',
- ),
- 'movil' => array(
- 'className' => 'ChatHispanoEngine\Movil\Module',
- 'path' => __DIR__.'/Movil/Module.php',
- ),
- 'regwebexternal' => array(
- 'className' => 'ChatHispanoEngine\RegWebExternal\Module',
- 'path' => __DIR__.'/Regwebexternal/Module.php',
- ),
- 'cdn' => array(
- 'className' => 'ChatHispanoEngine\Cdn\Module',
- 'path' => __DIR__.'/Cdn/Module.php',
- ),
- 'shorten' => array(
- 'className' => 'ChatHispanoEngine\Shorten\Module',
- 'path' => __DIR__.'/Shorten/Module.php',
- ),
- );
-
- static::$DEFAULT_MODULE = $defaultModule;
- self::$mode = $env;
-
- self::$mode = trim(file_get_contents(__DIR__.'/../config/environment.txt'));
- define('ENVIRONMENT', self::$mode);
-
- if (!defined('PHALCON_MODE')) {
- $mode = getenv('PHALCON_MODE');
- $mode = $mode ? $mode : self::$mode;
- define('PHALCON_MODE', $mode);
- }
-
- switch (self::getMode()) {
- case self::MODE_PRODUCTION:
- case self::MODE_STAGING:
- error_reporting(0);
- break;
- case self::MODE_TEST:
- case self::MODE_DEVELOPMENT:
- ini_set('display_errors', 'On');
- error_reporting(E_ALL);
- break;
- }
- }
-
- /**
- * Register the services here to make them general or register in
- * the ModuleDefinition to make them module-specific.
- */
- protected function _registerServices()
- {
- $defaultModule = self::$DEFAULT_MODULE;
- $modules = $this->modules;
- $config = include __DIR__.'/../config/config.php';
- $env_config = include __DIR__.'/../config/config_'.ENVIRONMENT.'.php';
- $config->merge($env_config);
-
- $di = new \Phalcon\DI\FactoryDefault();
-
- include __DIR__.'/../config/loader.php';
- include __DIR__.'/../config/services.php';
- include __DIR__.'/../config/routing.php';
-
- $this->setDI($di);
- }
-
- /**
- * Run the application.
- */
- public function main()
- {
- if (static::MODE_PRODUCTION === static::getMode()) {
- $this->mainProd();
- } else {
- $this->mainDev();
- }
- }
-
- private function getRequestUri()
- {
- if (!isset($_SERVER)) {
- return "/";
- }
- if (!is_array($_SERVER)) {
- return "/";
- }
- if (!isset($_SERVER['REQUEST_URI'])) {
- return "/";
- }
- return $_SERVER['REQUEST_URI'];
- }
-
- /**
- * Run the development environment.
- */
- private function mainDev()
- {
- (new \Phalcon\Support\Debug())->listen();
-
- $this->_registerServices();
- $this->registerModules($this->modules);
-
- $response = $this->handle($this->getRequestUri());
- $response->send();
- }
-
- /**
- * Run the production environment.
- */
- private function mainProd()
- {
- try {
- $this->registerModules($this->modules);
- $this->_registerServices();
-
- $response = $this->handle($this->getRequestUri());
- $response->send();
- } catch (\Exception $e) {
- $logger = new \Phalcon\Logger\Adapter\Stream(__DIR__.'/../logs/'.date('Y-m-d').'.log');
- $msg = "[".$_SERVER['SERVER_NAME']."] [".$_SERVER['REQUEST_URI']."] [".$e->getCode()."] ".$e->getMessage()." at ".$e->getFile()." (".$e->getLine().")";
- $msg .= "\n".$e->getTraceAsString();
- $logger->process(new \Phalcon\Logger\Item($msg, "error", 100));
- $logger->close();
-
- // remove view contents from buffer
- ob_clean();
-
- $errorCode = 500;
- $errorView = __DIR__.'/../public/errors/error.html';
-
- if (401 === $e->getCode()) {
- // 401 UNAUTHORIZED
- $errorCode = 401;
- } elseif (403 === $e->getCode()) {
- // 403 FORBIDDEN
- $errorCode = 403;
- } elseif (404 === $e->getCode()
- || $e instanceof Phalcon\Mvc\View\Exception
- || $e instanceof Phalcon\Mvc\Dispatcher\Exception) {
- // 404 NOT FOUND
- $errorCode = 404;
- }
-
- // Get error view contents. Since we are including the view
- // file here you can use PHP and local vars inside the error view.
- ob_start();
- include_once $errorView;
- $contents = ob_get_contents();
- ob_end_clean();
-
- // send view to header
- $response = $this->getDI()->getShared('response');
- $response->resetHeaders()
- ->setStatusCode($errorCode, null)
- ->setContent($contents)
- ->send()
- ;
-
- /**
- * We try to register in MongoDB the error to be able to
- * track it in backoffice and/or receive emails
- */
- try {
- $system_log_manager = $this->getDI()->get('system_log_manager');
- if ($errorCode == 500) {
- $system_log_manager->createError([
- 'ip' => $_SERVER['SERVER_ADDR'],
- 'host' => $_SERVER['SERVER_NAME'],
- 'process' => 'php-fpm',
- 'message' => $e->getMessage(),
- 'file' => $e->getFile(),
- 'line' => $e->getLine(),
- ]);
- } else {
- $system_log_manager->createWarning([
- 'ip' => $_SERVER['SERVER_ADDR'],
- 'host' => $_SERVER['SERVER_NAME'],
- 'process' => 'php-fpm',
- 'message' => $e->getMessage(),
- 'file' => $e->getFile(),
- 'line' => $e->getLine(),
- ]);
- }
- } catch (\Exception $e) {
- }
- }
- }
-
- public function slowLog($t)
- {
- $config = $this->getDI()->get('config');
- $irc_manager = $this->getDI()->get('inspircd_irc_manager');
- $server = gethostname() ? gethostname() : 'unknown';
- $uri = "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
- if (substr($_SERVER['REQUEST_URI'], 0, 10) == '/historias') {
- return;
- }
- $msg = "\x02[SLOWLOG] [".str_pad($server, 6, " ", STR_PAD_LEFT)."] [".str_pad(round($t, 1), 5, " ", STR_PAD_LEFT)."s] PATH=\x02 ".$_SERVER['REQUEST_URI']
- ."\x02 TYPE=\x02 ".$_SERVER['REQUEST_METHOD']."\x02 URI=\x02 ".$uri;
- $irc_manager->privmsgOrderEnqueue('AAAAAI', $config->irc->debug_channel, $msg);
- }
-
- /**
- * Get the current mode.
- *
- * @return string
- */
- public static function getMode()
- {
- return self::$mode;
- }
- }
|