Content Content 0.93 1 1066927900 1072566838 0 Beliebige Kombination von Bild, WYSIWYG und Textelementen. <?php // Schriftart $mip_form['0']['desc'] = $mod_lang['gen_font'].' für Text'; $mip_form['0']['cat'] = 'app_css'; $mip_form['0']['output_cat'] = 'option'; $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; $mip_form['0']['flag'] = 'class_only'; // Schriftart $mip_form['1']['desc'] = $mod_lang['gen_font'].' für WYSIWYG-Text'; $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'; // Anzahl der Textfelder $mip_form['2']['desc'] = 'Wie oft soll das Template wiederholt werden?'; $mip_form['2']['cat'] = 'txt'; $mip_form['2']['cms_var'] = 'MOD_VAR[2]'; $mip_form['2']['cms_val'] = $dedi_mod['value']['2']; $mip_form['2']['cms_val_default'] = '1'; // Auf einmal bearbeiten $mip_form['3']['desc'] = 'Alles auf einmal bearbeiten?'; $mip_form['3']['cat'] = 'chk'; $mip_form['3']['option_var']['0'] = 'MOD_VAR[3]'; $mip_form['3']['option_val']['0'] = $dedi_mod['value']['3']; $mip_form['3']['option_desc']['0'] = 'ja'; $mip_form['3']['option_val_select']['0'] = 'true'; // Template $mip_form['4']['desc'] = 'Template'; $mip_form['4']['cat'] = 'txtarea'; $mip_form['4']['rows'] = '6'; $mip_form['4']['type'] = 'long'; $mip_form['4']['cms_var'] = 'MOD_VAR[4]'; $mip_form['4']['cms_val'] = $dedi_mod['value']['4']; $mip_form['4']['cms_val_default'] = '{text}<br>{textarea}<br>{image}<br>{wysiwyg}<br><br>'; // Schriftart $mip_form['5']['desc'] = $mod_lang['gen_font'].' für Textarea'; $mip_form['5']['cat'] = 'app_css'; $mip_form['5']['output_cat'] = 'option'; $mip_form['5']['cms_var'] = 'MOD_VAR[5]'; $mip_form['5']['cms_val'] = $dedi_mod['value']['5']; $mip_form['5']['flag'] = 'class_only'; mip_formsp($mip_form['0']); mip_formsp($mip_form['5']); mip_formsp($mip_form['1']); mip_formsp($mip_form['2']); mip_formsp($mip_form['3']); mip_formsp($mip_form['4']); echo ' <small><b>Legende:</b><br> Text: {text}<br> Textarea: {textarea}<br> WYSIWYG-Text: {wysiwyg}<br> Bild: {image}<br> Php-Code: &lt;?PHP echo "Ich bin phpcode!"; ?&gt;</small>'; unset($mip_form); ?> <?php if ($dedi_side['edit'] && $dedi_mod['value']['3']) { $dedi_side['edit_all'] = 'true'; unset($dedi_side['edit']); } $mod['tpl'] = ''; $w = 1; $x = 1; $y = 1; $z = 1; for ($i=1; $i<=$dedi_mod['value']['2']; $i++) { $mod['tpl_copy'] = $dedi_mod['value']['4']; // {text} ersetzen while ($mod['tpl_pos'] = strpos (' '.$mod['tpl_copy'], '{text}')) { $mod['text'] = ''; if ($dedi_mod['value']['0']) $mod['text'] .= '<span class="'.$dedi_mod['value']['0'].'">'; $mod['text'] .= <dedi:mod type="text" id="$w" addslashes="true">; if ($dedi_mod['value']['0']) $mod['text'] .= '</span>'; $mod['tpl_copy'] = substr_replace ($mod['tpl_copy'], $mod['text'], $mod['tpl_pos']-1, 6); $w = $w+1; } // {textarea} ersetzen while ($mod['tpl_pos'] = strpos (' '.$mod['tpl_copy'], '{textarea}')) { $mod['textarea'] = ''; if ($dedi_mod['value']['5']) $mod['textarea'] .= '<span class="'.$dedi_mod['value']['5'].'">'; $mod['textarea'] .= <dedi:mod type="textarea" id="$x" addslashes="true">; if ($dedi_mod['value']['5']) $mod['textarea'] .= '</span>'; $mod['tpl_copy'] = substr_replace ($mod['tpl_copy'], $mod['textarea'], $mod['tpl_pos']-1, 10); $x = $x+1; } // {html} ersetzen while ($mod['tpl_pos'] = strpos (' '.$mod['tpl_copy'], '{wysiwyg}')) { $mod['wysiwyg'] = ''; if ($dedi_mod['value']['1']) $mod['wysiwyg'] .= '<span class="'.$dedi_mod['value']['1'].'">'; $mod['wysiwyg'] .= <dedi:mod type="wysiwyg" id="$y" addslashes="true">; if ($dedi_mod['value']['1']) $mod['wysiwyg'] .= '</span>'; $mod['tpl_copy'] = substr_replace ($mod['tpl_copy'], $mod['wysiwyg'], $mod['tpl_pos']-1, 9); $y = $y+1; } // {image} ersetzen while ($mod['tpl_pos'] = strpos (' '.$mod['tpl_copy'], '{image}')) { $mod['tpl_copy'] = substr_replace ($mod['tpl_copy'], <dedi:mod type="image" id="$z" addslashes="true">, $mod['tpl_pos']-1, 7); $z = $z+1; } $mod['tpl'] .= $mod['tpl_copy']; } if ($dedi_mod['value']['3']) eval(' ?>'.$mod['tpl'].<dedi:mod type="edit_container" addslashes="true">); else eval(' ?>'.$mod['tpl']); unset($mod, $w, $x, $y, $z, $i); if ($dedi_side['edit_all'] && $dedi_mod['value']['3']) { $dedi_side['edit'] = 'true'; unset($dedi_side['edit_all']); } ?>