Dotclear


Ignore:
Timestamp:
02/19/18 16:54:30 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Use array form of optionnal parameters for form::textarea(), code formatting (PSR-2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/blowupConfig/index.php

    r3709 r3710  
    422422'<h4 class="border-top">' . __('Additional CSS') . '</h4>' . 
    423423'<p><label for="extra_css">' . __('Any additional CSS styles (must be written using the CSS syntax):') . '</label> ' . 
    424 form::textarea('extra_css', 72, 5, html::escapeHTML($blowup_user['extra_css']), 'maximal', '', false, 'title="' . __('Additional CSS') . '"') . 
     424form::textarea('extra_css', 72, 5, array( 
     425    'default'    => html::escapeHTML($blowup_user['extra_css']), 
     426    'class'      => 'maximal', 
     427    'extra_html' => 'title="' . __('Additional CSS') . '"' 
     428)) . 
    425429    '</p>' . 
    426430    '</div>'; 
     
    442446'<div id="bu_export_content">' . 
    443447'<p>' . __('You can share your configuration using the following code. To apply a configuration, paste the code, click on "Apply code" and save.') . '</p>' . 
    444 '<p>' . form::textarea('export_code', 72, 5, implode('; ', $tmp_array), 'maximal', '', false, 'title="' . __('Copy this code:') . '"') . '</p>' . 
     448'<p>' . form::textarea('export_code', 72, 5, array( 
     449    'default'    => implode('; ', $tmp_array), 
     450    'class'      => 'maximal', 
     451    'extra_html' => 'title="' . __('Copy this code:') . '"' 
     452)) . '</p>' . 
    445453    '</div>' . 
    446454    '</div>'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map