X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=web%2Fthemes%2Fcontrib%2Fbootstrap%2Fbootstrap.drush.inc;h=d43e7aaabbc5dc43ac64adf57177f0c67e54ff67;hb=f3baf763d342a5f82576890e2a8111a5aaf139dc;hp=79b968591d1327d09abf0fb57d800c993cf89d87;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/themes/contrib/bootstrap/bootstrap.drush.inc b/web/themes/contrib/bootstrap/bootstrap.drush.inc index 79b968591..d43e7aaab 100644 --- a/web/themes/contrib/bootstrap/bootstrap.drush.inc +++ b/web/themes/contrib/bootstrap/bootstrap.drush.inc @@ -1,8 +1,10 @@ '; - $output[] = ' Setting nameDescription and default value'; + $output[] = ' '; + $output[] = ' '; + $output[] = ' Setting name'; + $output[] = ' Description and default value'; + $output[] = ' '; + $output[] = ' '; $output[] = ' '; foreach ($settings as $definition) { $output[] = ' '; - $output[] = ' ' . $definition['id'] . ''; + $output[] = ' '; + $output[] = $definition['id']; + $output[] = ' '; $output[] = ' '; - $output[] = '
' . str_replace('"e;', '"', $definition['description']) . '
'; - $output[] = '
' . Yaml::encode([$definition['id'] => $definition['defaultValue']]) . '
'; + $output[] = '
'; + $output[] = str_replace('"e;', '"', wordwrap($definition['description'])); + $output[] = '
'; + $output[] = '
';
+      $output[] = wordwrap(Yaml::encode([$definition['id'] => $definition['defaultValue']]));
+      $output[] = '
'; $output[] = ' '; $output[] = ' '; } @@ -103,7 +117,7 @@ function _drush_bootstrap_generate_docs_settings(Theme $bootstrap) { // Ensure we have link references at the bottom. $output[] = ''; $output[] = '[Drupal Bootstrap]: https://www.drupal.org/project/bootstrap'; - $output[] = '[Bootstrap Framework]: http://getbootstrap.com'; + $output[] = '[Bootstrap Framework]: https://getbootstrap.com/docs/3.3/'; // Save the generated output to the appropriate file. return file_put_contents(realpath($bootstrap->getPath() . '/docs/Theme-Settings.md'), implode("\n", $output)) !== FALSE;