2018-02-13 19:03:57 +00:00
INSERT INTO ! PREFIX ! _mod VALUES ( ' 1 ' , ' 1 ' , ' CL Main Navi ' , ' Navigation ' , ' none ' , ' ' , ' 0 ' , ' ?><?php\n\n?><?php ' , ' <?php\r\n\r\n/**\r\n * Modul-Output: ConLite Main Navigation\r\n * \r\n * @package ConLite\r\n * @subpackage Module\r\n * @version $Rev$\r\n * @author Ortwin Pinke <ortwin.pinke@conlite.org>\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 .= '' <ul class="srt-menu" id="menu-main-navigation"> '' ;\r\n } else {\r\n $sNavList .= '' <ul> '' ;\r\n }\r\n foreach ($aNavArray as $aNavEntry) {\r\n if (in_array($aNavEntry[ '' idcat '' ], $aBreadcrumb)) {\r\n $sNavList .= '' <li class="current"> '' ;\r\n } else {\r\n $sNavList .= '' <li> '' ;\r\n }\r\n $sNavList .= '' <a href="#"> '' . $aNavEntry[ '' name '' ] . '' </a> '' ;\r\n if (!empty($aNavEntry[ '' subnav '' ])) {\r\n $sNavList .= clBuildNavList($aNavEntry[ '' subnav '' ], $aBreadcrumb, $iLevel + 1);\r\n }\r\n $sNavList .= '' </li> '' ;\r\n }\r\n // add user login\r\n if ($iLevel == 0 && $bWithFeLogin) {\r\n $sLoginForm = "";\r\n $oTpl = new Template();\r\n if ($auth->auth["uid"] == "nobody") {\r\n $sTargetIdcat = getEffectiveSetting( '' login '' , '' idcat '' , cRegistry::getCategoryId());\r\n $sTargetIdart = getEffectiveSetting( '' login '' , '' idart '' , cRegistry::getArticleId());\r\n $sFormAction = '' front_content.php?idcat= '' . $sTargetIdcat . '' &idart= '' . $sTargetIdart;\r\n\r\n $oTpl->set( '' s '' , '' headline '' , mi18n("Geschlossener Bereich Login"));\r\n $oTpl->set( '' s '' , '' form_action '' , $sFormAction);\r\n $oTpl->set( '' s '' , '' label_name '' , mi18n("user"));\r\n $oTpl->set( '' s '' , '' label_pass '' , mi18n("pass"));\r\n $oTpl->set( '' s '' , '' label_login '' , mi18n("send"));\r\n $sLoginForm .= $oTpl->generate( '' cl_login_form.html '' , TRUE);\r\n } else {\r\n
INSERT INTO ! PREFIX ! _mod VALUES ( ' 4 ' , ' 1 ' , ' CL Flex Slider ' , ' media ' , ' none ' , ' ' , ' 0 ' , ' ?><?php\n cInclude("frontend", "includes/class.input.helper.php");\n \n $aModCfg = array(\n '' folder '' => "CMS_VALUE[0]",\n \n );\n \n $aCfgClient = cRegistry::getClientConfig(cRegistry::getClientId());\n $path = realpath($aCfgClient[ '' upl '' ][ '' path '' ]);\n $aFolders = array();\n $aFolders[] = mi18n("-- Select Folder --");\n $objects = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path), RecursiveIteratorIterator::SELF_FIRST);\n foreach($objects as $name=>$object) {\n if(is_dir($name)) {\n if(in_array(basename($name), array( '' . '' , '' .. '' ))) {\n continue;\n }\n $folder = str_replace($path.DIRECTORY_SEPARATOR, "", $name);\n $aFolders[$folder] = $folder;\n }\n }\n asort($aFolders);\n //print_r($aFolders);\n \n $oFolderSelect = new cHTMLSelectElement("CMS_VAR[0]");\n $oFolderSelect->autoFill($aFolders);\n $oFolderSelect->setDefault($aModCfg[ '' folder '' ]);\n \n $oCfgTable = new UI_Config_Table();\n \n $oCfgTable->setCell(0, 0, mi18n("Select Image Folder"));\n $oCfgTable->setCell(0, 1, $oFolderSelect->render());\n \n $oCfgTable->render(true);\n ?><?php ' , ' <?php\n$aOptionsSet = array(\n '' folder '' => "CMS_VALUE[0]",\n '' show_caption '' => "CMS_VALUE[10]",\n '' img_width '' => "CMS_VALUE[20]",\n '' img_height '' => "CMS_VALUE[21]",\n '' thumb_width '' => "CMS_VALUE[30]",\n '' thumb_height '' => "CMS_VALUE[31]",\n);\n\n$aOptionsSet[ '' show_caption '' ] = ($aOptionsSet[ '' show_caption '' ] == '' true '' )?TRUE:FALSE;\n\n$aDefaultArray = array( \n '' img_width '' => "500",\n '' img_height '' => "300",\n '' img_quality '' => 30,\n '' thumb_width '' => "50",\n '' thumb_height '' => "50",\n);\n\n$aModCfg = array_merge($aOptionsSet, $aDefaultArray);\n\nif (!empty($aModCfg[ '' folder '' ])) {\n $oUplColl = new cApiUploadCollection();\n $oUplColl->setWhere( '' dirname '' , $aModCfg[ '' folder '' ], '' like '' );\n $oUplColl->link( '' cApiUploadMetaCollection '' );\n $oUplColl->query();\n\n $aItems = array();\n /* @var $oUpl cApiUpload */\n while ($oUpl = $oUplColl->next()) {\n $aItems[] = $oUpl->toArray();\n }\n\n $oTpl = new Template();\n\n if (count($aItems) > 0) {\n $aClientCfg = cRegistry::getClientConfig(cRegistry::getClientId());\n\n foreach ($aItems as $iKey => $aItem) {\n $sOrgImgPath = $aClientCfg[ '' upl '' ][ '' frontendpath '' ] . $aItem[ '' dirname '' ] . $aItem[ '' filename '' ];\n if (file_exists($sOrgImgPath)) {\n // generate thumb\n $sThumbPath = capiImgScale($sOrgImgPath, $aModCfg[ '' thumb_width '' ], $aModCfg[ '' thumb_height '' ]);\n // generate scaled image with heigh quality\n $sImgPath = capiImgScale($sOrgImgPath, $aModCfg[ '' img_width '' ], $aModCfg[ '' img_height '' ], NULL, NULL, 0, TRUE, $aModCfg[ '' img_quality '' ]);\n\n $oTpl->set( '' d '' , '' IMG_THUMB '' , $sThumbPath);\n $oTpl->set( '' d '' , '' IMG '' , $sImgPath);\n if($aOptionsSet[ '' show_caption '' ]) {\n $oTpl->set( '' d '' , '' IMG_CAPTION '' , $aItem[ '' description '' ]);\n } else {\n $oTpl->set( '' d '' , '' IMG_CAPTION '' , '' '' );\n }\n $oTpl->next();\n }\n }\n $oTpl->generate("cl_flex_slider.html");\n }\n/*\n echo '' <pre> '' ;\n print_r($aModCfg);\n print_r($aItems);\n print_r($aClientCfg);\n echo '' </pre> '' ;\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 ' , ' ?><?php\n\n?><?php ' , ' <?php\n$aButtons = array(\n '' forum '' => 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 ' , ' ?><?php\n\n?><?php ' , ' <?php\n/**\n * Modul-Output: ConLite Headline\n * \n * @package ConLite\n * @subpackage Module\n * @version $Rev$\n * @author Ortwin Pinke <ortwin.pinke@conlite.org>\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 ' , ' ?><?php\n\n?><?php ' , ' <?php\n/**\n * Modul-Output: ConLite SubHeadline\n * \n * @package ConLite\n * @subpackage Module\n * @version $Rev$\n * @author Ortwin Pinke <ortwin.pinke@conlite.org>\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 ' , ' ?><?php\n\n?><?php ' , ' <?php\n/**\n * Modul-Output: ConLite Text\n * \n * @package ConLite\n * @subpackage Module\n * @version $Rev$\n * @author Ortwin Pinke <ortwin.pinke@conlite.org>\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 ' , ' ?><?php\n\n?><?php ' , ' <?php\n/**\n * Modul-Output: ConLite Cookie Directive\n * \n * @package ConLite\n * @subpackage Module\n * @version $Rev$\n * @author Ortwin Pinke <ortwin.pinke@conlite.org>\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<script type="text/javascript">\n window.onload = function () {\n console.log($.fn.jquery);\n\n /* Cookies Directive - The rewrite. Now a jQuery plugin\n * Version: 2.0.1\n * Author: Ollie Phillips\n * 24 October 2013\n */\n\n ;\n (function ($) {\n $.cookiesDirective = function (options) {\n\n // Default Cookies Directive Settings\n var settings = $.extend({\n //Options\n explicitConsent: true,\n position: '' top '' ,\n duration: 10,\n limit: 0,\n message: null,\n cookieScripts: null,\n privacyPolicyUri: '' privacy.html '' ,\n inlineAction: false,\n scriptWrapper: function () {},\n // Styling\n fontFamily: '' helvetica '' ,\n fontColor: '' #FFFFFF '' ,\n fontSize: '' 13px '' ,\n backgroundColor: '' #000000 '' ,\n backgroundOpacity: '' 80 '' ,\n linkColor: '' #CA0000 '' ,\n // Messages\n multipleCookieScriptBeginningLabel: '' We use '' ,\n and: '' and '' ,\n multipleCookieScriptEndLabel: '' scripts, which all set cookies. '' ,\n singleCookieScriptBeginningLabel: '' We use a '' ,\n singleCookieScriptEndLabel: '' script which sets cookies. '' ,\n explicitCookieDeletionWarning: '' You may delete and block all cookies from this site, but parts of the site will not work. '' ,\n explicitFindOutMore: '' To find out more about cookies on this website, see our '' ,\n privacyPolicyLinkText: '' privacy policy '' ,\n explicitCheckboxLabel: '' You must tick the "I accept cookies from this site" box to accept '' ,\n explicitCookieAcceptanceLabel: '' I accept c
2019-07-07 18:14:22 +00:00
INSERT INTO ! PREFIX ! _mod VALUES ( ' 13 ' , ' 1 ' , ' CL Social Media Links ' , ' navigation ' , ' none ' , ' ' , ' 0 ' , ' ?><?php\n\n?><?php ' , ' <?php\n/**\n * Modul-Output: ConLite Social Media Links\n * \n * @package ConLite\n * @subpackage Module\n * @version $Rev$\n * @author Ortwin Pinke <ortwin.pinke@conlite.org>\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 ' ) ;