WYSIWYG Content 1.0 1 1066927900 1085515788 1 WYSIWYG-Editor zum bearbeiten von Text / HTML. <?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); //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 $mip_form['0']['cat'] = 'txt'; $mip_form['0']['type'] = ''; $mip_form['0']['desc'] = 'Formularfeldname'; $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; $mip_form['0']['cms_val_default'] = 'WYSIWYG'; $mip_form['0']['tab'] = '0'; //Style $mip_form['1']['desc'] = $mod_lang['gen_font']; $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'; //Erweitertes Bearbeitungsmenü $mip_form['2']['cat'] = 'radio'; $mip_form['2']['type'] = ''; $mip_form['2']['desc'] = 'Bearbeitungsmenü<br> <small>Ein <b>normales Menü</b> besteht aus der Schalfläche "bearbeiten", das <b>erweiterte Menü</b> bietet darüberhinaus die Schaltflächen "neu, löschen, nach oben, nach unten". Wird <b>kein Menü</b> gewählt, ist der Content nicht editierbar.</small>'; $mip_form['2']['cms_var'] = 'MOD_VAR[2]'; $mip_form['2']['cms_val'] = $dedi_mod['value']['2']; $mip_form['2']['cms_val_default'] = 'true'; $mip_form['2']['option_desc']['0'] = 'Normales Menü'; $mip_form['2']['option_val']['0'] = 'true'; $mip_form['2']['option_desc']['1'] = 'Erweitertes Menü'; $mip_form['2']['option_val']['1'] = 'advanced'; $mip_form['2']['option_desc']['2'] = 'Kein Menü'; $mip_form['2']['option_val']['2'] = 'false'; $mip_form['2']['tab'] = '0'; // Template $mip_form['3']['desc'] = 'Template'; $mip_form['3']['cat'] = 'txtarea'; $mip_form['3']['rows'] = '6'; $mip_form['3']['type'] = 'long'; $mip_form['3']['cms_var'] = 'MOD_VAR[3]'; $mip_form['3']['cms_val'] = $dedi_mod['value']['3']; $mip_form['3']['cms_val_default'] = '{wysiwyg}'; //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['0']); mip_formsp($mip_form['1']); mip_formsp($mip_form['2']); mip_formsp($mip_form['3']); echo ' <small><b>Legende:</b><br> WYSIWYG- Editor: {wysiwyg}, Ausgewähltes Stylesheet: {style}<br> Php-Code: &lt;?PHP echo "Ich bin gecachter phpcode! Ich werde immer nur dann neu generiert, wenn es eine<br> Änderung auf der Seite gegeben hat"; ?&gt;<br> &lt;DEDIPHP&gt; echo "Ich bin ungecachter phpcode! Ich werde bei jedem Aufruf der Seite ausgeführt";&lt;/DEDIPHP&gt;<br> </small>'; } unset($mip_form); ?> <?PHP $myWysiwyg['wysiwyg'] = <dedi:mod type="wysiwyg" id="1" styleclass="MOD_VALUE[1]" title="MOD_VALUE[0]" menuoptions="MOD_VALUE[2]" addslashes="true" />; $myWysiwyg['style'] = "MOD_VALUE[1]"; $myTplVars['wysiwyg'] = '{wysiwyg}'; $myTplVars['style'] = '{style}'; $myTpl = "MOD_VALUE[3]"; $myTpl = str_replace($myTplVars, $myWysiwyg, $myTpl); eval('?>'.$myTpl); unset($myTpl, $myTplVars, $myWysiwyg); ?> mod:7d7915c405c8ce1ec5db4e7408825a12:b92e7fd8