INSERT INTO !PREFIX!_mod VALUES('1', '1', 'CL Main Navi', 'Navigation', 'none', '', '0', '?>\r\n * @license http://www.gnu.de/documents/gpl.de.html GPL v3\r\n * @link http://conlite.org ConLite Portal\r\n * \r\n * \r\n * $Id$\r\n */\r\ndefined("CON_FRAMEWORK") || die(''Illegal call: Missing framework initialization - request aborted.'');\r\n$oTpl = new Template();\r\n$oTpl->reset();\r\ncInclude(''frontend'', ''includes/Util/Modules/Contenido_NavMain_Util.class.php'');\r\n\r\n$iStartIdcat = getEffectiveSetting(''navigation'', ''idcat-home'', 1);\r\n$iSelectedDepth = getEffectiveSetting(''navigation'', ''level-depth'', 3);\r\n$bWithFeLogin = boolval(getEffectiveSetting(''navigation'', ''with-fe-login'', FALSE));\r\n\r\nfunction clBuildNavArray(Contenido_FrontendNavigation &$oNav, $iStartIdcat) {\r\n $aNavArray = array();\r\n $aCategories = $oNav->getSubCategories($iStartIdcat, false, true, 1);\r\n $oCatLangCol = new cApiCategoryLanguageCollection();\r\n\r\n if (count($aCategories) > 0) {\r\n $i = 0;\r\n foreach ($aCategories as $iCategory) {\r\n $oNav->setRootCat($iCategory);\r\n $aNavArray[$i][''idcat''] = $iCategory;\r\n // get catname\r\n /* @var $oCatLang cApiCategoryLanguage */\r\n $oCatLangCol->setWhere(''idcat'', $iCategory);\r\n $oCatLangCol->setWhere(''idlang'', cRegistry::getLanguageId());\r\n $oCatLangCol->query();\r\n $oCatLang = $oCatLangCol->next();\r\n //print_r($oCatLang);\r\n if ($oCatLang->isLoaded()) {\r\n $aNavArray[$i][''name''] = $oCatLang->getField(''name'');\r\n $aNavArray[$i][''urlname''] = $oCatLang->getField(''urlname'');\r\n }\r\n\r\n $aNavArray[$i][''subnav''] = clBuildNavArray($oNav, $iCategory);\r\n $i++;\r\n }\r\n }\r\n\r\n unset($oCatLangCol);\r\n return $aNavArray;\r\n}\r\n\r\nfunction clBuildNavList($aNavArray, $aBreadcrumb, $iLevel = 0) {\r\n global $auth, $bWithFeLogin;\r\n $sNavList = '''';\r\n if (is_array($aNavArray) && !empty($aNavArray)) {\r\n if ($iLevel == 0) {\r\n $sNavList .= ''
'';\n print_r($aModCfg);\n print_r($aItems);\n print_r($aClientCfg);\n echo '''';\n * \n */\n}\n?>', '', '0', '', '', '48a365b4ce1e322a55ae9017f3daf0c0', '2016-05-23 14:42:01', '2017-08-11 12:41:45'); INSERT INTO !PREFIX!_mod VALUES('5', '1', 'CL Portal Buttons', 'navigation', 'none', '', '0', '?> array(\n ''href'' => ''http://forum.conlite.org'',\n ''label''=> mi18n("CL-User-Forum")\n ),\n ''faq'' => array(\n ''href'' => ''http://faq.conlite.org'',\n ''label''=> mi18n("CL-FAQ")\n ),\n ''bugtracker'' => array(\n ''href'' => ''http://dev.conlite.org/tickets'',\n ''label''=> mi18n("CL-Bugtracker")\n )\n);\n\n$oLink = new cHTMLLink();\n$oLink->setClass("buttonlink");\n\nforeach($aButtons as $aButton) {\n $oLink->setAttribute(''title'', mi18n("to")." ".$aButton[''label'']);\n $oLink->setLink($aButton[''href'']);\n $oLink->setContent($aButton[''label'']);\n echo $oLink->render();\n $oLink->advanceID();\n}\nunset($oLink);\n?>', '', '0', '', '', '48a365b4ce1e322a55ae9017f3daf0c0', '2016-05-23 14:55:40', '2017-08-11 12:41:45'); INSERT INTO !PREFIX!_mod VALUES('6', '1', 'CL Headline', 'content', 'none', '', '0', '?>\n * @license http://www.gnu.de/documents/gpl.de.html GPL v3\n * @link http://conlite.org ConLite Portal\n * \n * \n * $Id$\n */\nif (!isset($oTpl) || !is_object($oTpl)) {\n $oTpl = new Template();\n}\n\n$sText = "CMS_HTMLHEAD[1]";\n$sTemplate = "headline_h1.html";\n\n$oTpl->reset();\nif (cRegistry::isBackendEditMode()) {\n $oTpl->set(''s'', ''HEADLINE'', $sText);\n $oTpl->generate($sTemplate);\n} else {\n if(!empty($sText)) {\n $oTpl->set(''s'', ''HEADLINE'', strip_tags($sText));\n $oTpl->generate($sTemplate);\n }\n}\n?>', '', '0', '', '', '48a365b4ce1e322a55ae9017f3daf0c0', '2016-05-23 15:01:13', '2017-08-11 12:41:45'); INSERT INTO !PREFIX!_mod VALUES('7', '1', 'CL Subheadline', 'content', 'none', '', '0', '?>\n * @license http://www.gnu.de/documents/gpl.de.html GPL v3\n * @link http://conlite.org ConLite Portal\n * \n * \n * $Id$\n */\nif (!isset($oTpl) || !is_object($oTpl)) {\n $oTpl = new Template();\n}\n\n$sText = "CMS_HTMLHEAD[2]";\n$sTemplate = "subheadline_h2.html";\n\n$oTpl->reset();\nif (cRegistry::isBackendEditMode()) {\n $oTpl->set(''s'', ''SUBHEADLINE'', $sText);\n $oTpl->generate($sTemplate);\n} else {\n if(!empty($sText)) {\n $oTpl->set(''s'', ''SUBHEADLINE'', strip_tags($sText));\n $oTpl->generate($sTemplate);\n }\n}\n?>', '', '0', '', '', '48a365b4ce1e322a55ae9017f3daf0c0', '2016-05-23 15:01:51', '2017-08-11 12:41:45'); INSERT INTO !PREFIX!_mod VALUES('11', '1', 'CL HTML Text', 'content', 'none', '', '0', '?>\n * @license http://www.gnu.de/documents/gpl.de.html GPL v3\n * @link http://conlite.org ConLite Portal\n * \n * \n * $Id$\n */\nif (!isset($oTpl) || !is_object($oTpl)) {\n $oTpl = new Template();\n}\n\n$oTpl->reset();\n$oTpl->set(''s'', ''text'', "CMS_HTML[1]");\n$oTpl->generate(''text_html.html'');\n?>', '', '0', '', '', '48a365b4ce1e322a55ae9017f3daf0c0', '2016-05-23 15:29:56', '2017-08-11 12:41:45'); INSERT INTO !PREFIX!_mod VALUES('12', '1', 'CL Cookie Directive', 'navigation', 'none', '', '0', '?>\n * @license http://www.gnu.de/documents/gpl.de.html GPL v3\n * @link http://conlite.org ConLite Portal\n * \n * \n * $Id$\n */\n\ndefined("CON_FRAMEWORK") || die(''Illegal call: Missing framework initialization - request aborted.'');\n\n$aCfgMod = array(\n ''debug'' => FALSE\n);\n\n$aCookieOpt = array(\n ''explicitConsent'' => ''false'',\n ''position'' => ''top'',\n ''message'' => mi18n("This site uses cookies. Some of the cookies we use are essential for parts of the site to operate and have already been set."),\n ''message'' => mi18n("We have placed cookies on your computer to help make this website better."),\n// Messages\n ''multipleCookieScriptBeginningLabel'' => mi18n("We use"),\n ''and'' => '' ''.mi18n("and").'' '',\n ''multipleCookieScriptEndLabel'' => '' ''.mi18n("scripts, which all set cookies.").'' '',\n ''singleCookieScriptBeginningLabel'' => ''!!! ''.mi18n("We use a").'' '',\n ''singleCookieScriptEndLabel'' => '' ''.mi18n("script which sets cookies."),\n ''explicitCookieDeletionWarning'' => mi18n("You may delete and block all cookies from this site, but parts of the site will not work."),\n ''explicitFindOutMore'' => mi18n("To find out more about cookies on this website, see our"),\n ''privacyPolicyLinkText'' => '' ''.mi18n("privacy policy"),\n ''explicitCheckboxLabel'' => mi18n("You must tick the \\"I accept cookies from this site\\" box to accept"),\n ''explicitCookieAcceptanceLabel'' => mi18n("I accept cookies from this site"),\n ''explicitCookieAcceptButtonText'' => mi18n("Continue"),\n ''impliedDisclosureText'' => '' ''.mi18n("More details can be found in our"),\n ''impliedSubmitText'' => mi18n("Do not show this message again")\n);\n?>\n', '', '0', '', '', '48a365b4ce1e322a55ae9017f3daf0c0', '2016-07-18 15:20:44', '2017-08-11 12:41:45'); INSERT INTO !PREFIX!_mod VALUES('13', '1', 'CL Social Media Links', 'navigation', 'none', '', '0', '?>\n * @license http://www.gnu.de/documents/gpl.de.html GPL v3\n * @link http://conlite.org ConLite Portal\n * \n * \n * $Id$\n */\n\ndefined("CON_FRAMEWORK") || die(''Illegal call: Missing framework initialization - request aborted.'');\n\n$aCfgMod = array(\n ''debug'' => FALSE\n);\n\n$aSupportedSocialNets = array(\n ''xing'',\n ''twitter'',\n ''google-plus'',\n ''pinterest'',\n ''youtube'',\n ''flickr'',\n ''rss'',\n ''vimeo'',\n ''dribble'',\n ''linkedin''\n);\n\n$aLinks = array(\n ''twitter'' => array(\n ''href'' => ''https://twitter.com/conlite_cms'',\n ''label'' => mi18n("Meet us on Twitter")\n ),\n ''xing'' => array(\n ''href'' => ''https://www.xing.com/communities/groups/conlite-the-lightweight-and-userfriendly-cms-cec9-1045289'',\n ''label'' => mi18n("Link in Modul-Output")\n )\n);\n\n$aUserLinks = getEffectiveSettingsByType("social-media-links");\n$aUserLinksArray = array();\nif (count($aUserLinks) > 0) {\n foreach ($aUserLinks as $key => $value) {\n $sKey = strtolower(trim($key));\n if (in_array($sKey, $aSupportedSocialNets)) {\n $aValues = explode("::", $value);\n $sLabel = (isset($aValues[1]) && !empty($aValues[1])) ? $aValues[1] : "";\n $aUserLinksArray[$sKey] = array(\n ''href'' => $aValues[0],\n ''label'' => $sLabel\n );\n }\n }\n}\n\n$aLinks = array_merge($aLinks, $aUserLinksArray);\n\n$oTpl = new Template();\n\nforeach ($aLinks as $sName => $aEntry) {\n $oTpl->set(''d'', ''SM_CSS_WHAT'', $sName);\n $oTpl->set(''d'', ''SM_HREF'', $aEntry[''href'']);\n $oTpl->set(''d'', ''SM_LABEL'', $aEntry[''label'']);\n $oTpl->next();\n}\n\n$oTpl->generate("cl_social_media_links.html");\n?>', '', '0', '', '', '48a365b4ce1e322a55ae9017f3daf0c0', '2016-07-19 12:54:20', '2017-08-11 12:41:45');