Zeile 527 | Zeile 527 |
---|
$form_container = new FormContainer($lang->edit_template_breadcrumb.$template['title']); $form_container->output_row($lang->template_name, $lang->template_name_desc, $form->generate_text_box('title', $template['title'], array('id' => 'title')), 'title');
|
$form_container = new FormContainer($lang->edit_template_breadcrumb.$template['title']); $form_container->output_row($lang->template_name, $lang->template_name_desc, $form->generate_text_box('title', $template['title'], array('id' => 'title')), 'title');
|
| // Force users to save the default template to a specific set, rather than the "global" templates - where they can delete it if($template['sid'] == "-2") { unset($template_sets[-1]); }
|
$form_container->output_row($lang->template_set, $lang->template_set_desc, $form->generate_select_box('sid', $template_sets, $sid));
|
$form_container->output_row($lang->template_set, $lang->template_set_desc, $form->generate_select_box('sid', $template_sets, $sid));
|
|
|
$form_container->output_row("", "", $form->generate_text_area('template', $template['template'], array('id' => 'template', 'class' => 'codepress mybb', 'style' => 'width: 100%; height: 500px;'))); $form_container->end();
| $form_container->output_row("", "", $form->generate_text_area('template', $template['template'], array('id' => 'template', 'class' => 'codepress mybb', 'style' => 'width: 100%; height: 500px;'))); $form_container->end();
|
Zeile 597 | Zeile 605 |
---|
// Select all templates with that search term $query = $db->simple_select("templates", "tid, title, template, sid", "template LIKE '%".$db->escape_string($mybb->input['find'])."%'", array('order_by' => 'sid, title', 'order_dir' => 'ASC')); if($db->num_rows($query) == 0)
|
// Select all templates with that search term $query = $db->simple_select("templates", "tid, title, template, sid", "template LIKE '%".$db->escape_string($mybb->input['find'])."%'", array('order_by' => 'sid, title', 'order_dir' => 'ASC')); if($db->num_rows($query) == 0)
|
{
| {
|
$table->construct_cell($lang->sprintf($lang->search_noresults, htmlspecialchars_uni($mybb->input['find'])), array("class" => "align_center")); $table->construct_row();
| $table->construct_cell($lang->sprintf($lang->search_noresults, htmlspecialchars_uni($mybb->input['find'])), array("class" => "align_center")); $table->construct_row();
|
Zeile 668 | Zeile 676 |
---|
$label = $lang->sprintf($lang->search_found, $template['title']); $url = "index.php?module=style/templates&action=edit_template&title=".urlencode($template['title'])."&sid={$template['sid']}"; }
|
$label = $lang->sprintf($lang->search_found, $template['title']); $url = "index.php?module=style/templates&action=edit_template&title=".urlencode($template['title'])."&sid={$template['sid']}"; }
|
| } } else { // Just show that the term was found if($template['sid'] == -2) { $label = $lang->sprintf($lang->search_found, $template['title']); } else { $label = $lang->sprintf($lang->search_found, $template['title']); $url = "index.php?module=style/templates&action=edit_template&title=".urlencode($template['title'])."&sid={$template['sid']}";
|
} }
| } }
|
Zeile 833 | Zeile 854 |
---|
$template['pretty_title'] = "<span style=\"color: blue;\">{$template['title']}</span>"; }
|
$template['pretty_title'] = "<span style=\"color: blue;\">{$template['title']}</span>"; }
|
$table->construct_cell("<span style=\"padding: 20px;\"><a href=\"index.php?module=style/templates&action=edit_template&title=".urlencode($template['title'])."&sid={$sid}\">{$template['pretty_title']}</a></span>", array("width" => "85%"));
| $table->construct_cell("<span style=\"padding: 20px;\">{$template['pretty_title']}</span>", array("width" => "85%"));
|
$table->construct_cell($popup->fetch(), array("class" => "align_center")); $table->construct_row();
| $table->construct_cell($popup->fetch(), array("class" => "align_center")); $table->construct_row();
|
Zeile 1183 | Zeile 1204 |
---|
require_once MYBB_ROOT."inc/3rdparty/diff/Diff.php"; require_once MYBB_ROOT."inc/3rdparty/diff/Diff/Renderer/inline.php";
|
require_once MYBB_ROOT."inc/3rdparty/diff/Diff.php"; require_once MYBB_ROOT."inc/3rdparty/diff/Diff/Renderer/inline.php";
|
$diff = &new Text_Diff('auto', array($template1['template'], $template2['template'])); $renderer = &new Text_Diff_Renderer_inline();
| $diff = new Text_Diff('auto', array($template1['template'], $template2['template'])); $renderer = new Text_Diff_Renderer_inline();
|
if($sid) {
| if($sid) {
|