alecpl
2010-11-04 83ba22c77b8790d8cbea8c684c4e1a0c431b83d6
- Unify template files naming


5 files renamed
4 files modified
38 ■■■■ changed files
program/steps/addressbook/edit.inc 12 ●●●● patch | view | raw | blame | history
program/steps/addressbook/show.inc 2 ●●● patch | view | raw | blame | history
program/steps/mail/show.inc 18 ●●●● patch | view | raw | blame | history
program/steps/settings/edit_identity.inc 6 ●●●● patch | view | raw | blame | history
skins/default/templates/contact.html patch | view | raw | blame | history
skins/default/templates/contactadd.html patch | view | raw | blame | history
skins/default/templates/contactedit.html patch | view | raw | blame | history
skins/default/templates/identityedit.html patch | view | raw | blame | history
skins/default/templates/messageprint.html patch | view | raw | blame | history
program/steps/addressbook/edit.inc
@@ -79,15 +79,15 @@
    global $CONTACTS, $EDIT_FORM, $RCMAIL;
    $form_start = $form_end = '';
    if (empty($EDIT_FORM)) {
        $hiddenfields = new html_hiddenfield(array(
            'name' => '_source', 'value' => get_input_value('_source', RCUBE_INPUT_GPC)));
        $hiddenfields->add(array('name' => '_gid', 'value' => $CONTACTS->group_id));
        if (($result = $CONTACTS->get_result()) && ($record = $result->first()))
            $hiddenfields->add(array('name' => '_cid', 'value' => $record['ID']));
        $form_start = $RCMAIL->output->request_form(array(
            'name' => "form", 'method' => "post",
            'task' => $RCMAIL->task, 'action' => 'save',
@@ -105,8 +105,8 @@
$OUTPUT->add_handler('contacteditform', 'rcmail_contact_editform');
if (!$CONTACTS->get_result() && $OUTPUT->template_exists('addcontact'))
    $OUTPUT->send('addcontact');
if (!$CONTACTS->get_result() && $OUTPUT->template_exists('contactadd'))
    $OUTPUT->send('contactadd');
// this will be executed if no template for addcontact exists
$OUTPUT->send('editcontact');
$OUTPUT->send('contactedit');
program/steps/addressbook/show.inc
@@ -126,4 +126,4 @@
//$OUTPUT->framed = $_framed;
$OUTPUT->add_handler('contactdetails', 'rcmail_contact_details');
$OUTPUT->send('showcontact');
$OUTPUT->send('contact');
program/steps/mail/show.inc
@@ -149,7 +149,7 @@
function rcmail_message_attachments($attrib)
{
  global $PRINT_MODE, $MESSAGE;
  $out = $ol = '';
  if (sizeof($MESSAGE->attachments)) {
@@ -182,27 +182,27 @@
    }
    $out = html::tag('ul', $attrib, $ol, html::$common_attrib);
  }
  }
  return $out;
}
function rcmail_remote_objects_msg($attrib)
{
  global $MESSAGE, $RCMAIL;
  if (!$attrib['id'])
    $attrib['id'] = 'rcmremoteobjmsg';
  $msg = Q(rcube_label('blockedimages')) . ' ';
  $msg .= html::a(array('href' => "#loadimages", 'onclick' => JS_OBJECT_NAME.".command('load-images')"), Q(rcube_label('showimages')));
  // add link to save sender in addressbook and reload message
  if ($MESSAGE->sender['mailto'] && $RCMAIL->config->get('show_images') == 1) {
    $msg .= ' ' . html::a(array('href' => "#alwaysload", 'onclick' => JS_OBJECT_NAME.".command('always-load')", 'style' => "white-space:nowrap"),
      Q(rcube_label(array('name' => 'alwaysshow', 'vars' => array('sender' => $MESSAGE->sender['mailto'])))));
  }
  $RCMAIL->output->add_gui_object('remoteobjectsmsg', $attrib['id']);
  return html::div($attrib, $msg);
}
@@ -229,8 +229,8 @@
  'blockedobjects' => 'rcmail_remote_objects_msg'));
if ($RCMAIL->action=='print' && $OUTPUT->template_exists('printmessage'))
  $OUTPUT->send('printmessage', false);
if ($RCMAIL->action=='print' && $OUTPUT->template_exists('messageprint'))
  $OUTPUT->send('messageprint', false);
else if ($RCMAIL->action=='preview' && $OUTPUT->template_exists('messagepreview'))
  $OUTPUT->send('messagepreview', false);
else
program/steps/settings/edit_identity.inc
@@ -153,9 +153,9 @@
$OUTPUT->set_pagetitle(rcube_label(($RCMAIL->action=='add-identity' ? 'newidentity' : 'edititem')));
if ($RCMAIL->action=='add-identity' && $OUTPUT->template_exists('addidentity'))
  $OUTPUT->send('addidentity');
if ($RCMAIL->action=='add-identity' && $OUTPUT->template_exists('identityadd'))
  $OUTPUT->send('identityadd');
$OUTPUT->send('editidentity');
$OUTPUT->send('identityedit');
skins/default/templates/contact.html
skins/default/templates/contactadd.html
skins/default/templates/contactedit.html
skins/default/templates/identityedit.html
skins/default/templates/messageprint.html