Dotclear


Ignore:
Timestamp:
07/04/11 08:52:37 (14 years ago)
Author:
kozlika
Branch:
themes
Parents:
502:d002906f0b30 (diff), 501:ead05faef1e4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Je récupère la 2.4 à jour pour la branche themes

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/blowupConfig/index.php

    r500 r503  
    2424     'body_bg_c' => null, 
    2525     'body_bg_g' => 'light', 
    26       
     26 
    2727     'body_txt_f' => null, 
    2828     'body_txt_s' => null, 
    2929     'body_txt_c' => null, 
    3030     'body_line_height' => null, 
    31       
     31 
    3232     'top_image' => 'default', 
    3333     'top_height' => null, 
    3434     'uploaded' => null, 
    35       
     35 
    3636     'blog_title_hide' => null, 
    3737     'blog_title_f' => null, 
     
    4040     'blog_title_a' => null, 
    4141     'blog_title_p' => null, 
    42       
     42 
    4343     'body_link_c' => null, 
    4444     'body_link_f_c' => null, 
    4545     'body_link_v_c' => null, 
    46       
     46 
    4747     'sidebar_position' => null, 
    4848     'sidebar_text_f' => null, 
     
    5959     'sidebar_link_f_c' => null, 
    6060     'sidebar_link_v_c' => null, 
    61       
     61 
    6262     'date_title_f' => null, 
    6363     'date_title_s' => null, 
    6464     'date_title_c' => null, 
    65       
     65 
    6666     'post_title_f' => null, 
    6767     'post_title_s' => null, 
     
    7171     'post_commentmy_bg_c' => null, 
    7272     'post_commentmy_c' => null, 
    73       
     73 
    7474     'prelude_c' => null, 
    7575     'footer_f' => null, 
     
    7878     'footer_l_c' => null, 
    7979     'footer_bg_c' => null, 
     80 
     81     'extra_css' => null 
    8082); 
    8183 
     
    108110          $blowup_user['body_txt_c'] = blowupConfig::adjustColor($_POST['body_txt_c']); 
    109111          $blowup_user['body_line_height'] = blowupConfig::adjustFontSize($_POST['body_line_height']); 
    110            
     112 
    111113          $blowup_user['blog_title_hide'] = (integer) !empty($_POST['blog_title_hide']); 
    112114          $update_blog_title = !$blowup_user['blog_title_hide'] && ( 
     
    115117               !empty($_POST['blog_title_p']) 
    116118          ); 
    117            
     119 
    118120          if ($update_blog_title) 
    119121          { 
     
    124126               $blowup_user['blog_title_p'] = blowupConfig::adjustPosition($_POST['blog_title_p']); 
    125127          } 
    126            
     128 
    127129          $blowup_user['body_link_c'] = blowupConfig::adjustColor($_POST['body_link_c']); 
    128130          $blowup_user['body_link_f_c'] = blowupConfig::adjustColor($_POST['body_link_f_c']); 
    129131          $blowup_user['body_link_v_c'] = blowupConfig::adjustColor($_POST['body_link_v_c']); 
    130            
     132 
    131133          $blowup_user['sidebar_text_f'] = $_POST['sidebar_text_f']; 
    132134          $blowup_user['sidebar_text_s'] = blowupConfig::adjustFontSize($_POST['sidebar_text_s']); 
     
    142144          $blowup_user['sidebar_link_f_c'] = blowupConfig::adjustColor($_POST['sidebar_link_f_c']); 
    143145          $blowup_user['sidebar_link_v_c'] = blowupConfig::adjustColor($_POST['sidebar_link_v_c']); 
    144            
     146 
    145147          $blowup_user['sidebar_position'] = ($_POST['sidebar_position'] == 'left') ? 'left' : null; 
    146            
     148 
    147149          $blowup_user['date_title_f'] = $_POST['date_title_f']; 
    148150          $blowup_user['date_title_s'] = blowupConfig::adjustFontSize($_POST['date_title_s']); 
    149151          $blowup_user['date_title_c'] = blowupConfig::adjustColor($_POST['date_title_c']); 
    150            
     152 
    151153          $blowup_user['post_title_f'] = $_POST['post_title_f']; 
    152154          $blowup_user['post_title_s'] = blowupConfig::adjustFontSize($_POST['post_title_s']); 
     
    154156          $blowup_user['post_comment_c'] = blowupConfig::adjustColor($_POST['post_comment_c']); 
    155157          $blowup_user['post_commentmy_c'] = blowupConfig::adjustColor($_POST['post_commentmy_c']); 
    156            
    157            
     158 
     159 
    158160          $blowup_user['footer_f'] = $_POST['footer_f']; 
    159161          $blowup_user['footer_s'] = blowupConfig::adjustFontSize($_POST['footer_s']); 
     
    161163          $blowup_user['footer_l_c'] = blowupConfig::adjustColor($_POST['footer_l_c']); 
    162164          $blowup_user['footer_bg_c'] = blowupConfig::adjustColor($_POST['footer_bg_c']); 
    163            
     165 
     166 
     167          $blowup_user['extra_css'] = blowupConfig::cleanCSS($_POST['extra_css']); 
     168 
    164169          if ($can_write_images) 
    165170          { 
     
    168173                    $uploaded = blowupConfig::imagesPath().'/'.$blowup_user['uploaded']; 
    169174               } 
    170                 
     175 
    171176               if (!empty($_FILES['upfile']) && !empty($_FILES['upfile']['name'])) { 
    172177                    files::uploadStatus($_FILES['upfile']); 
     
    174179                    $blowup_user['uploaded'] = basename($uploaded); 
    175180               } 
    176                 
     181 
    177182               $blowup_user['top_image'] = in_array($_POST['top_image'],$top_images) ? $_POST['top_image'] : 'default'; 
    178                 
     183 
    179184               $blowup_user['body_bg_c'] = blowupConfig::adjustColor($_POST['body_bg_c']); 
    180185               $blowup_user['body_bg_g'] = in_array($_POST['body_bg_g'],$gradient_types) ? $_POST['body_bg_g'] : ''; 
     
    184189               blowupConfig::createImages($blowup_user,$uploaded); 
    185190          } 
    186            
     191 
    187192          $core->blog->settings->addNamespace('themes'); 
    188193          $core->blog->settings->themes->put('blowup_style',serialize($blowup_user)); 
    189194          $core->blog->triggerBlog(); 
    190            
     195 
    191196          http::redirect($p_url.'&upd=1'); 
    192197     } 
     
    233238 
    234239echo '<form id="theme_config" action="'.$p_url.'" method="post" enctype="multipart/form-data">'; 
    235            
     240 
    236241echo '<fieldset><legend>'.__('General').'</legend>'; 
    237242 
     
    240245     '<p class="field"><label for="body_bg_c">'.__('Background color:').' '. 
    241246     form::field('body_bg_c',7,7,$blowup_user['body_bg_c'],'colorpicker').'</label></p>'. 
    242       
     247 
    243248     '<p class="field"><label for="body_bg_g">'.__('Background color fill:').' '. 
    244249     form::combo('body_bg_g',$gradient_types,$blowup_user['body_bg_g']).'</label></p>'; 
     
    304309          $preview_image = 'index.php?pf=blowupConfig/alpha-img/page-t/'.$blowup_user['top_image'].'.png'; 
    305310     } 
    306       
     311 
    307312     echo 
    308313     '<fieldset><legend>'.__('Top image').'</legend>'. 
     
    310315     form::combo('top_image',$top_images,($blowup_user['top_image'] ? $blowup_user['top_image'] : 'default')).'</label></p>'. 
    311316     '<p>'.__('Choose "Custom..." to upload your own image.').'</p>'. 
    312       
     317 
    313318     '<p id="uploader"><label for="upfile">'.__('Add your image:'). 
    314319     ' ('.sprintf(__('JPEG or PNG file, 800 pixels wide, maximum size %s'),files::size(DC_MAX_UPLOAD_SIZE)).')'. 
    315320     '<input type="file" name="upfile" id="upfile" size="35" />'. 
    316321     '</label></p>'. 
    317       
     322 
    318323     '<h3>'.__('Preview').'</h3>'. 
    319324     '<div class="grid" style="width:800px;border:1px solid #ccc;">'. 
     
    425430'</fieldset>'; 
    426431 
     432echo 
     433'<fieldset><legend>'.__('Additional CSS').'</legend>'. 
     434'<p>'.form::textarea('extra_css',72,5,html::escapeHTML($blowup_user['extra_css']),'maximal','',false,'title="'.__('Additional CSS').'"').'</p>'. 
     435'</fieldset>'; 
     436 
     437 
     438 
    427439// Import / Export configuration 
    428440$tmp_array = array(); 
  • plugins/blowupConfig/index.php

    r295 r503  
    223223echo 
    224224'<h2>'.html::escapeHTML($core->blog->name). 
    225 ' &rsaquo; <a href="blog_theme.php">'.__('Blog appearance').'</a> &rsaquo; '.__('Blowup configuration').'</h2>'. 
     225' &rsaquo; <a href="blog_theme.php">'.__('Blog appearance').'</a> &rsaquo; <span class="page-title">'.__('Blowup configuration').'</span></h2>'. 
    226226'<p><a class="back" href="blog_theme.php">'.__('back').'</a></p>'; 
    227227 
Note: See TracChangeset for help on using the changeset viewer.

Sites map