public function set($DisplayOnMenuSel = 1, $Encode = 0) { $SKTDB = \CmsDev\sql\db_Skt::connect(); $QueryDisplayOnMenu = $SKTDB->get_results("SELECT * FROM " . \DB_PREFIX . "menu"); $this->HTML = '<select name="DisplayOnMenu">'; foreach ($QueryDisplayOnMenu as $DisplayOnMenu) { $theName = $DisplayOnMenu->Name; if ($Encode !== 0) { $theName = $theName; } if ($DisplayOnMenuSel == $DisplayOnMenu->ID) { $this->HTML .= '<option value="' . $DisplayOnMenu->ID . '" selected="selected">' . \CmsDev\skt_Code::Charset($theName) . '</option>'; } else { $this->HTML .= '<option value="' . $DisplayOnMenu->ID . '">' . \CmsDev\skt_Code::Charset($theName) . '</option>'; } $CountTotalOnMenu = $SKTDB->get_var("SELECT count(*) FROM " . \DB_PREFIX . "sections WHERE DisplayOnMenu = '" . $DisplayOnMenu->ID . "' AND SID = '" . \SKT_SECTION_ID . "' AND Language = '" . \THIS_LANG . "'"); $this->ArrayCountOnMenu .= 'CountOnMenu[' . $DisplayOnMenu->ID . '] = ' . $CountTotalOnMenu . ';'; } $this->HTML .= '</select><script type="text/javascript">'; $this->HTML .= $this->ArrayCountOnMenu; $this->HTML .= '</script>'; return $this->HTML; }
private static function MakeNewUser($Client = false, $Info = array(), $LevelType = 'Customers') { $SKTDB = \CmsDev\Sql\db_Skt::connect(); $new_Google = false; $new_Facebook = false; $CheckUserName = new \CmsDev\util\CheckUserName(); $username = Code::Charset(isset($Info['username']) ? $Info['username'] : ''); $password = md5(isset($Info['password']) ? $Info['password'] : ''); $email = Code::Charset(isset($Info['email']) ? $Info['email'] : ''); $isactive = isset($Info['isactive']) ? $Info['isactive'] : 0; $activekey = isset($Info['activekey']) ? $Info['activekey'] : 0; $resetkey = isset($Info['resetkey']) ? $Info['resetkey'] : 0; $cust_no = isset($Info['cust_no']) ? $Info['cust_no'] : 0; $md5 = isset($Info['md5']) ? $Info['md5'] : md5($username) . $password; $Description = isset($Info['Description']) ? $Info['Description'] : ''; $Lat = isset($Info['Lat']) ? $Info['Lat'] : '-35'; $Lon = isset($Info['Lon']) ? $Info['Lon'] : '-54'; $zoom = isset($Info['zoom']) ? $Info['zoom'] : '12'; $Type = isset($Info['Type']) ? $Info['Type'] : $LevelType; $website = isset($Info['website']) ? $Info['website'] : ''; $ViewHelp = isset($Info['ViewHelp']) ? $Info['ViewHelp'] : 0; $token = isset($Info['token']) ? $Info['token'] : ''; $Company = isset($Info['Company']) ? $Info['Company'] : $Info["username"]; $CompanyUrl = isset($Info['CompanyUrl']) ? $Info['CompanyUrl'] : $CheckUserName->Fix($username); $Level = isset($Info['level']) ? $Info['level'] : $Type; $RUT = isset($Info['RUT']) ? $Info['RUT'] : ''; $Position = isset($Info['Position']) ? $Info['Position'] : ''; $Name = isset($Info['Name']) ? $Info['Name'] : ''; $Surname = isset($Info['Surname']) ? $Info['Surname'] : ''; $Country = isset($Info['Country']) ? $Info['Country'] : ''; $City = isset($Info['City']) ? $Info['City'] : ''; $CP = isset($Info['CP']) ? $Info['CP'] : ''; $Address = isset($Info['Address']) ? $Info['Address'] : ''; $From = isset($Info['From']) ? $Info['From'] : '09'; $To = isset($Info['To']) ? $Info['To'] : '18'; $Phone = isset($Info['Phone']) ? $Info['Phone'] : ''; $payment_method = isset($Info['payment_method']) ? $Info['payment_method'] : ''; $ClientAuth = isset($Info['ClientAuth']) ? $Info['ClientAuth'] : ''; $ClientAuth_id = isset($Info['ClientAuth_id']) ? $Info['ClientAuth_id'] : ''; $ClientAuth_link = isset($Info['ClientAuth_link']) ? $Info['ClientAuth_link'] : ''; $ClientAuth_name = isset($Info['ClientAuth_name']) ? $Info['ClientAuth_name'] : ''; $ClientAuth_family_name = isset($Info['ClientAuth_family_name']) ? $Info['ClientAuth_family_name'] : ''; $ClientAuth_given_name = isset($Info['ClientAuth_given_name']) ? $Info['ClientAuth_given_name'] : ''; $ClientAuth_email = isset($Info['ClientAuth_email']) ? $Info['ClientAuth_email'] : ''; $ClientAuth_picture = isset($Info['ClientAuth_picture']) ? $Info['ClientAuth_picture'] : ''; $ClientAuth_locale = isset($Info['ClientAuth_locale']) ? $Info['ClientAuth_locale'] : ''; $ClientAuth_gender = isset($Info['ClientAuth_gender']) ? $Info['ClientAuth_gender'] : ''; $category1 = isset($Info['category1']) ? $Info['category1'] : ''; $category2 = isset($Info['category2']) ? $Info['category2'] : ''; $category3 = isset($Info['category3']) ? $Info['category3'] : ''; $category4 = isset($Info['category4']) ? $Info['category4'] : ''; $category5 = isset($Info['category5']) ? $Info['category5'] : ''; if ($Client == 'FromGoogle') { /* ----------------------------------------------------------------------/// FromGoogle ///-------------- */ $Name = $Info['name']; $Surname = $Info['family_name']; $ClientAuth = $Info['ClientAuth']; $ClientAuth_id = $Info['id']; $ClientAuth_link = $Info['link']; $ClientAuth_name = $Info['name']; $ClientAuth_family_name = $Info['family_name']; $ClientAuth_given_name = $Info['given_name']; $ClientAuth_email = $Info['email']; $ClientAuth_picture = $Info['picture']; $ClientAuth_locale = $Info['locale']; $ClientAuth_gender = $Info['gender']; $username = Code::Encode($Info['given_name']); $password = md5($Info['id']); $email = $Info['email']; $isactive = 1; $md5 = md5($username . $password); $Company = $Info['name']; $CompanyUrl = $CheckUserName->Fix($Info['name']); $Type = 'Customers'; $user_listQuery = "SELECT *\r\n FROM users as user, userprofile as profile\r\n WHERE user.id = profile.IDX AND profile.ClientAuth = 'Google' AND profile.ClientAuth_id = " . \GetSQLValueString($Info["id"], 'text') . ""; $user_list = $SKTDB->get_row($user_listQuery); $MessageBox = SKT_INFO\Asistance::get(); $MessageBox->TipInfo('<b>' . $Name . '.</b><br><pre>' . $user_listQuery . '</pre><pre>' . $user_list->username . '</pre>', false); if ($user_list) { $_SESSION['UserName'] = $user_list->username; $session = md5($user_list->username . $user_list->password); $_SESSION['login'] = $session; $_SESSION['UserIDU'] = $user_list->id; $new_Google = false; $header = \SERVER_DIR; \CmsDev\Header\refresh::refreshNow(\SITE_SERVER); exit; } else { $new_Google = true; } /* ------------------------------------------------------------------------------------------------------ */ } else { if ($Client == 'FromFacebook') { /* --------------------------------------------------------------------/// FromFacebook ///-------------- */ /* ------------------------------------------------------------------------------------------------------ */ } else { } } if ($Client == 'FromSite' || $new_Google == true || $new_Facebook == true) { if ($username != '' || !isset($_SESSION['login'])) { $test = $SKTDB->get_var("SELECT id FROM users WHERE username = "******""); if (!$test) { $insertUserQuery = "INSERT INTO users \r\n ( username, password, email, CompanyUrl, isactive, activekey, resetkey, cust_no, Lat, Lon, zoom, md5, Type ) \r\n\t\t\tVALUES (" . GetSQLValueString($username, "text") . "," . GetSQLValueString($password, "text") . "," . GetSQLValueString($email, "text") . "," . GetSQLValueString($CompanyUrl, "text") . "," . GetSQLValueString($isactive, "int") . "," . GetSQLValueString($activekey, "int") . "," . GetSQLValueString($resetkey, "int") . "," . GetSQLValueString($cust_no, "int") . "," . GetSQLValueString($Lat, "text") . "," . GetSQLValueString($Lon, "text") . "," . GetSQLValueString($zoom, "int") . "," . GetSQLValueString($md5, "text") . "," . GetSQLValueString($Type, "text") . ")"; $insertUser = $SKTDB->query($insertUserQuery); if ($insertUser) { $FotoPerfil = ''; $insertUserID = $SKTDB->insert_id; if (!isset($Info['FotoPerfil']) || $Info['picture'] === '') { $FotoPerfil = \SKT_ACCESS_AVATAR; } else { $FotoPerfil = $Info['FotoPerfil']; } if ($new_Google == true) { $FotoPerfil = $ClientAuth_picture; } $insertProfile = $SKTDB->query("INSERT INTO userprofile \r\n (IDX, level, Name, Surname, Company, RUT, Position, Country, City, CP, Address, eFrom, eTo, Phone, payment_method, \r\n ClientAuth,ClientAuth_id,ClientAuth_link,ClientAuth_name,ClientAuth_family_name,ClientAuth_given_name,ClientAuth_email,ClientAuth_picture,ClientAuth_locale, ClientAuth_gender)\r\n VALUES (" . GetSQLValueString($insertUserID, "int") . "," . GetSQLValueString($Level, "text") . "," . GetSQLValueString(Code::Charset($Name), "text") . "," . GetSQLValueString(Code::Charset($Surname), "text") . "," . GetSQLValueString(Code::Charset($Company), "text") . "," . GetSQLValueString(Code::Charset($RUT), "text") . "," . GetSQLValueString(Code::Charset($Position), "text") . "," . GetSQLValueString(Code::Charset($Country), "text") . "," . GetSQLValueString(Code::Charset($City), "text") . "," . GetSQLValueString(Code::Charset($CP), "text") . "," . GetSQLValueString(Code::Charset($Address), "text") . "," . GetSQLValueString(Code::Charset($From), "text") . "," . GetSQLValueString(Code::Charset($To), "text") . "," . GetSQLValueString(Code::Charset($Phone), "text") . "," . GetSQLValueString(Code::Charset($payment_method), "text") . "," . GetSQLValueString(Code::Charset($ClientAuth), "text") . "," . GetSQLValueString(Code::Charset($ClientAuth_id), "text") . "," . GetSQLValueString(Code::Charset($ClientAuth_link), "text") . "," . GetSQLValueString(Code::Charset($ClientAuth_name), "text") . "," . GetSQLValueString(Code::Charset($ClientAuth_family_name), "text") . "," . GetSQLValueString(Code::Charset($ClientAuth_given_name), "text") . "," . GetSQLValueString(Code::Charset($ClientAuth_email), "text") . "," . GetSQLValueString(Code::Charset($FotoPerfil), "text") . "," . GetSQLValueString(Code::Charset($ClientAuth_locale), "text") . "," . GetSQLValueString(Code::Charset($ClientAuth_gender), "text") . ")"); if ($LevelType == 'Publishers' || $Type == 'Publishers' || $Level == 'Publishers') { $date = date('Y-m-d'); $Date_FinishBuild = strtotime('+ 182 day', strtotime($date)); $Date_Finish = date('Y-m-d', $Date_FinishBuild); $query = "INSERT INTO user_plan (UID,Limit_Plan,planID,Date_Finish) " . "VALUES (" . GetSQLValueString($insertUserID, "int") . "," . GetSQLValueString("180", "int") . "," . GetSQLValueString("99", "int") . "," . GetSQLValueString($Date_Finish, "date") . ")"; $SKTDB->query($query); } if ($insertProfile) { if ($Client == 'FromSite') { $ValidateUserMail = new \CmsDev\Security\ValidateUserMail(); echo $ValidateUserMail->User($insertUserID); } if ($new_Google == true || $new_Facebook == true) { $_SESSION['UserName'] = $ClientAuth_id; $session = md5($username . $password); $_SESSION['login'] = $session; $_SESSION['UserIDU'] = $insertUserID; \CmsDev\Header\refresh::refreshNow(SITE_SERVER); exit; } } else { $error = "error"; } } else { $error = \SKT_ADMIN_User_Invalid; } } } } if ($error != '') { $MessageBox = SKT_INFO\Asistance::get(); $MessageBox->TipError('<b>' . $Name . '.</b> - ' . $error . ', <pre>' . $username . '</pre>', false); } }
</li> <li> <a class="fa fa-linkedin box-icon" href="https://www.linkedin.com/profile/view?id=409356200" target="_blank" data-toggle="tooltip" title="LinkedIn"></a> </li> </ul> <p>Encuentre propuestas interesantes tambien en las redes.</p> </div> <div class="col-md-3"> <h4>Tome un momento para informarse</h4> <ul class="quicklinks"> <li><a href="/quienes_somos/" title="Quienes Somos">Quienes Somos</a></li> <li><a href="/politcas_de_privacidad/" title="Politicas de privacidad">Politicas de privacidad</a></li> <li><a href="/terminos_de_uso/" title="Terminos de uso">Terminos de uso</a></li> </ul> <p>Copyright © 2015, <?php echo \CmsDev\skt_Code::Charset(\SKT_SITE_NAME); ?> </p> </div> <div class="col-md-6"> <h4>Suscribete al Newsletter</h4> <div class="box"> <form method="post" id="FormNewsletter"> <div class="form-group mb10"> <label>E-mail</label> <input type="email" name="email" class="form-control" id="subscribe_email" placeholder="Escriba su e-mail *"> </div> <p class="mb10">Solo se enviara un correo informativo mensualmente.</p> <div class="input-group-btn"> <button class="btn btn-inverse btn-block" type="submit" id="subscribe_submit"><i class="fa fa-envelope-o"></i> Enviar suscripción</button> </div>
public static function data($File = 'dummy.jpg', $Require = 'Title', $label = false, $ClassCSS = 'sktToolTip', $target = '_blank') { self::File($File); self::TagExistOrCreate(); self::DefineTags(); if ($Require == 'Title') { return Code::Charset(self::$Title); } if ($Require == 'Description') { return Code::Charset(self::$Description); } if ($Require == 'Hiperlink') { if ($label == true) { $Hiperlink = '<a href="' . Code::Charset(self::$Hiperlink) . '" class="' . $ClassCSS . '" target="' . $target . '" Title="' . Code::Charset(self::$Title) . '" >' . Code::Charset(self::$Hiperlink) . '</a>'; return $Hiperlink; } else { return Code::Charset(self::$Hiperlink); } } if ($Require == 'FileOrder') { return (int) self::$FileOrder; } if ($Require == 'CustomData') { return Code::Charset(self::$CustomData); } if ($Require == 'kb') { if (self::FileExist()) { $kb = filesize(self::$File) / 1024; $kb = (int) $kb; return '<span class="file-kb"><b>' . $kb . ' kb</b></span>'; } } }
public static function render($IDZone, $NameZone = '', $StyleClass = '') { $IDZone = static::FixZone($IDZone); if ($NameZone === '') { $NameZone = static::FixZone($IDZone); } else { $NameZone = static::FixZone($NameZone); } $isLogged = SKT_SECURE::action('validateAdmin'); $SKTDB = SKT_DB::connect(); $IDSections = \SKT_SECTION_ID; $editorCMS = 0; $editorcss = ""; $editorCMS_WrapBefore = ""; $editorCMS_WrapAfter = ""; $editorScript_WrapBefore = ""; $editorScript_WrapAfter = ""; $total_lock_mod = 0; $_SESSION_View_DesignCMS = 0; $IDZoneColect = $IDZone . '|' . $NameZone . ','; $IDZoneColectObj = \CmsDev\Content\ZoneColect::init(); $IDZoneColectObj->set($IDZoneColect); $DS = DIRECTORY_SEPARATOR; if ($isLogged === true) { $editorCMS_WrapBefore = '<div class="' . $editorcss . ' sktEditorContentWrapper"> <h3 class="EditorHeaderTitle ui-dialog-titlebar ui-widget-header ui-corner-all"> <span class="Title">[TitleZone]</span><div class="CmsDevIcon"><a href="javascript:void(0);"></a> <ul class=""> <li class="Delete" rel="[ID]" title="' . SKT_ADMIN_Btn_Delete . '"> <li class="Recycle" rel="[ID]" title="' . SKT_ADMIN_Btn_Recycle . '"></li> <li class="Property" rel="[ID]" title="' . SKT_ADMIN_Btn_Properties . '"></li> </li><li class="CmsDevEditCMS" rel="[ID]" title="' . SKT_ADMIN_Btn_Edit . '"></li> </ul> </div> </h3>'; $editorCMS_WrapAfter = '<div class="clear"></div></div>'; $editorScript_WrapBefore = '<div class="' . $editorcss . ' sktEditorContentWrapper"> <h3 class="EditorHeaderTitle ui-dialog-titlebar ui-widget-header ui-corner-all"> <span class="Title">[TitleZone]</span><div class="CmsDevIcon"><a href="javascript:void(0);"></a> <ul class=""> <li class="Delete" rel="[ID]" title="' . SKT_ADMIN_Btn_Delete . '"></li> <li class="Recycle" rel="[ID]" title="' . SKT_ADMIN_Btn_Recycle . '"></li> <li class="Property" rel="[ID]" title="' . SKT_ADMIN_Btn_Properties . '"></li> <li class="CmsDevEditScript" rel="[ID]" title="' . SKT_ADMIN_Btn_Edit . '"></li> </ul> </div> </h3>'; $editorScript_WrapAfter = '<div class="clear"></div></div>'; $editorCC_WrapBefore = '<div class="' . $editorcss . ' sktEditorContentWrapper"> <h3 class="EditorHeaderTitle ui-dialog-titlebar ui-widget-header ui-corner-all"> <span class="Title">[TitleZone]</span><div class="CmsDevIcon"><a href="javascript:void(0);"></a> <ul class=""> <li class="Delete" rel="[ID]" title="' . SKT_ADMIN_Btn_Delete . '"></li> <li class="Recycle" rel="[ID]" title="' . SKT_ADMIN_Btn_Recycle . '"></li> <li class="Property" rel="[ID]" title="' . SKT_ADMIN_Btn_Properties . '"></li> [FILES] [CUSTOMIZED] <li class="CmsDevEditCC" rel="[ID]" title="' . SKT_ADMIN_Btn_Edit . '"></li> </ul> <form action="" method="post" style="display:none;"> <input name="Action" id="Action" type="hidden" value="[Action]" /> <input name="ID" type="hidden" value="[ID]" /> <input name="IDZone" type="hidden" value="[IDZone]" /> <input name="CCFromTemplate" id="CCFromTemplate" type="hidden" value="[CCFromTemplate]" /> <textarea name="CustomProperty" id="CustomProperty" />[CustomProperty]</textarea> </form> </div> </h3>'; $editorCC_WrapAfter = '<div class="clear"></div></div>'; $editorNote_WrapBefore = '<div class="' . $editorcss . ' sktEditorContentWrapper"> <h3 class="EditorHeaderTitle ui-dialog-titlebar ui-widget-header ui-corner-all"> <span class="Title">[TitleZone]</span><div class="CmsDevIcon"><a href="javascript:void(0);"></a> <ul class=""> <li class="Delete" rel="[ID]" title="' . SKT_ADMIN_Btn_Delete . '"></li> <li class="Recycle" rel="[ID]" title="' . SKT_ADMIN_Btn_Recycle . '"></li> <li class="Property" rel="[ID]" title="' . SKT_ADMIN_Btn_Properties . '"></li> <li class="CmsDevEditNote" rel="[ID]" id="[ID]" title="' . SKT_ADMIN_Btn_Edit . '"></li> </ul> </div> </h3>'; $editorNote_WrapAfter = '<div class="clear"></div></div>'; $editorPhoto_WrapBefore = '<div class="' . $editorcss . ' sktEditorContentWrapper"> <h3 class="EditorHeaderTitle ui-dialog-titlebar ui-widget-header ui-corner-all"> <span class="Title">[TitleZone]</span><div class="CmsDevIcon"><a href="javascript:void(0);"></a> <ul class=""> <li class="Delete" rel="[ID]" title="' . SKT_ADMIN_Btn_Delete . '"></li> <li class="Recycle" rel="[ID]" title="' . SKT_ADMIN_Btn_Recycle . '"></li> <li class="Property" rel="[ID]" title="' . SKT_ADMIN_Btn_Properties . '"></li> <li class="CmsDevEditPhoto" rel="[ID]" id="[ID]" title="' . SKT_ADMIN_Btn_Edit . '"></li> </ul> </div> </h3>'; $editorPhoto_WrapAfter = '<div class="clear"></div></div>'; } if (isset($_POST['View_DesignCMS'])) { $_SESSION_View_DesignCMS = $_POST['View_DesignCMS']; $_SESSION['View_DesignCMS'] = $_SESSION_View_DesignCMS; } else { if (isset($_SESSION['View_DesignCMS'])) { $_SESSION_View_DesignCMS = $_SESSION['View_DesignCMS']; } else { $_SESSION_View_DesignCMS = 0; } } if ($isLogged === true) { $editorCMS = 1; $editorcss = " EditorContainer ui-corner-all EditorActive"; echo '<div class="ZoneContainer"><h4>' . $NameZone . '</h4></div>'; } $contentIDZoneCount = $SKTDB->get_var("SELECT count(*) FROM " . DB_PREFIX . "content WHERE (IDPage = '{$IDSections}' AND IDZone = '{$IDZone}') OR (IDZone = '{$IDZone}' AND AllPage = '1')"); if ($contentIDZoneCount >= 1) { $contentIDZone = $SKTDB->get_results("SELECT * FROM " . DB_PREFIX . "content WHERE (IDPage = '{$IDSections}' AND IDZone = '{$IDZone}') OR (IDZone = '{$IDZone}' AND AllPage = '1') ORDER BY Position ASC"); $query = $SKTDB->get_col_info($info_type = "name", $col_offset = -1); $cols = array(); foreach ($query as $name) { array_push($cols, $name); } foreach ($contentIDZone as $Zone) { if ($isLogged === true) { $DivWrapBefore = '<div id="E_' . $Zone->ID . '_' . $Zone->IDPage . '_' . $Zone->IDZone . '_' . $Zone->Date . '" rel="' . $Zone->Title . '" class="sktEditorContent ' . $StyleClass . ' ' . $Zone->css_class . '">'; if ($Zone->Type == 'html') { $editorSet = $editorCMS_WrapBefore; foreach ($cols as $col) { $editorSet = str_replace('[' . $col . ']', CS::Charset($Zone->{$col}), $editorSet); } $editorSet = str_replace("[TitleZone]", CS::Charset($Zone->Title), $editorSet); if ($Zone->RecycleBin == 1) { $editorSet = str_replace("EditorHeaderTitle", "EditorHeaderTitle SKTRecycled", $editorSet); $DivWrapBefore = str_replace("sktEditorContent ", "sktEditorContent SKTRecycled", $DivWrapBefore); } echo $editorSet . $DivWrapBefore; //$Zone->Content = str_replace("[[ZONA]]",LoadMod('CustomArea'.$Zone->ID.$Zone->IDZone),$Zone->Content); echo CS::Charset($Zone->Content); echo '</div>'; echo $editorCMS_WrapAfter; } if ($Zone->Type == 'Note') { $editorSet = $editorNote_WrapBefore; if ($Zone->CustomProperty != '') { if (\is_file(\SKTPATH_TemplateSite . $Zone->CustomProperty)) { $NoteTemplate = file_get_contents(\SKTPATH . $Zone->CustomProperty); } elseif (\is_file(\SKTPATH_TemplateSite . $DS . "SKT_Theme_Parts" . $DS . 'Notes' . $DS . $Zone->CustomProperty)) { $NoteTemplate = file_get_contents(\SKTPATH_TemplateSite . $DS . "SKT_Theme_Parts" . $DS . 'Notes' . $DS . $Zone->CustomProperty); } } if ($NoteTemplate != '') { $editorSet .= $NoteTemplate; } foreach ($cols as $col) { $editorSet = str_replace('[' . $col . ']', CS::Charset($Zone->{$col}), $editorSet); } $editorSet = str_replace("[TitleZone]", CS::Charset($Zone->Title), $editorSet); if ($Zone->RecycleBin == 1) { $editorSet = str_replace("EditorHeaderTitle", "EditorHeaderTitle SKTRecycled", $editorSet); $DivWrapBefore = str_replace("sktEditorContent ", "sktEditorContent SKTRecycled", $DivWrapBefore); } echo $editorSet . $DivWrapBefore; echo '</div>'; echo $editorNote_WrapAfter; } if ($Zone->Type == 'Photo') { $editorSet = $editorPhoto_WrapBefore; foreach ($cols as $col) { $editorSet = str_replace('[' . $col . ']', CS::Charset($Zone->{$col}), $editorSet); } $editorSet = str_replace("[TitleZone]", CS::Charset($Zone->Title), $editorSet); if ($Zone->RecycleBin == 1) { $editorSet = str_replace("EditorHeaderTitle", "EditorHeaderTitle SKTRecycled", $editorSet); $DivWrapBefore = str_replace("sktEditorContent ", "sktEditorContent SKTRecycled", $DivWrapBefore); } echo $editorSet . $DivWrapBefore; $fileprop = \SKTPATH_FileSystems . $Zone->CustomProperty; $file = str_replace("/SKTSize/", "", $fileprop); $file = str_replace("/", DIRECTORY_SEPARATOR, $file); $hiperlink = DataTag($file, 'hiperlink'); $title = DataTag($file, 'title'); $Description = DataTag($file, 'Description'); $urlSrc = $Zone->CustomProperty; $ThePhoto = ''; if ($hiperlink != '' && $hiperlink != 'null' && $hiperlink != 'undefined') { $ThePhoto .= '<a href="' . $hiperlink . '" title="' . $title . '" target="_blank">'; $ThePhoto .= '<img src="' . $urlSrc . '" alt="' . $title . '" class="img-responsive ' . $StyleClass . '"/><span class="hidden Description">' . $Description . '</span>'; $ThePhoto .= '</a>'; } else { $ThePhoto .= '<img src="' . $urlSrc . '" alt="' . $title . '" class="img-responsive ' . $StyleClass . '"/><span class="hidden Description">' . $Description . '</span>'; } if ($Description != '' && $Description != 'null' && $Description != 'undefined') { $ThePhoto = '<figure class="figureDescription">' . $ThePhoto . '</figure>'; } echo $ThePhoto; echo '</div>'; echo $editorPhoto_WrapAfter; } if ($Zone->Type == 'script') { $editorSet = $editorScript_WrapBefore; foreach ($cols as $col) { $editorSet = str_replace('[' . $col . ']', CS::Charset($Zone->{$col}), $editorSet); } $editorSet = str_replace("[TitleZone]", CS::Charset($Zone->Title), $editorSet); if ($Zone->RecycleBin == 1) { $editorSet = str_replace("EditorHeaderTitle", "EditorHeaderTitle SKTRecycled", $editorSet); $DivWrapBefore = str_replace("sktEditorContent ", "sktEditorContent SKTRecycled", $DivWrapBefore); } echo $editorSet . $DivWrapBefore; echo CS::Charset($Zone->Content); echo '</div>'; echo $editorScript_WrapAfter; } if ($Zone->Type == 'Anchor') { if ($Zone->RecycleBin == 1) { $editorScript_WrapBefore = str_replace("EditorHeaderTitle", "EditorHeaderTitle SKTRecycled", $editorScript_WrapBefore); } echo str_replace("[TitleZone]", CS::Charset($Zone->Title), $editorScript_WrapBefore) . $DivWrapBefore; echo '<a name="' . CS::Charset($Zone->Content) . '" id="' . CS::Charset($Zone->Content) . '"></a>'; echo '</div>'; echo $editorScript_WrapAfter; } if ($Zone->Type == 'SKT_Controls') { $editorCCBeforeok_find = array("[TitleZone]", "[Action]", "[CustomProperty]", "[ID]", "[IDZone]", "[CCFromTemplate]"); $editorCCBeforeok_replace = array(CS::Charset($Zone->Title), CS::Charset($Zone->Custom), CS::Charset($Zone->CustomProperty), $Zone->ID, $Zone->IDZone, $Zone->CCFromTemplate); $editorCCBeforeRep = str_replace("[TitleZone]", CS::Charset($Zone->Title), $editorCC_WrapBefore); $editorCCBeforeok = str_replace($editorCCBeforeok_find, $editorCCBeforeok_replace, $editorCCBeforeRep); if ($Zone->RecycleBin == 1) { $editorCCBeforeok = str_replace("EditorHeaderTitle", "EditorHeaderTitle SKTRecycled", $editorCCBeforeok); } $find = strstr($Zone->Custom, 'File_'); $FilesGoTo = '[FILES]'; if ($find == true) { $FilesGoTo = '<li class="CmsDevEditFiles" title="' . SKT_ADMIN_Btn_Edit . '"></li>'; $editorCCBeforeok = str_replace("CmsDevEditCC", "CmsDevEditCCF", $editorCCBeforeok); } $editorCCBeforeok = str_replace("[FILES]", $FilesGoTo, $editorCCBeforeok); // $find2 = strstr($Zone->Custom, 'Folder_'); $FilesGoTo = ''; if ($find2 == true) { $FilesGoTo = '<li class="CmsDevEditFiles" title="' . SKT_ADMIN_Btn_Edit . '"></li>'; $editorCCBeforeok = str_replace("CmsDevEditCC", "CmsDevEditCCF", $editorCCBeforeok); } $editorCCBeforeok = str_replace("[FILES]", $FilesGoTo, $editorCCBeforeok); // $find3 = strstr($Zone->Custom, 'Customized_'); $FilesGoTo = '[CUSTOMIZED]'; if ($find3 == true) { $FilesGoTo = '<li class="CmsDevEditCCCustomized" title="' . SKT_ADMIN_Btn_Edit . '"></li>'; //$editorCCBeforeok = str_replace("CmsDevEditCC","CmsDevEditCCCustomized",$editorCCBeforeok); $editorCCBeforeok = str_replace("[CUSTOMIZED]", $FilesGoTo, $editorCCBeforeok); } $editorCCBeforeok = str_replace("[CUSTOMIZED]", '', $editorCCBeforeok); // echo $editorCCBeforeok . '<div id="E_' . $Zone->ID . '_' . $Zone->IDPage . '_' . $Zone->IDZone . '_' . $Zone->Date . '" rel="' . $Zone->Title . '" class="SKT_Controls ' . $Zone->css_class . '" ><div class="CustomProperty">' . $Zone->CustomProperty . '</div>'; if ($Zone->CCFromTemplate == '') { if (\is_file(\SKTPATH . '/SKT_Controls/' . $Zone->Custom . '/Control.php') && SKT_TEMPLATE_ERROR === '') { include \SKTPATH . '/SKT_Controls/' . $Zone->Custom . '/Control.php'; } else { $MessageBox = \CmsDev\Info\Asistance::get(); $MessageBox->TipError('No se encuentra el control nativo en: ' . $Zone->Custom . '/Control.php', false); echo 'No se encuentra el control ' . $Zone->Custom; } } else { if (\is_file(\SKTPATH_TemplateSite . '/SKT_Controls/' . $Zone->Custom . '/Control.php') && SKT_TEMPLATE_ERROR === '') { include \SKTPATH_TemplateSite . '/SKT_Controls/' . $Zone->Custom . '/Control.php'; //echo "OKIDOKI"; } else { $MessageBox = \CmsDev\Info\Asistance::get(); $MessageBox->TipError('No se encuentra el control personalizado en: ' . $Zone->CCFromTemplate . $Zone->Custom . '/Control.php', false); echo 'No se encuentra el control personalizado ' . $Zone->Custom; } } echo '</div>'; echo $editorCC_WrapAfter; } } else { if ($Zone->RecycleBin == 0) { if ($Zone->Type == 'SKT_Controls') { if ($Zone->Title != '') { echo '<h3 class="TitleControl"><span>' . CS::Charset($Zone->Title) . '</span></h3>'; } echo '<div class="' . $StyleClass . ' SKT_Controls">'; if ($Zone->CCFromTemplate == '') { if (\is_file(\SKTPATH . '/SKT_Controls/' . 'SKT_Controls/' . $Zone->Custom . '/Control.php') && SKT_TEMPLATE_ERROR === '') { include \SKTPATH . 'SKT_Controls/' . 'SKT_Controls/' . $Zone->Custom . '/Control.php'; } else { $MessageBox = \CmsDev\Info\Asistance::get(); $MessageBox->TipError('No se encuentra el control nativo en: ' . $Zone->CCFromTemplate . $Zone->Custom . '/Control.php', false); echo 'No se encuentra el control ' . $Zone->Custom; } } else { if (\is_file(\SKTPATH_TemplateSite . 'SKT_Controls/' . $Zone->Custom . '/Control.php') && SKT_TEMPLATE_ERROR === '') { include \SKTPATH_TemplateSite . 'SKT_Controls/' . $Zone->Custom . '/Control.php'; } else { $MessageBox = \CmsDev\Info\Asistance::get(); $MessageBox->TipError('No se encuentra el control personalizado en: ' . \SKTPATH_TemplateSite . $Zone->Custom . '/Control.php', false); echo 'No se encuentra el control ' . $Zone->Custom; } } echo '</div>'; } elseif ($Zone->Type == 'Anchor') { echo '<h3 class="Anchor EditorHeaderTitle ui-dialog-titlebar ui-widget-header ui-corner-all"><a name="' . CS::Charset($Zone->Content) . '" id="' . CS::Charset($Zone->Content) . '"></a>' . CS::Charset($Zone->Title) . '<div class="ui-state-default ui-corner-all ScrollTop" onclick="javascript:$.scrollTo(\'#ScrollTop\',800);"><div class="ui-icon ui-icon-circle-arrow-n "></div></div></h3>'; } elseif ($Zone->Type == 'Note') { if ($Zone->CustomProperty != '') { $NoteTemplate = file_get_contents($Zone->CustomProperty); } $note_find = array("[Title]", "[Content]", "[Date]", "[Autor]", "[CssClass]"); $note_replace = array(CS::Charset($Zone->Title), CS::Charset($Zone->Content), $Zone->Date, CS::Charset($Zone->Autor), CS::Charset($Zone->css_class)); $note = str_replace($note_find, $note_replace, $NoteTemplate); echo $note; } elseif ($Zone->Type == 'Photo') { $file = \SKT_URL_BASE . '/' . $Zone->CustomProperty; $file = str_replace("//", "/", $file); $hiperlink = DataTag($file, 'hiperlink'); $title = DataTag($file, 'title'); $Description = DataTag($file, 'Description'); $ThePhoto = ''; if ($hiperlink != '' && $hiperlink != 'null' && $hiperlink != 'undefined') { $ThePhoto .= '<a href="' . $hiperlink . '" title="' . $title . '" target="_blank">'; $ThePhoto .= '<img src="' . $Zone->CustomProperty . '" alt="' . $title . '" class="img-responsive ' . $StyleClass . '"/><span class="hidden Description">' . $Description . '</span>'; $ThePhoto .= '</a>'; } else { $ThePhoto .= '<img src="' . $Zone->CustomProperty . '" alt="' . $title . '" class="img-responsive ' . $StyleClass . '"/><span class="hidden Description">' . $Description . '</span>'; } if ($Description != '' && $Description != 'null' && $Description != 'undefined') { $ThePhoto = '<figure class="figureDescription">' . $ThePhoto . '</figure>'; } echo $ThePhoto; } else { if ($Zone->Title != '') { echo '<h3 class="TitleControl"><span>' . CS::Charset($Zone->Title) . '</span></h3>'; } echo '<div class="sktEditorContent ' . CS::Charset($Zone->css_class) . '" rel="' . CS::Charset($Zone->Title) . '">' . CS::Charset($Zone->Content) . '</div>'; } } } } } else { } $Zone = ''; }
protected static function globalNav($parent, $menu, $URLNameParent, $Sections_Menu, $wrapUL) { $SKTDB = \CmsDev\Sql\db_Skt::connect(); $SectionValues = \CmsDev\Content\Section::get(); $Language = \THIS_LANG; $subSite = \SUBSITE; if ($subSite === '') { $subSite = '/'; } $html = ''; $Sections_MenuClassHidden = 'sktRecycleBinHidden'; $Class = $Sections_Menu['Class']; $set_Item_Template_Before = $Sections_Menu['set_Item_Template_Before']; $set_Item_Template_After = $Sections_Menu['set_Item_Template_After']; $CSS_Selected = $Sections_Menu['set_CSS_Selected']; $PrefixURL = $subSite; // . $Language . '/'; $LoggedInAdmin = \CmsDev\Security\loginIntent::action('validateAdmin'); if (!isset($parent)) { $parent = 0; } if (isset($menu['parents'][$parent])) { if ($wrapUL === true) { $html .= str_replace('[Class]', $Class, $Sections_Menu['Wrap_Before']) . ''; } foreach ($menu['parents'][$parent] as $itemId) { if (!isset($menu['parents'][$itemId])) { if ($SectionValues->ID == $menu['items'][$itemId]['ID']) { $active = $CSS_Selected; } else { $active = ''; } $Thisitem = $set_Item_Template_Before; if ($menu['items'][$itemId]['Link_ID'] != '') { $linkValues = $SKTDB->get_row("SELECT * FROM " . \DB_PREFIX . "links WHERE ID = '" . $menu['items'][$itemId]['Link_ID'] . "'"); if ($menu['items'][$itemId]['RecycleBin'] == 1) { $Thisitem = str_replace('[sktRecycleBinHidden]', $Sections_MenuClassHidden, $Thisitem); } else { $Thisitem = str_replace('[sktRecycleBinHidden]', '', $Thisitem); } if ($LoggedInAdmin == true) { $Thisitem = str_replace('</a>', '</a><a href="javascript:AppSKT.sktViewLinkItem(\'' . $PrefixURL . $URLNameParent . $menu['items'][$itemId]['URLName'] . '\',\'' . $menu['items'][$itemId]['Link_ID'] . '\');" class="sktViewLinkItem"><i class="skt-icon-edit"></i></a>', $Thisitem); } $Thisitem = str_replace('<span>[Name]</span>', '<span><span>[Name]</span></span>', $Thisitem); if ($linkValues) { $Thisitem = str_replace('[Name]', $linkValues->LinkTitle, $Thisitem); if ($menu['items'][$itemId]['LinkActive'] == 1) { if ($linkValues->LinkType == 'popup') { $Thisitem = str_replace('[URL]', self::PopUpMode($linkValues->Link, $linkValues->W, $linkValues->H, $linkValues->LinkTitle), $Thisitem); } $Thisitem = str_replace('[URL]', $linkValues->Link . '/', $Thisitem); $Thisitem = str_replace('_self', $linkValues->Target, $Thisitem); } else { $Thisitem = str_replace('[URL]', 'javascript:void(0);', $Thisitem); $Thisitem = str_replace('class="', 'class="CursorDefault', $Thisitem); } $Thisitem = str_replace('[CSS_Selected]', $linkValues->css_class . ' ' . $active, $Thisitem); //$Thisitem = str_replace(' href="',' rel="'.$PrefixURL.$URLNameParent.$menu['items'][$itemId]['URLName'].'" href="',$Thisitem); } else { $Thisitem = ''; } } else { if ($menu['items'][$itemId]['RecycleBin'] == 1) { $Thisitem = str_replace('[sktRecycleBinHidden]', $Sections_MenuClassHidden, $Thisitem); } else { $Thisitem = str_replace('[sktRecycleBinHidden]', '', $Thisitem); } $Thisitem = str_replace('<span>[Name]</span>', '<span><span>[Name]</span></span>', $Thisitem); $Thisitem = str_replace('[Name]', $menu['items'][$itemId]['Title'], $Thisitem); if ($menu['items'][$itemId]['LinkActive'] == 1) { $Thisitem = str_replace('[URL]', $PrefixURL . $URLNameParent . $menu['items'][$itemId]['URLName'] . '/', $Thisitem); } else { $Thisitem = str_replace('[URL]', 'javascript:void(0);', $Thisitem); $Thisitem = str_replace('class="', 'class="CursorDefault', $Thisitem); } $Thisitem = str_replace('[CSS_Selected]', $active, $Thisitem); } $Thisitem = str_replace('[CSS_WithArrow]', '', $Thisitem); $html .= $Thisitem . $set_Item_Template_After . " "; } if (isset($menu['parents'][$itemId])) { if ($SectionValues->ID == $menu['items'][$itemId]['ID']) { $active = $CSS_Selected; } else { $active = ''; } $Thisitem = $set_Item_Template_Before; if ($menu['items'][$itemId]['RecycleBin'] == 1) { $Thisitem = str_replace('[sktRecycleBinHidden]', $Sections_MenuClassHidden, $Thisitem); } else { $Thisitem = str_replace('[sktRecycleBinHidden]', '', $Thisitem); } $Thisitem = str_replace('[Name]', $menu['items'][$itemId]['Title'], $Thisitem); if ($menu['items'][$itemId]['LinkActive'] == 1) { $Thisitem = str_replace('[URL]', $PrefixURL . $URLNameParent . $menu['items'][$itemId]['URLName'] . '/', $Thisitem); } else { $Thisitem = str_replace('[URL]', 'javascript:void(0);', $Thisitem); $Thisitem = str_replace('class="', 'class="CursorDefault', $Thisitem); } $Thisitem = str_replace('[CSS_Selected]', $active, $Thisitem); $Thisitem = str_replace('[CSS_WithArrow]', 'with-arrow', $Thisitem); $html .= $Thisitem; //$html .= \CmsDev\Navegation\make::nav($Sections_Menu, $menu['items'][$itemId]['ID'], $menu['items'][$itemId]['URLName'].'/'); $html .= self::globalNav($itemId, $menu, $URLNameParent . $menu['items'][$itemId]['URLName'] . '/', $Sections_Menu, true); $html .= '<span class="arrow skt-icon-arrow"></span>'; $html .= $set_Item_Template_After . " "; } } if ($wrapUL === true) { $html .= $Sections_Menu['Wrap_After'] . ""; } } return \CmsDev\skt_Code::Charset($html); }
protected function globalNav() { $this->URLNameParent = ''; if (isset($this->menu['parents'][$this->ID])) { foreach ($this->menu['parents'][$this->ID] as $itemId) { $this->URLNameParent = ''; if (!isset($this->menu['parents'][$itemId])) { self::item($itemId, 1); } else { $this->wp = 1; $this->URLNameParent = ''; self::item($itemId, 2); self::ParentItem($itemId); $this->html .= $this->Sections_Menu['Nav_Sub_Items_Before']; foreach ($this->menu['parents'][$itemId] as $itemId) { if (!isset($this->menu['parents'][$itemId])) { self::item($itemId, 3); $this->URLNameParent = $this->URLNameParent . $this->menu['items'][$itemId]['URLName'] . '/'; } else { $this->wp = 1; self::item($itemId, 4); $this->URLNameParent = $this->URLNameParent . $this->menu['items'][$itemId]['URLName'] . '/'; $this->html .= $this->Sections_Menu['Nav_Sub_Items_Before']; foreach ($this->menu['parents'][$itemId] as $itemId) { if (!isset($this->menu['parents'][$itemId])) { self::item($itemId, 5); $this->URLNameParent = $this->URLNameParent . $this->menu['items'][$itemId]['URLName'] . '/'; } else { $this->wp = 1; self::item($itemId, 6); $this->URLNameParent = $this->URLNameParent . $this->menu['items'][$itemId]['URLName'] . '/'; $this->html .= $this->Sections_Menu['Nav_Sub_Items_Before']; foreach ($this->menu['parents'][$itemId] as $itemId) { if (!isset($this->menu['parents'][$itemId])) { self::item($itemId, 7); } else { $this->wp = 1; self::ParentItem($itemId); self::item($itemId, 8); $this->html .= $this->Sections_Menu['Nav_Sub_Items_Before']; foreach ($this->menu['parents'][$itemId] as $itemId) { if (!isset($this->menu['parents'][$itemId])) { self::item($itemId, 9); } else { $this->wp = 1; self::item($itemId, 10); $this->html .= $this->Sections_Menu['Nav_Sub_Items_Before']; foreach ($this->menu['parents'][$itemId] as $itemId) { self::ParentItem($itemId); self::item($itemId, 11); } $this->html .= $this->Sections_Menu['Nav_Sub_Items_After']; $this->html .= $this->Sections_Menu['Nav_Item_After']; $this->URLNameParent = ''; } } $this->html .= $this->Sections_Menu['Nav_Sub_Items_After']; $this->html .= $this->Sections_Menu['Nav_Item_After']; $this->URLNameParent = ''; } } $this->html .= $this->Sections_Menu['Nav_Sub_Items_After']; $this->html .= $this->Sections_Menu['Nav_Item_After']; $this->URLNameParent = ''; } } $this->html .= $this->Sections_Menu['Nav_Sub_Items_After']; $this->html .= $this->Sections_Menu['Nav_Item_After']; $this->URLNameParent = ''; } } $this->html .= $this->Sections_Menu['Nav_Sub_Items_After']; $this->html .= $this->Sections_Menu['Nav_Item_After']; $this->URLNameParent = ''; } } } return \CmsDev\skt_Code::Charset($this->html); }
public function Render($SocialRegister = false) { $SKT = \CmsDev\util\globals::getVar('SKT'); $TPL = \ltrim(\LOCAL_DIR . \SKTURL_TemplateSite . '/SKT_Theme_Parts/PersonMarkupUser.tpl'); $SKT_TPL = \ltrim(\SKT_SYS . '/SKT_Theme_Parts/PersonMarkupUser.tpl', '/'); $TPLCSS = \ltrim(\LOCAL_DIR . \SKTURL_TemplateSite . '/SKT_Theme_Parts/PersonMarkupUser.css'); $SKT_TPLCSS = \ltrim(\SKT_SYS . '/css/PersonMarkupUser.css', '/'); if (file_exists($TPL)) { $personMarkupTPL = \file_get_contents($TPL); } else { $personMarkupTPL = \file_get_contents($SKT_TPL); } if (file_exists($TPLCSS)) { $CSS = '<link rel="stylesheet" type="text/css" href="' . \SKTURL_TemplateSite . '/SKT_Theme_Parts/PersonMarkupUser.css" media="all"/>'; } else { $CSS = '<link rel="stylesheet" type="text/css" href="' . \SKT_SYS . '/css/PersonMarkupUser.css" media="all"/>'; } if ($SocialRegister == "SocialRegister") { $personMarkupTPL = '<a class="ConnectGoogle sktToolTip btn btn-danger" title="{GoogleLoginTitle}" href="{GoogleLoginLink}"><i class="skt-icon-google-plus"></i> {GoogleLoginText}</a>'; } $USER_EXIST = \CmsDev\Security\loginIntent::action('validateUser'); $Markup_Google = new \CmsDev\google\oauth(); $googleUser = $Markup_Google->GoogleUser(); if ($googleUser == true) { $USER_EXIST = true; } if ($USER_EXIST == true) { if ($SKT['Access']['GenericUser'] == 1) { $Build = $this->GenericUser(true, $personMarkupTPL); } if ($SKT['Access']['Google'] == 1) { $Build = $this->Google(true, $Build); } if ($SKT['Access']['Facebook'] == 1) { $Build = $this->Facebook(true, $Build); } $personMarkupTPL = $Build; if (!defined('TypeUser')) { define('TypeUser', 'Customers'); } if (\TypeUser == 'Customers') { $personMarkupTPL = \SKTremoveTags('sktSell', $personMarkupTPL); $personMarkupTPL = \SKTremoveTags('sktUserOptions', $personMarkupTPL); } else { $personMarkupTPL = \SKTremoveTags('sktUserOptionsCustomer', $personMarkupTPL); } $personMarkupTPL = \str_replace('{InitSessionBotton}', $SKT['TXT_Hi'] . $_SESSION['UserName'], $personMarkupTPL); $personMarkupTPL = \str_replace('{Avatar}', \SKTServerURL . 'SKTSize/avatar.png?30', $personMarkupTPL); $personMarkupTPL = \SKTreplaceTags('sktgenericuseraccess', '', $personMarkupTPL, 1, 0); $personMarkupTPL = \SKTreplaceTags('sktfacebookaccess', '', $personMarkupTPL, 1, 0); $personMarkupTPL = \SKTreplaceTags('sktgoogleaccess', '', $personMarkupTPL, 1, 0); $personMarkupTPL = \SKTreplaceTags('sktAvatar', '', $personMarkupTPL, 1, 0); $personMarkupTPL = \SKTreplaceTags('sktUserOptions', '', $personMarkupTPL, 1, 0); $personMarkupTPL = \SKTreplaceTags('sktUserOptionsCustomer', '', $personMarkupTPL, 1, 0); $personMarkupTPL = \SKTreplaceTags('sktSell', '', $personMarkupTPL, 1, 0); $personMarkupTPL = \SKTremoveTags('sktloginoptions', $personMarkupTPL); return $CSS . $personMarkupTPL; } else { $personMarkupTPL = SKTremoveTags('sktUserOptions', $personMarkupTPL); $personMarkupTPL = \SKTreplaceTags('sktavataranon', '', $personMarkupTPL, 1, 0); $personMarkupTPL = \SKTreplaceTags('sktloginoptions', '', $personMarkupTPL, 1, 0); $personMarkupTPL = \SKTreplaceTags('sktgenericuseraccess', '', $personMarkupTPL, 1, 0); $personMarkupTPL = \SKTreplaceTags('sktfacebookaccess', '', $personMarkupTPL, 1, 0); $personMarkupTPL = \SKTreplaceTags('sktgoogleaccess', '', $personMarkupTPL, 1, 0); $personMarkupTPL = SKTremoveTags('sktAvatar', $personMarkupTPL); $personMarkupTPL = \str_replace('{InitSessionBotton}', $SKT['TXT_Hi'] . $SKT['TXT_anonymous'], $personMarkupTPL); $personMarkupTPL = \str_replace('{Avatar}', \SKTServerURL . 'SKTSize/avatar.png?30', $personMarkupTPL); if ($SKT['Access']['Google'] == 1) { $Build = $this->Google(false, $Build); } elseif ($SKT['Access']['Facebook'] == 1) { $Build = $this->Facebook(false, $Build); } elseif ($SKT['Access']['GenericUser'] == 1) { $Build = $this->GenericUser(false, $personMarkupTPL); } else { } $personMarkupTPL = \SKTreplaceTags('sktloginoptions', $this->Markup_GenericUser . $this->Markup_Google . $this->Markup_Facebook, $personMarkupTPL, 1, 0); $personMarkupTPL = $Build; echo $CSS . \CmsDev\skt_Code::Charset($personMarkupTPL); } }