Changeset 1454:e64273de06ad for plugins/blowupConfig/index.php
- Timestamp:
- 08/18/13 16:27:51 (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/blowupConfig/index.php
r1436 r1454 253 253 if ($can_write_images) { 254 254 echo 255 '<p class="field"><label for="body_bg_c">'.__('Background color:').' '.256 form::field('body_bg_c',7,7,$blowup_user['body_bg_c'],'colorpicker').'</ label></p>'.257 258 '<p class="field"><label for="body_bg_g">'.__('Background color fill:').' '.259 form::combo('body_bg_g',$gradient_types,$blowup_user['body_bg_g']).'</ label></p>';260 } 261 262 echo 263 '<p class="field"><label for="body_txt_f">'.__('Main text font:').' '.264 form::combo('body_txt_f',blowupConfig::fontsList(),$blowup_user['body_txt_f']).'</ label></p>'.265 266 '<p class="field"><label for="body_txt_s">'.__('Main text font size:').' '.267 form::field('body_txt_s',7,7,$blowup_user['body_txt_s']).'</ label></p>'.268 269 '<p class="field"><label for="body_txt_c">'.__('Main text color:').' '.270 form::field('body_txt_c',7,7,$blowup_user['body_txt_c'],'colorpicker').'</ label></p>'.271 272 '<p class="field"><label for="body_line_height">'.__('Text line height:').' '.273 form::field('body_line_height',7,7,$blowup_user['body_line_height']).'</ label></p>'.255 '<p class="field"><label for="body_bg_c">'.__('Background color:').'</label> '. 256 form::field('body_bg_c',7,7,$blowup_user['body_bg_c'],'colorpicker').'</p>'. 257 258 '<p class="field"><label for="body_bg_g">'.__('Background color fill:').'</label> '. 259 form::combo('body_bg_g',$gradient_types,$blowup_user['body_bg_g']).'</p>'; 260 } 261 262 echo 263 '<p class="field"><label for="body_txt_f">'.__('Main text font:').'</label> '. 264 form::combo('body_txt_f',blowupConfig::fontsList(),$blowup_user['body_txt_f']).'</p>'. 265 266 '<p class="field"><label for="body_txt_s">'.__('Main text font size:').'</label> '. 267 form::field('body_txt_s',7,7,$blowup_user['body_txt_s']).'</p>'. 268 269 '<p class="field"><label for="body_txt_c">'.__('Main text color:').'</label> '. 270 form::field('body_txt_c',7,7,$blowup_user['body_txt_c'],'colorpicker').'</p>'. 271 272 '<p class="field"><label for="body_line_height">'.__('Text line height:').'</label> '. 273 form::field('body_line_height',7,7,$blowup_user['body_line_height']).'</p>'. 274 274 '</fieldset>'. 275 275 276 276 '<fieldset><legend>'.__('Links').'</legend>'. 277 '<p class="field"><label for="body_link_c">'.__('Links color:').' '.278 form::field('body_link_c',7,7,$blowup_user['body_link_c'],'colorpicker').'</ label></p>'.279 280 '<p class="field"><label for="body_link_v_c">'.__('Visited links color:').' '.281 form::field('body_link_v_c',7,7,$blowup_user['body_link_v_c'],'colorpicker').'</ label></p>'.282 283 '<p class="field"><label for="body_link_f_c">'.__('Focus links color:').' '.284 form::field('body_link_f_c',7,7,$blowup_user['body_link_f_c'],'colorpicker').'</ label></p>'.277 '<p class="field"><label for="body_link_c">'.__('Links color:').'</label> '. 278 form::field('body_link_c',7,7,$blowup_user['body_link_c'],'colorpicker').'</p>'. 279 280 '<p class="field"><label for="body_link_v_c">'.__('Visited links color:').'</label> '. 281 form::field('body_link_v_c',7,7,$blowup_user['body_link_v_c'],'colorpicker').'</p>'. 282 283 '<p class="field"><label for="body_link_f_c">'.__('Focus links color:').'</label> '. 284 form::field('body_link_f_c',7,7,$blowup_user['body_link_f_c'],'colorpicker').'</p>'. 285 285 '</fieldset>'. 286 286 … … 289 289 if ($can_write_images) { 290 290 echo 291 '<p class="field"><label for="prelude_c">'.__('Prelude color:').' '.292 form::field('prelude_c',7,7,$blowup_user['prelude_c'],'colorpicker').'</ label></p>';291 '<p class="field"><label for="prelude_c">'.__('Prelude color:').'</label> '. 292 form::field('prelude_c',7,7,$blowup_user['prelude_c'],'colorpicker').'</p>'; 293 293 } 294 294 … … 297 297 form::checkbox('blog_title_hide',1,$blowup_user['blog_title_hide']).'</label></p>'. 298 298 299 '<p class="field"><label for="blog_title_f">'.__('Main title font:').' '.300 form::combo('blog_title_f',blowupConfig::fontsList(),$blowup_user['blog_title_f']).'</ label></p>'.301 302 '<p class="field"><label for="blog_title_s">'.__('Main title font size:').' '.303 form::field('blog_title_s',7,7,$blowup_user['blog_title_s']).'</ label></p>'.304 305 '<p class="field"><label for="blog_title_c">'.__('Main title color:').' '.306 form::field('blog_title_c',7,7,$blowup_user['blog_title_c'],'colorpicker').'</ label></p>'.307 308 '<p class="field"><label for="blog_title_a">'.__('Main title alignment:').' '.309 form::combo('blog_title_a',array(__('center')=>'center',__('left')=>'left',__('right')=>'right'),$blowup_user['blog_title_a']).'</ label></p>'.310 311 '<p class="field"><label for="blog_title_p">'.__('Main title position (x:y)').' '.312 form::field('blog_title_p',7,7,$blowup_user['blog_title_p']).'</ label></p>'.299 '<p class="field"><label for="blog_title_f">'.__('Main title font:').'</label> '. 300 form::combo('blog_title_f',blowupConfig::fontsList(),$blowup_user['blog_title_f']).'</p>'. 301 302 '<p class="field"><label for="blog_title_s">'.__('Main title font size:').'</label> '. 303 form::field('blog_title_s',7,7,$blowup_user['blog_title_s']).'</p>'. 304 305 '<p class="field"><label for="blog_title_c">'.__('Main title color:').'</label> '. 306 form::field('blog_title_c',7,7,$blowup_user['blog_title_c'],'colorpicker').'</p>'. 307 308 '<p class="field"><label for="blog_title_a">'.__('Main title alignment:').'</label> '. 309 form::combo('blog_title_a',array(__('center')=>'center',__('left')=>'left',__('right')=>'right'),$blowup_user['blog_title_a']).'</p>'. 310 311 '<p class="field"><label for="blog_title_p">'.__('Main title position (x:y)').'</label> '. 312 form::field('blog_title_p',7,7,$blowup_user['blog_title_p']).'</p>'. 313 313 '</fieldset>'; 314 314 … … 322 322 echo 323 323 '<fieldset><legend>'.__('Top image').'</legend>'. 324 '<p class="field"><label for="top_image">'.__('Top image'). 325 form::combo('top_image',$top_images,($blowup_user['top_image'] ? $blowup_user['top_image'] : 'default')).'</ label></p>'.324 '<p class="field"><label for="top_image">'.__('Top image').'</label> '. 325 form::combo('top_image',$top_images,($blowup_user['top_image'] ? $blowup_user['top_image'] : 'default')).'</p>'. 326 326 '<p>'.__('Choose "Custom..." to upload your own image.').'</p>'. 327 327 328 '<p id="uploader"><label for="upfile">'.__('Add your image:'). 328 '<p id="uploader"><label for="upfile">'.__('Add your image:').'</label> '. 329 329 ' ('.sprintf(__('JPEG or PNG file, 800 pixels wide, maximum size %s'),files::size(DC_MAX_UPLOAD_SIZE)).')'. 330 330 '<input type="file" name="upfile" id="upfile" size="35" />'. 331 '</ label></p>'.331 '</p>'. 332 332 333 333 '<h3>'.__('Preview').'</h3>'. … … 340 340 echo 341 341 '<fieldset><legend>'.__('Sidebar').'</legend>'. 342 '<p class="field"><label for="sidebar_position">'.__('Sidebar position:').' '.343 form::combo('sidebar_position',array(__('right')=>'right',__('left')=>'left'),$blowup_user['sidebar_position']).'</ label></p>'.344 345 '<p class="field"><label for="sidebar_text_f">'.__('Sidebar text font:').' '.346 form::combo('sidebar_text_f',blowupConfig::fontsList(),$blowup_user['sidebar_text_f']).'</ label></p>'.347 348 '<p class="field"><label for="sidebar_text_s">'.__('Sidebar text font size:').' '.349 form::field('sidebar_text_s',7,7,$blowup_user['sidebar_text_s']).'</ label></p>'.350 351 '<p class="field"><label for="sidebar_text_c">'.__('Sidebar text color:').' '.352 form::field('sidebar_text_c',7,7,$blowup_user['sidebar_text_c'],'colorpicker').'</ label></p>'.353 354 '<p class="field"><label for="sidebar_title_f">'.__('Sidebar titles font:').' '.355 form::combo('sidebar_title_f',blowupConfig::fontsList(),$blowup_user['sidebar_title_f']).'</ label></p>'.356 357 '<p class="field"><label for="sidebar_title_s">'.__('Sidebar titles font size:').' '.358 form::field('sidebar_title_s',7,7,$blowup_user['sidebar_title_s']).'</ label></p>'.359 360 '<p class="field"><label for="sidebar_title_c">'.__('Sidebar titles color:').' '.361 form::field('sidebar_title_c',7,7,$blowup_user['sidebar_title_c'],'colorpicker').'</ label></p>'.362 363 '<p class="field"><label for="sidebar_title2_f">'.__('Sidebar 2nd level titles font:').' '.364 form::combo('sidebar_title2_f',blowupConfig::fontsList(),$blowup_user['sidebar_title2_f']).'</ label></p>'.365 366 '<p class="field"><label for="sidebar_title2_s">'.__('Sidebar 2nd level titles font size:').' '.367 form::field('sidebar_title2_s',7,7,$blowup_user['sidebar_title2_s']).'</ label></p>'.368 369 '<p class="field"><label for="sidebar_title2_c">'.__('Sidebar 2nd level titles color:').' '.370 form::field('sidebar_title2_c',7,7,$blowup_user['sidebar_title2_c'],'colorpicker').'</ label></p>'.371 372 '<p class="field"><label for="sidebar_line_c">'.__('Sidebar lines color:').' '.373 form::field('sidebar_line_c',7,7,$blowup_user['sidebar_line_c'],'colorpicker').'</ label></p>'.374 375 '<p class="field"><label for="sidebar_link_c">'.__('Sidebar links color:').' '.376 form::field('sidebar_link_c',7,7,$blowup_user['sidebar_link_c'],'colorpicker').'</ label></p>'.377 378 '<p class="field"><label for="sidebar_link_v_c">'.__('Sidebar visited links color:').' '.379 form::field('sidebar_link_v_c',7,7,$blowup_user['sidebar_link_v_c'],'colorpicker').'</ label></p>'.380 381 '<p class="field"><label for="sidebar_link_f_c">'.__('Sidebar focus links color:').' '.382 form::field('sidebar_link_f_c',7,7,$blowup_user['sidebar_link_f_c'],'colorpicker').'</ label></p>'.342 '<p class="field"><label for="sidebar_position">'.__('Sidebar position:').'</label> '. 343 form::combo('sidebar_position',array(__('right')=>'right',__('left')=>'left'),$blowup_user['sidebar_position']).'</p>'. 344 345 '<p class="field"><label for="sidebar_text_f">'.__('Sidebar text font:').'</label> '. 346 form::combo('sidebar_text_f',blowupConfig::fontsList(),$blowup_user['sidebar_text_f']).'</p>'. 347 348 '<p class="field"><label for="sidebar_text_s">'.__('Sidebar text font size:').'</label> '. 349 form::field('sidebar_text_s',7,7,$blowup_user['sidebar_text_s']).'</p>'. 350 351 '<p class="field"><label for="sidebar_text_c">'.__('Sidebar text color:').'</label> '. 352 form::field('sidebar_text_c',7,7,$blowup_user['sidebar_text_c'],'colorpicker').'</p>'. 353 354 '<p class="field"><label for="sidebar_title_f">'.__('Sidebar titles font:').'</label> '. 355 form::combo('sidebar_title_f',blowupConfig::fontsList(),$blowup_user['sidebar_title_f']).'</p>'. 356 357 '<p class="field"><label for="sidebar_title_s">'.__('Sidebar titles font size:').'</label> '. 358 form::field('sidebar_title_s',7,7,$blowup_user['sidebar_title_s']).'</p>'. 359 360 '<p class="field"><label for="sidebar_title_c">'.__('Sidebar titles color:').'</label> '. 361 form::field('sidebar_title_c',7,7,$blowup_user['sidebar_title_c'],'colorpicker').'</p>'. 362 363 '<p class="field"><label for="sidebar_title2_f">'.__('Sidebar 2nd level titles font:').'</label> '. 364 form::combo('sidebar_title2_f',blowupConfig::fontsList(),$blowup_user['sidebar_title2_f']).'</p>'. 365 366 '<p class="field"><label for="sidebar_title2_s">'.__('Sidebar 2nd level titles font size:').'</label> '. 367 form::field('sidebar_title2_s',7,7,$blowup_user['sidebar_title2_s']).'</p>'. 368 369 '<p class="field"><label for="sidebar_title2_c">'.__('Sidebar 2nd level titles color:').'</label> '. 370 form::field('sidebar_title2_c',7,7,$blowup_user['sidebar_title2_c'],'colorpicker').'</p>'. 371 372 '<p class="field"><label for="sidebar_line_c">'.__('Sidebar lines color:').'</label> '. 373 form::field('sidebar_line_c',7,7,$blowup_user['sidebar_line_c'],'colorpicker').'</p>'. 374 375 '<p class="field"><label for="sidebar_link_c">'.__('Sidebar links color:').'</label> '. 376 form::field('sidebar_link_c',7,7,$blowup_user['sidebar_link_c'],'colorpicker').'</p>'. 377 378 '<p class="field"><label for="sidebar_link_v_c">'.__('Sidebar visited links color:').'</label> '. 379 form::field('sidebar_link_v_c',7,7,$blowup_user['sidebar_link_v_c'],'colorpicker').'</p>'. 380 381 '<p class="field"><label for="sidebar_link_f_c">'.__('Sidebar focus links color:').'</label> '. 382 form::field('sidebar_link_f_c',7,7,$blowup_user['sidebar_link_f_c'],'colorpicker').'</p>'. 383 383 '</fieldset>'. 384 384 385 385 '<fieldset><legend>'.__('Entries').'</legend>'. 386 '<p class="field"><label for="date_title_f">'.__('Date title font:').' '.387 form::combo('date_title_f',blowupConfig::fontsList(),$blowup_user['date_title_f']).'</ label></p>'.388 389 '<p class="field"><label for="date_title_s">'.__('Date title font size:').' '.390 form::field('date_title_s',7,7,$blowup_user['date_title_s']).'</ label></p>'.391 392 '<p class="field"><label for="date_title_c">'.__('Date title color:').' '.393 form::field('date_title_c',7,7,$blowup_user['date_title_c'],'colorpicker').'</ label></p>'.394 395 '<p class="field"><label for="post_title_f">'.__('Entry title font:').' '.396 form::combo('post_title_f',blowupConfig::fontsList(),$blowup_user['post_title_f']).'</ label></p>'.397 398 '<p class="field"><label for="post_title_s">'.__('Entry title font size:').' '.399 form::field('post_title_s',7,7,$blowup_user['post_title_s']).'</ label></p>'.400 401 '<p class="field"><label for="post_title_c">'.__('Entry title color:').' '.402 form::field('post_title_c',7,7,$blowup_user['post_title_c'],'colorpicker').'</ label></p>';386 '<p class="field"><label for="date_title_f">'.__('Date title font:').'</label> '. 387 form::combo('date_title_f',blowupConfig::fontsList(),$blowup_user['date_title_f']).'</p>'. 388 389 '<p class="field"><label for="date_title_s">'.__('Date title font size:').'</label> '. 390 form::field('date_title_s',7,7,$blowup_user['date_title_s']).'</p>'. 391 392 '<p class="field"><label for="date_title_c">'.__('Date title color:').'</label> '. 393 form::field('date_title_c',7,7,$blowup_user['date_title_c'],'colorpicker').'</p>'. 394 395 '<p class="field"><label for="post_title_f">'.__('Entry title font:').'</label> '. 396 form::combo('post_title_f',blowupConfig::fontsList(),$blowup_user['post_title_f']).'</p>'. 397 398 '<p class="field"><label for="post_title_s">'.__('Entry title font size:').'</label> '. 399 form::field('post_title_s',7,7,$blowup_user['post_title_s']).'</p>'. 400 401 '<p class="field"><label for="post_title_c">'.__('Entry title color:').'</label> '. 402 form::field('post_title_c',7,7,$blowup_user['post_title_c'],'colorpicker').'</p>'; 403 403 404 404 if ($can_write_images) { 405 405 echo 406 '<p class="field"><label for="post_comment_bg_c">'.__('Comment background color:').' '.407 form::field('post_comment_bg_c',7,7,$blowup_user['post_comment_bg_c'],'colorpicker').'</ label></p>';408 } 409 410 echo 411 '<p class="field"><label for="post_comment_c">'.__('Comment text color:').' '.412 form::field('post_comment_c',7,7,$blowup_user['post_comment_c'],'colorpicker').'</ label></p>';406 '<p class="field"><label for="post_comment_bg_c">'.__('Comment background color:').'</label> '. 407 form::field('post_comment_bg_c',7,7,$blowup_user['post_comment_bg_c'],'colorpicker').'</p>'; 408 } 409 410 echo 411 '<p class="field"><label for="post_comment_c">'.__('Comment text color:').'</label> '. 412 form::field('post_comment_c',7,7,$blowup_user['post_comment_c'],'colorpicker').'</p>'; 413 413 414 414 if ($can_write_images) { 415 415 echo 416 '<p class="field"><label for="post_commentmy_bg_c">'.__('My comment background color:').' '.417 form::field('post_commentmy_bg_c',7,7,$blowup_user['post_commentmy_bg_c'],'colorpicker').'</ label></p>';418 } 419 420 echo 421 '<p class="field"><label for="post_commentmy_c">'.__('My comment text color:').' '.422 form::field('post_commentmy_c',7,7,$blowup_user['post_commentmy_c'],'colorpicker').'</ label></p>'.416 '<p class="field"><label for="post_commentmy_bg_c">'.__('My comment background color:').'</label> '. 417 form::field('post_commentmy_bg_c',7,7,$blowup_user['post_commentmy_bg_c'],'colorpicker').'</p>'; 418 } 419 420 echo 421 '<p class="field"><label for="post_commentmy_c">'.__('My comment text color:').'</label> '. 422 form::field('post_commentmy_c',7,7,$blowup_user['post_commentmy_c'],'colorpicker').'</p>'. 423 423 '</fieldset>'. 424 424 425 425 '<fieldset><legend>'.__('Footer').'</legend>'. 426 '<p class="field"><label for="footer_f">'.__('Footer font:').' '.427 form::combo('footer_f',blowupConfig::fontsList(),$blowup_user['footer_f']).'</ label></p>'.428 429 '<p class="field"><label for="footer_s">'.__('Footer font size:').' '.430 form::field('footer_s',7,7,$blowup_user['footer_s']).'</ label></p>'.431 432 '<p class="field"><label for="footer_c">'.__('Footer color:').' '.433 form::field('footer_c',7,7,$blowup_user['footer_c'],'colorpicker').'</ label></p>'.434 435 '<p class="field"><label for="footer_l_c">'.__('Footer links color:').' '.436 form::field('footer_l_c',7,7,$blowup_user['footer_l_c'],'colorpicker').'</ label></p>'.437 438 '<p class="field"><label for="footer_bg_c">'.__('Footer background color:').' '.439 form::field('footer_bg_c',7,7,$blowup_user['footer_bg_c'],'colorpicker').'</ label></p>'.426 '<p class="field"><label for="footer_f">'.__('Footer font:').'</label> '. 427 form::combo('footer_f',blowupConfig::fontsList(),$blowup_user['footer_f']).'</p>'. 428 429 '<p class="field"><label for="footer_s">'.__('Footer font size:').'</label> '. 430 form::field('footer_s',7,7,$blowup_user['footer_s']).'</p>'. 431 432 '<p class="field"><label for="footer_c">'.__('Footer color:').'</label> '. 433 form::field('footer_c',7,7,$blowup_user['footer_c'],'colorpicker').'</p>'. 434 435 '<p class="field"><label for="footer_l_c">'.__('Footer links color:').'</label> '. 436 form::field('footer_l_c',7,7,$blowup_user['footer_l_c'],'colorpicker').'</p>'. 437 438 '<p class="field"><label for="footer_bg_c">'.__('Footer background color:').'</label> '. 439 form::field('footer_bg_c',7,7,$blowup_user['footer_bg_c'],'colorpicker').'</p>'. 440 440 '</fieldset>'; 441 441 442 442 echo 443 443 '<fieldset><legend>'.__('Additional CSS').'</legend>'. 444 '<p><label for="extra_css">'.__('Any additional CSS styles (must be written using the CSS syntax):').' '.444 '<p><label for="extra_css">'.__('Any additional CSS styles (must be written using the CSS syntax):').'</label> '. 445 445 form::textarea('extra_css',72,5,html::escapeHTML($blowup_user['extra_css']),'maximal','',false,'title="'.__('Additional CSS').'"'). 446 '</ label></p>'.446 '</p>'. 447 447 '</fieldset>'; 448 448
Note: See TracChangeset
for help on using the changeset viewer.