Changeset 4176 in subversion


Ignore:
Timestamp:
Nov 4, 2010 5:59:55 AM (3 years ago)
Author:
alec
Message:
  • Unify template files naming
Location:
trunk/roundcubemail
Files:
4 edited
5 moved

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/addressbook/edit.inc

    r4151 r4176  
    8080 
    8181    $form_start = $form_end = ''; 
    82    
     82 
    8383    if (empty($EDIT_FORM)) { 
    8484        $hiddenfields = new html_hiddenfield(array( 
    8585            'name' => '_source', 'value' => get_input_value('_source', RCUBE_INPUT_GPC))); 
    8686        $hiddenfields->add(array('name' => '_gid', 'value' => $CONTACTS->group_id)); 
    87      
     87 
    8888        if (($result = $CONTACTS->get_result()) && ($record = $result->first())) 
    8989            $hiddenfields->add(array('name' => '_cid', 'value' => $record['ID'])); 
    90      
     90 
    9191        $form_start = $RCMAIL->output->request_form(array( 
    9292            'name' => "form", 'method' => "post", 
     
    106106$OUTPUT->add_handler('contacteditform', 'rcmail_contact_editform'); 
    107107 
    108 if (!$CONTACTS->get_result() && $OUTPUT->template_exists('addcontact')) 
    109     $OUTPUT->send('addcontact'); 
     108if (!$CONTACTS->get_result() && $OUTPUT->template_exists('contactadd')) 
     109    $OUTPUT->send('contactadd'); 
    110110 
    111111// this will be executed if no template for addcontact exists 
    112 $OUTPUT->send('editcontact'); 
     112$OUTPUT->send('contactedit'); 
  • trunk/roundcubemail/program/steps/addressbook/show.inc

    r4151 r4176  
    127127$OUTPUT->add_handler('contactdetails', 'rcmail_contact_details'); 
    128128 
    129 $OUTPUT->send('showcontact'); 
     129$OUTPUT->send('contact'); 
  • trunk/roundcubemail/program/steps/mail/show.inc

    r4172 r4176  
    150150{ 
    151151  global $PRINT_MODE, $MESSAGE; 
    152    
     152 
    153153  $out = $ol = ''; 
    154154 
     
    183183 
    184184    $out = html::tag('ul', $attrib, $ol, html::$common_attrib); 
    185   }  
    186    
     185  } 
     186 
    187187  return $out; 
    188188} 
     
    191191{ 
    192192  global $MESSAGE, $RCMAIL; 
    193    
     193 
    194194  if (!$attrib['id']) 
    195195    $attrib['id'] = 'rcmremoteobjmsg'; 
    196    
     196 
    197197  $msg = Q(rcube_label('blockedimages')) . ' '; 
    198198  $msg .= html::a(array('href' => "#loadimages", 'onclick' => JS_OBJECT_NAME.".command('load-images')"), Q(rcube_label('showimages'))); 
    199    
     199 
    200200  // add link to save sender in addressbook and reload message 
    201201  if ($MESSAGE->sender['mailto'] && $RCMAIL->config->get('show_images') == 1) { 
     
    203203      Q(rcube_label(array('name' => 'alwaysshow', 'vars' => array('sender' => $MESSAGE->sender['mailto']))))); 
    204204  } 
    205    
     205 
    206206  $RCMAIL->output->add_gui_object('remoteobjectsmsg', $attrib['id']); 
    207207  return html::div($attrib, $msg); 
     
    230230 
    231231 
    232 if ($RCMAIL->action=='print' && $OUTPUT->template_exists('printmessage')) 
    233   $OUTPUT->send('printmessage', false); 
     232if ($RCMAIL->action=='print' && $OUTPUT->template_exists('messageprint')) 
     233  $OUTPUT->send('messageprint', false); 
    234234else if ($RCMAIL->action=='preview' && $OUTPUT->template_exists('messagepreview')) 
    235235  $OUTPUT->send('messagepreview', false); 
  • trunk/roundcubemail/program/steps/settings/edit_identity.inc

    r4085 r4176  
    154154$OUTPUT->set_pagetitle(rcube_label(($RCMAIL->action=='add-identity' ? 'newidentity' : 'edititem'))); 
    155155 
    156 if ($RCMAIL->action=='add-identity' && $OUTPUT->template_exists('addidentity')) 
    157   $OUTPUT->send('addidentity'); 
     156if ($RCMAIL->action=='add-identity' && $OUTPUT->template_exists('identityadd')) 
     157  $OUTPUT->send('identityadd'); 
    158158 
    159 $OUTPUT->send('editidentity'); 
     159$OUTPUT->send('identityedit'); 
    160160 
    161161 
Note: See TracChangeset for help on using the changeset viewer.