Projet

Général

Profil

Révision 7e72b748

Ajouté par Assos Assos il y a plus de 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ctools/help/modal.html
82 82
    <li> <strong>modalSize</strong>: an array of data to control the sizing of the modal. It can contain:
83 83
  <ul>
84 84
  <li> <strong>type</strong>: Either <em>fixed</em> or <em>scale</em>. If fixed, the modal will always be a fixed size. If <em>scale</em> the modal will scale to a percentage of the browser window. <em>Default: scale</em>.
85
<li> <strong>width</strong>: If </em>fixed</em> the width in pixels. If <em>scale</em> the percentage of the screen expressed as a number less than zero. (For 80 percent, use .8, for example). <em>Default: .8</em></li>
85
<li> <strong>width</strong>: If <em>fixed</em> the width in pixels. If <em>scale</em> the percentage of the screen expressed as a number less than zero. (For 80 percent, use .8, for example). <em>Default: .8</em></li>
86 86
<li> <strong>height</strong>: If <em>fixed</em> the height in pixels. If <em>scale</em> the percentage of the screen expressed as a number less than zero. (For 80 percent, use .8, for example). <em>Default: .8</em></li>
87 87
<li> <strong>addWidth</strong>: Any additional width to add to the modal in pixels. Only useful if the type is scale. <em>Default: 0</em></li>
88 88
<li> <strong>addHeight</strong>: Any additional height to add to the modal in pixels. Only useful if the type is scale. <em>Default: 0</em></li>
......
168 168
<pre>
169 169
function ctools_ajax_hello_world($js) {
170 170
  $title = t('Greetings');
171
  $output = '&lt;p&gt;' . t('Hello world') . ''&lt;/p&gt;';
171
  $output = '&lt;p&gt;' . t('Hello world') . '&lt;/p&gt;';
172 172
  if ($js) {
173 173
    ctools_modal_render($title, $output);
174 174
  }

Formats disponibles : Unified diff