Changeset 76:b66888fc9356
- Timestamp:
- 05/01/11 10:06:59 (14 years ago)
- Branch:
- userprefs
- Children:
- 77:397d639833e0, 82:a31a062afd24
- Location:
- plugins/blowupConfig
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/blowupConfig/config.js
r0 r76 36 36 37 37 // Predefined styles 38 // /!\ needs geek master to add title="Choose a predefined style" in select tag 38 39 var styles_combo = document.createElement('select'); 39 40 $(styles_combo).append('<option value=""> </option>'); -
plugins/blowupConfig/index.php
r0 r76 237 237 if ($can_write_images) { 238 238 echo 239 '<p class="field"><label >'.__('Background color:').' '.239 '<p class="field"><label for="body_bg_c">'.__('Background color:').' '. 240 240 form::field('body_bg_c',7,7,$blowup_user['body_bg_c'],'colorpicker').'</label></p>'. 241 241 242 '<p class="field"><label >'.__('Background color fill:').' '.242 '<p class="field"><label for="body_bg_g">'.__('Background color fill:').' '. 243 243 form::combo('body_bg_g',$gradient_types,$blowup_user['body_bg_g']).'</label></p>'; 244 244 } 245 245 246 246 echo 247 '<p class="field"><label >'.__('Main text font:').' '.247 '<p class="field"><label for="body_txt_f">'.__('Main text font:').' '. 248 248 form::combo('body_txt_f',blowupConfig::fontsList(),$blowup_user['body_txt_f']).'</label></p>'. 249 249 250 '<p class="field"><label >'.__('Main text font size:').' '.250 '<p class="field"><label for="body_txt_s">'.__('Main text font size:').' '. 251 251 form::field('body_txt_s',7,7,$blowup_user['body_txt_s']).'</label></p>'. 252 252 253 '<p class="field"><label >'.__('Main text color:').' '.253 '<p class="field"><label for="body_txt_c">'.__('Main text color:').' '. 254 254 form::field('body_txt_c',7,7,$blowup_user['body_txt_c'],'colorpicker').'</label></p>'. 255 255 256 '<p class="field"><label >'.__('Text line height:').' '.256 '<p class="field"><label for="body_line_height">'.__('Text line height:').' '. 257 257 form::field('body_line_height',7,7,$blowup_user['body_line_height']).'</label></p>'. 258 258 '</fieldset>'. 259 259 260 260 '<fieldset><legend>'.__('Links').'</legend>'. 261 '<p class="field"><label >'.__('Links color:').' '.261 '<p class="field"><label for="body_link_c">'.__('Links color:').' '. 262 262 form::field('body_link_c',7,7,$blowup_user['body_link_c'],'colorpicker').'</label></p>'. 263 263 264 '<p class="field"><label >'.__('Visited links color:').' '.264 '<p class="field"><label for="body_link_v_c">'.__('Visited links color:').' '. 265 265 form::field('body_link_v_c',7,7,$blowup_user['body_link_v_c'],'colorpicker').'</label></p>'. 266 266 267 '<p class="field"><label >'.__('Focus links color:').' '.267 '<p class="field"><label for="body_link_f_c">'.__('Focus links color:').' '. 268 268 form::field('body_link_f_c',7,7,$blowup_user['body_link_f_c'],'colorpicker').'</label></p>'. 269 269 '</fieldset>'. … … 273 273 if ($can_write_images) { 274 274 echo 275 '<p class="field"><label >'.__('Prelude color:').' '.275 '<p class="field"><label for="prelude_c">'.__('Prelude color:').' '. 276 276 form::field('prelude_c',7,7,$blowup_user['prelude_c'],'colorpicker').'</label></p>'; 277 277 } 278 278 279 279 echo 280 '<p class="field"><label >'.__('Hide main title').' '.280 '<p class="field"><label for="blog_title_hide">'.__('Hide main title').' '. 281 281 form::checkbox('blog_title_hide',1,$blowup_user['blog_title_hide']).'</label></p>'. 282 282 283 '<p class="field"><label >'.__('Main title font:').' '.283 '<p class="field"><label for="blog_title_f">'.__('Main title font:').' '. 284 284 form::combo('blog_title_f',blowupConfig::fontsList(),$blowup_user['blog_title_f']).'</label></p>'. 285 285 286 '<p class="field"><label >'.__('Main title font size:').' '.286 '<p class="field"><label for="blog_title_s">'.__('Main title font size:').' '. 287 287 form::field('blog_title_s',7,7,$blowup_user['blog_title_s']).'</label></p>'. 288 288 289 '<p class="field"><label >'.__('Main title color:').' '.289 '<p class="field"><label for="blog_title_c">'.__('Main title color:').' '. 290 290 form::field('blog_title_c',7,7,$blowup_user['blog_title_c'],'colorpicker').'</label></p>'. 291 291 292 '<p class="field"><label >'.__('Main title alignment:').' '.292 '<p class="field"><label for="blog_title_a">'.__('Main title alignment:').' '. 293 293 form::combo('blog_title_a',array(__('center')=>'center',__('left')=>'left',__('right')=>'right'),$blowup_user['blog_title_a']).'</label></p>'. 294 294 295 '<p class="field"><label >'.__('Main title position (x:y)').' '.295 '<p class="field"><label for="blog_title_p">'.__('Main title position (x:y)').' '. 296 296 form::field('blog_title_p',7,7,$blowup_user['blog_title_p']).'</label></p>'. 297 297 '</fieldset>'; … … 306 306 echo 307 307 '<fieldset><legend>'.__('Top image').'</legend>'. 308 '<p class="field"><label >'.__('Top image').308 '<p class="field"><label for="top_image">'.__('Top image'). 309 309 form::combo('top_image',$top_images,($blowup_user['top_image'] ? $blowup_user['top_image'] : 'default')).'</label></p>'. 310 310 '<p>'.__('Choose "Custom..." to upload your own image.').'</p>'. 311 311 312 '<p id="uploader"><label >'.__('Add your image:').312 '<p id="uploader"><label for="upfile">'.__('Add your image:'). 313 313 ' ('.sprintf(__('JPEG or PNG file, 800 pixels wide, maximum size %s'),files::size(DC_MAX_UPLOAD_SIZE)).')'. 314 '<input type="file" name="upfile" size="35" />'.314 '<input type="file" name="upfile" id="upfile" size="35" />'. 315 315 '</label></p>'. 316 316 … … 324 324 echo 325 325 '<fieldset><legend>'.__('Sidebar').'</legend>'. 326 '<p class="field"><label >'.__('Sidebar position:').' '.326 '<p class="field"><label for="sidebar_position">'.__('Sidebar position:').' '. 327 327 form::combo('sidebar_position',array(__('right')=>'right',__('left')=>'left'),$blowup_user['sidebar_position']).'</label></p>'. 328 328 329 '<p class="field"><label >'.__('Sidebar text font:').' '.329 '<p class="field"><label for="sidebar_text_f">'.__('Sidebar text font:').' '. 330 330 form::combo('sidebar_text_f',blowupConfig::fontsList(),$blowup_user['sidebar_text_f']).'</label></p>'. 331 331 332 '<p class="field"><label >'.__('Sidebar text font size:').' '.332 '<p class="field"><label for="sidebar_text_s">'.__('Sidebar text font size:').' '. 333 333 form::field('sidebar_text_s',7,7,$blowup_user['sidebar_text_s']).'</label></p>'. 334 334 335 '<p class="field"><label >'.__('Sidebar text color:').' '.335 '<p class="field"><label for="sidebar_text_c">'.__('Sidebar text color:').' '. 336 336 form::field('sidebar_text_c',7,7,$blowup_user['sidebar_text_c'],'colorpicker').'</label></p>'. 337 337 338 '<p class="field"><label >'.__('Sidebar titles font:').' '.338 '<p class="field"><label for="sidebar_title_f">'.__('Sidebar titles font:').' '. 339 339 form::combo('sidebar_title_f',blowupConfig::fontsList(),$blowup_user['sidebar_title_f']).'</label></p>'. 340 340 341 '<p class="field"><label >'.__('Sidebar titles font size:').' '.341 '<p class="field"><label for="sidebar_title_s">'.__('Sidebar titles font size:').' '. 342 342 form::field('sidebar_title_s',7,7,$blowup_user['sidebar_title_s']).'</label></p>'. 343 343 344 '<p class="field"><label >'.__('Sidebar titles color:').' '.344 '<p class="field"><label for="sidebar_title_c">'.__('Sidebar titles color:').' '. 345 345 form::field('sidebar_title_c',7,7,$blowup_user['sidebar_title_c'],'colorpicker').'</label></p>'. 346 346 347 '<p class="field"><label >'.__('Sidebar 2nd level titles font:').' '.347 '<p class="field"><label for="sidebar_title2_f">'.__('Sidebar 2nd level titles font:').' '. 348 348 form::combo('sidebar_title2_f',blowupConfig::fontsList(),$blowup_user['sidebar_title2_f']).'</label></p>'. 349 349 350 '<p class="field"><label >'.__('Sidebar 2nd level titles font size:').' '.350 '<p class="field"><label for="sidebar_title2_s">'.__('Sidebar 2nd level titles font size:').' '. 351 351 form::field('sidebar_title2_s',7,7,$blowup_user['sidebar_title2_s']).'</label></p>'. 352 352 353 '<p class="field"><label >'.__('Sidebar 2nd level titles color:').' '.353 '<p class="field"><label for="sidebar_title2_c">'.__('Sidebar 2nd level titles color:').' '. 354 354 form::field('sidebar_title2_c',7,7,$blowup_user['sidebar_title2_c'],'colorpicker').'</label></p>'. 355 355 356 '<p class="field"><label >'.__('Sidebar lines color:').' '.356 '<p class="field"><label for="sidebar_line_c">'.__('Sidebar lines color:').' '. 357 357 form::field('sidebar_line_c',7,7,$blowup_user['sidebar_line_c'],'colorpicker').'</label></p>'. 358 358 359 '<p class="field"><label >'.__('Sidebar links color:').' '.359 '<p class="field"><label for="sidebar_link_c">'.__('Sidebar links color:').' '. 360 360 form::field('sidebar_link_c',7,7,$blowup_user['sidebar_link_c'],'colorpicker').'</label></p>'. 361 361 362 '<p class="field"><label >'.__('Sidebar visited links color:').' '.362 '<p class="field"><label for="sidebar_link_v_c">'.__('Sidebar visited links color:').' '. 363 363 form::field('sidebar_link_v_c',7,7,$blowup_user['sidebar_link_v_c'],'colorpicker').'</label></p>'. 364 364 365 '<p class="field"><label >'.__('Sidebar focus links color:').' '.365 '<p class="field"><label for="sidebar_link_f_c">'.__('Sidebar focus links color:').' '. 366 366 form::field('sidebar_link_f_c',7,7,$blowup_user['sidebar_link_f_c'],'colorpicker').'</label></p>'. 367 367 '</fieldset>'. 368 368 369 369 '<fieldset><legend>'.__('Entries').'</legend>'. 370 '<p class="field"><label >'.__('Date title font:').' '.370 '<p class="field"><label for="date_title_f">'.__('Date title font:').' '. 371 371 form::combo('date_title_f',blowupConfig::fontsList(),$blowup_user['date_title_f']).'</label></p>'. 372 372 373 '<p class="field"><label >'.__('Date title font size:').' '.373 '<p class="field"><label for="date_title_s">'.__('Date title font size:').' '. 374 374 form::field('date_title_s',7,7,$blowup_user['date_title_s']).'</label></p>'. 375 375 376 '<p class="field"><label >'.__('Date title color:').' '.376 '<p class="field"><label for="date_title_c">'.__('Date title color:').' '. 377 377 form::field('date_title_c',7,7,$blowup_user['date_title_c'],'colorpicker').'</label></p>'. 378 378 379 '<p class="field"><label >'.__('Entry title font:').' '.379 '<p class="field"><label for="post_title_f">'.__('Entry title font:').' '. 380 380 form::combo('post_title_f',blowupConfig::fontsList(),$blowup_user['post_title_f']).'</label></p>'. 381 381 382 '<p class="field"><label >'.__('Entry title font size:').' '.382 '<p class="field"><label for="post_title_s">'.__('Entry title font size:').' '. 383 383 form::field('post_title_s',7,7,$blowup_user['post_title_s']).'</label></p>'. 384 384 385 '<p class="field"><label >'.__('Entry title color:').' '.385 '<p class="field"><label for="post_title_c">'.__('Entry title color:').' '. 386 386 form::field('post_title_c',7,7,$blowup_user['post_title_c'],'colorpicker').'</label></p>'; 387 387 388 388 if ($can_write_images) { 389 389 echo 390 '<p class="field"><label >'.__('Comment background color:').' '.390 '<p class="field"><label for="post_comment_bg_c">'.__('Comment background color:').' '. 391 391 form::field('post_comment_bg_c',7,7,$blowup_user['post_comment_bg_c'],'colorpicker').'</label></p>'; 392 392 } 393 393 394 394 echo 395 '<p class="field"><label >'.__('Comment text color:').' '.395 '<p class="field"><label for="post_comment_c">'.__('Comment text color:').' '. 396 396 form::field('post_comment_c',7,7,$blowup_user['post_comment_c'],'colorpicker').'</label></p>'; 397 397 398 398 if ($can_write_images) { 399 399 echo 400 '<p class="field"><label >'.__('My comment background color:').' '.400 '<p class="field"><label for="post_commentmy_bg_c">'.__('My comment background color:').' '. 401 401 form::field('post_commentmy_bg_c',7,7,$blowup_user['post_commentmy_bg_c'],'colorpicker').'</label></p>'; 402 402 } 403 403 404 404 echo 405 '<p class="field"><label >'.__('My comment text color:').' '.405 '<p class="field"><label for="post_commentmy_c">'.__('My comment text color:').' '. 406 406 form::field('post_commentmy_c',7,7,$blowup_user['post_commentmy_c'],'colorpicker').'</label></p>'. 407 407 '</fieldset>'. 408 408 409 409 '<fieldset><legend>'.__('Footer').'</legend>'. 410 '<p class="field"><label >'.__('Footer font:').' '.410 '<p class="field"><label for="footer_f">'.__('Footer font:').' '. 411 411 form::combo('footer_f',blowupConfig::fontsList(),$blowup_user['footer_f']).'</label></p>'. 412 412 413 '<p class="field"><label >'.__('Footer font size:').' '.413 '<p class="field"><label for="footer_s">'.__('Footer font size:').' '. 414 414 form::field('footer_s',7,7,$blowup_user['footer_s']).'</label></p>'. 415 415 416 '<p class="field"><label >'.__('Footer color:').' '.416 '<p class="field"><label for="footer_c">'.__('Footer color:').' '. 417 417 form::field('footer_c',7,7,$blowup_user['footer_c'],'colorpicker').'</label></p>'. 418 418 419 '<p class="field"><label >'.__('Footer links color:').' '.419 '<p class="field"><label for="footer_l_c">'.__('Footer links color:').' '. 420 420 form::field('footer_l_c',7,7,$blowup_user['footer_l_c'],'colorpicker').'</label></p>'. 421 421 422 '<p class="field"><label >'.__('Footer background color:').' '.422 '<p class="field"><label for="footer_bg_c">'.__('Footer background color:').' '. 423 423 form::field('footer_bg_c',7,7,$blowup_user['footer_bg_c'],'colorpicker').'</label></p>'. 424 424 '</fieldset>'; … … 438 438 '<h3 id="bu_export">'.__('Configuration import / export').'</h3><fieldset>'. 439 439 '<p>'.__('You can share your configuration using the following code. To apply a configuration, paste the code, click on "Apply code" and save.').'</p>'. 440 '<p>'.form::textarea('export_code',72,5,implode('; ',$tmp_array),'maximal' ).'</p>'.440 '<p>'.form::textarea('export_code',72,5,implode('; ',$tmp_array),'maximal','',false,'title="'.__('Copy this code:').'"').'</p>'. 441 441 '</fieldset>'; 442 442
Note: See TracChangeset
for help on using the changeset viewer.