Linkliste Contentliste 1.1 1 1066927900 1085515677 1 Für eine nicht limitierte Anzahl von Links und Linkbeschreibungen <?PHP //configmode $mip_form['13']['desc'] = 'Konfigurationsmodus'; $mip_form['13']['cat'] = 'option'; $mip_form['13']['size'] = '1'; $mip_form['13']['option_desc'][] = 'Normal'; $mip_form['13']['option_val'][] = ''; $mip_form['13']['option_desc'][] = 'Erweitert'; $mip_form['13']['option_val'][] = 'advanced'; $mip_form['13']['option_desc'][] = 'Ausgeblendet'; $mip_form['13']['option_val'][] = 'hidden'; $mip_form['13']['cms_var'] = 'MOD_VAR[13]'; $mip_form['13']['cms_val'] = $dedi_mod['value']['13']; $mip_form['13']['flag'] = 'reload'; mip_formsp($mip_form['13']);//configmode $mip_form['hide_in_standard_mode'] = array(0,2,4); //hidden config if($dedi_mod['value']['13'] == 'hidden'){ foreach($dedi_mod['value'] AS $ke=>$va){ if($ke != '13'){ ?> <input name="MOD_VAR[<?php echo $ke; ?>]" type="hidden" value="<?php echo htmlentities($va);?>"> <?php } } } //simple and advanced config else if($dedi_mod['value']['13'] == '' || $dedi_mod['value']['13'] == 'advanced'){ //Formularname Link $mip_form['0']['cat'] = 'txt'; $mip_form['0']['type'] = ''; $mip_form['0']['desc'] = 'Formularfeldname Link'; $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; $mip_form['0']['cms_val_default'] = 'Bitte geben Sie einen Link ein'; $mip_form['0']['tab'] = '0'; //Style Link $mip_form['1']['desc'] = 'Stylesheet Link'; $mip_form['1']['cat'] = 'app_css'; $mip_form['1']['output_cat'] = 'option'; $mip_form['1']['cms_var'] = 'MOD_VAR[1]'; $mip_form['1']['cms_val'] = $dedi_mod['value']['1']; $mip_form['1']['flag'] = 'class_only'; //Formularname Linkbeschreibung $mip_form['2']['cat'] = 'txt'; $mip_form['2']['type'] = ''; $mip_form['2']['desc'] = 'Formularfeldname Linkbeschreibung'; $mip_form['2']['cms_var'] = 'MOD_VAR[2]'; $mip_form['2']['cms_val'] = $dedi_mod['value']['2']; $mip_form['2']['cms_val_default'] = 'Linkbeschreibung'; $mip_form['2']['tab'] = '0'; //Style Linkbeschreibung $mip_form['3']['desc'] = 'Stylesheet Linkbeschreibung'; $mip_form['3']['cat'] = 'app_css'; $mip_form['3']['output_cat'] = 'option'; $mip_form['3']['cms_var'] = 'MOD_VAR[3]'; $mip_form['3']['cms_val'] = $dedi_mod['value']['3']; $mip_form['3']['flag'] = 'class_only'; //Name des Layermenus $mip_form['4']['cat'] = 'txt'; $mip_form['4']['type'] = ''; $mip_form['4']['desc'] = 'Menüname'; $mip_form['4']['cms_var'] = 'MOD_VAR[4]'; $mip_form['4']['cms_val'] = $dedi_mod['value']['4']; $mip_form['4']['cms_val_default'] = 'Linklisteneintrag'; $mip_form['4']['tab'] = '0'; // Template $mip_form['5']['desc'] = 'Template<small>Mögliche Templatevariablen: {link}, {desc}, {editbutton}</small>'; $mip_form['5']['cat'] = 'txtarea'; $mip_form['5']['rows'] = '6'; $mip_form['5']['type'] = 'long'; $mip_form['5']['cms_var'] = 'MOD_VAR[5]'; $mip_form['5']['cms_val'] = $dedi_mod['value']['5']; $mip_form['5']['cms_val_default'] = '<table width="100%" align="center" border="0" cellspacing="1" cellpadding="2" bgcolor="#BBC2CE" > <tr height="20"> <td bgcolor="#E5E8EB" valign="middle" > {editbutton}{link} </td> </tr> <tr height="40" valign="top"> <td bgcolor="#FFFFFF" > {desc} </td> </tr> </table> <br>'; //if simple mode if($dedi_mod['value']['13'] == ''){ foreach ($mip_form['hide_in_standard_mode'] AS $ke=>$va){ $mip_form[$va]['cat'] = 'hidden'; } } mip_formsp($mip_form['4']); mip_formsp($mip_form['0']); mip_formsp($mip_form['2']); mip_formsp($mip_form['1']); mip_formsp($mip_form['3']); mip_formsp($mip_form['5']); } unset($mip_form); ?> <DEDIPHP:CACHE> $myList['link'] = <dedi:mod type="link" id="1" menuoptions="false" title="MOD_VALUE[0]" styleclass="MOD_VALUE[1]" addslashes="true" />; $myList['desc'] = <dedi:mod type="textarea" id="1" menuoptions="false" title="MOD_VALUE[2]" styleclass="MOD_VALUE[3]" addslashes="true" />; $myList['editbutton'] = <dedi:mod type="typegroup" elements="link[1],textarea[1]" menuoptions="advanced" title="MOD_VALUE[4]" addslashes="true" />; $myTplVars['link'] = '{link}'; $myTplVars['desc'] = '{desc}'; $myTplVars['editbutton'] = '{editbutton}'; $myTpl = "MOD_VALUE[5]"; $myTpl = str_replace($myTplVars, $myList, $myTpl); eval('?>'.$myTpl); unset($myTpl, $myTplVars, $myList); </DEDIPHP:CACHE> mod:99663ed64b93be0047d7fedfdc8f0efe:54b1bbd5