Exemplo n.º 1
0
     print_description_row($vbphrase['text_editor_control_desc']);
     $out = array();
     foreach ($_query_special_templates as $varname) {
         if (substr($varname, 0, 13) == 'editor_styles') {
             //$out[] = construct_posteditor_style_code(ucwords(str_replace('_', ' ', substr($varname, 13))), $varname);
             $out[] = construct_posteditor_style_code($vbphrase["{$varname}"], $varname);
         }
     }
     $i = 0;
     while ($i < sizeof($out)) {
         print_label_row($out[$i++], $out[$i++], 'alt2');
     }
     print_table_break(' ');
     print_table_header($vbphrase['toolbar_menu_options']);
     print_description_row($vbphrase['bbcode_pulldown_menu_desc']);
     print_label_row(construct_edit_menu_code($vbphrase['available_fonts'], 'editor_jsoptions_font'), construct_edit_menu_code($vbphrase['available_sizes'], 'editor_jsoptions_size'));
     print_table_break(' ');
 }
 // #############################################################################
 // REPLACEMENT VARS
 if ($vbulletin->GPC['dowhat'] == 'replacements' or $vbulletin->GPC['dowhat'] == 'all') {
     construct_hidden_code('dowhat[replacements]', 1);
     if (sizeof($replacement) > 0) {
         print_table_header($vbphrase['replacement_variables'], 3);
         print_cells_row(array($vbphrase['search_for_text'], $vbphrase['replace_with_text'], ''), 1);
         foreach ($replacement as $findword => $replaceword) {
             print_replacement_row($findword, $replaceword);
         }
     } else {
         print_description_row($vbphrase['no_replacements_defined']);
     }
Exemplo n.º 2
0
				$out[] = construct_posteditor_style_code($vbphrase["$varname"], $varname);
			}
		}
		$i = 0;
		while ($i < sizeof($out))
		{
			print_label_row($out[$i++], $out[$i++], 'alt2');
		}

		print_table_break(' ');

		print_table_header($vbphrase['toolbar_menu_options']);
		print_description_row($vbphrase['bbcode_pulldown_menu_desc']);
		print_label_row(
			construct_edit_menu_code($vbphrase['available_fonts'], 'editor_jsoptions_font'),
			construct_edit_menu_code($vbphrase['available_sizes'], 'editor_jsoptions_size')
		);

		print_table_break(' ');
	}

	// #############################################################################
	// REPLACEMENT VARS
	if ($vbulletin->GPC['dowhat'] == 'replacements' OR $vbulletin->GPC['dowhat'] == 'all')
	{
		construct_hidden_code('dowhat[replacements]', 1);
		if (sizeof($replacement) > 0)
		{
			print_table_header($vbphrase['replacement_variables'], 3);
			print_cells_row(array($vbphrase['search_for_text'], $vbphrase['replace_with_text'], ''), 1);
			foreach($replacement AS $findword => $replaceword)