Webseiten und ZubehörProgrammierung UmsetzungPflege Backups BetreuungJoomla-Spezialist

SonstigeSchnipsel

In LESS kann man Variablen vordefinieren. Farbwerte, Paddings und mehr. Hilfreich z.B., will man mal einen Grauton etwas heller stellen, Man muss nicht in diversen Dateien die color-Werte anpassen, sondern kann das an 1 Stelle erledigen. Bootstrap übertreibt mit diesem Feature etwas und ich suche mir regelmäßig einen Wolf. Erster Schritt, eine sortierbare Übersicht. Vielleicht hilft's was.

Bootstrap-3-Variablen dynamisch ausgelesen

/media/plg_system_bs3ghsvs/less/variables.less

/templates/protostarbs3ghsvs/less/variables.less

Alle 387 Einträge auf 1 Seite anzeigen

BS3-Original und Overrides des aktiven Templates

VariableBootstrapTemplate#
@gray-base#0001
@gray-darkerlighten(@gray-base, 13.5%)#1010102
@gray-darklighten(@gray-base, 20%)3
@graylighten(@gray-base, 33.5%)4
@gray-lightlighten(@gray-base, 46.7%)5
@gray-lighterlighten(@gray-base, 93.5%)#ccc6
@brand-primarydarken(#428bca, 6.5%)7
@brand-success#5cb85c8
@brand-info#5bc0de9
@brand-warning#f0ad4e10
@brand-danger#d9534f@red11
@body-bg#fff@gray-lighter212
@text-color@gray-dark@black13
@link-color@brand-primary@red14
@link-hover-colordarken(@link-color, 15%)15
@link-hover-decorationunderline16
@font-family-sans-serif"Helvetica Neue", Helvetica, Arial, sans-serifArial, Helvetica, "Arial Unicode MS", Sans-Serif17
@font-family-serifGeorgia, "Times New Roman", Times, serifGeorgia, "Times New Roman", Times, serif18
@font-family-monospaceMenlo, Monaco, Consolas, "Courier New", monospaceMonaco, Menlo, Consolas, "Courier New", monospace19
@font-family-base@font-family-sans-serif@font-family-sans-serif20
@font-size-base14px21
@font-size-largeceil((@font-size-base * 1.25))22
@font-size-smallceil((@font-size-base * 0.85))23
@font-size-h1floor((@font-size-base * 2.6))24
@font-size-h2floor((@font-size-base * 2.15))25
@font-size-h3ceil((@font-size-base * 1.7))26
@font-size-h4ceil((@font-size-base * 1.25))27
@font-size-h5@font-size-base28
@font-size-h6ceil((@font-size-base * 0.85))29
@line-height-base1.42857142930
@line-height-computedfloor((@font-size-base * @line-height-base))31
@headings-font-familyinherit@font-family-sans-serif32
@headings-font-weight500normal33
@headings-line-height1.134
@headings-colorinherit@gray-darker35
@icon-font-path"../fonts/"36
@icon-font-name"glyphicons-halflings-regular"37
@icon-font-svg-id"glyphicons_halflingsregular"38
@padding-base-vertical6px39
@padding-base-horizontal12px40
@padding-large-vertical10px41
@padding-large-horizontal16px42
@padding-small-vertical5px43
@padding-small-horizontal10px44
@padding-xs-vertical1px45
@padding-xs-horizontal5px46
@line-height-large1.333333347
@line-height-small1.548
@border-radius-base4px49
@border-radius-large6px50
@border-radius-small3px51
@component-active-color#fff@white52
@component-active-bg@brand-primary@brand-danger53
@caret-width-base4px54
@caret-width-large5px55
@table-cell-padding8px56
@table-condensed-cell-padding5px57
@table-bgtransparent58
@table-bg-accent#f9f9f959
@table-bg-hover#f5f5f560
@table-bg-active@table-bg-hover61
@table-border-color#ddd62
@btn-font-weightnormal63
@btn-default-color#33364
@btn-default-bg#fff65
@btn-default-border#ccc66
@btn-primary-color#fff67
@btn-primary-bg@brand-primary68
@btn-primary-borderdarken(@btn-primary-bg, 5%)69
@btn-success-color#fff70
@btn-success-bg@brand-success71
@btn-success-borderdarken(@btn-success-bg, 5%)72
@btn-info-color#fff73
@btn-info-bg@brand-info74
@btn-info-borderdarken(@btn-info-bg, 5%)75
@btn-warning-color#fff76
@btn-warning-bg@brand-warning77
@btn-warning-borderdarken(@btn-warning-bg, 5%)78
@btn-danger-color#fff79
@btn-danger-bg@brand-danger80
@btn-danger-borderdarken(@btn-danger-bg, 5%)81
@btn-link-disabled-color@gray-light82
@btn-border-radius-base@border-radius-base83
@btn-border-radius-large@border-radius-large84
@btn-border-radius-small@border-radius-small85
@input-bg#fff86
@input-bg-disabled@gray-lighter87
@input-color@gray88
@input-border#ccc89
@input-border-radius@border-radius-base90
@input-border-radius-large@border-radius-large91
@input-border-radius-small@border-radius-small92
@input-border-focus#66afe993
@input-color-placeholder#99994
@input-height-base(@line-height-computed + (@padding-base-vertical * 2) + 2)95
@input-height-large(ceil(@font-size-large * @line-height-large) + (@padding-large-vertical * 2) + 2)96
@input-height-small(floor(@font-size-small * @line-height-small) + (@padding-small-vertical * 2) + 2)97
@form-group-margin-bottom15px98
@legend-color@gray-dark99
@legend-border-color#e5e5e5100
@input-group-addon-bg@gray-lighter101
@input-group-addon-border-color@input-border102
@cursor-disablednot-allowed103
@dropdown-bg#fff104
@dropdown-borderrgba(0,0,0,.15)105
@dropdown-fallback-border#ccc106
@dropdown-divider-bg#e5e5e5107
@dropdown-link-color@gray-dark108
@dropdown-link-hover-colordarken(@gray-dark, 5%)@white109
@dropdown-link-hover-bg#f5f5f5@red110
@dropdown-link-active-color@component-active-color111
@dropdown-link-active-bg@component-active-bg112
@dropdown-link-disabled-color@gray-light113
@dropdown-header-color@gray-light114
@dropdown-caret-color#000115
@zindex-navbar1000116
@zindex-dropdown1000117
@zindex-popover1060118
@zindex-tooltip1070119
@zindex-navbar-fixed1030120
@zindex-modal-background1040121
@zindex-modal1050122
@screen-xs480px123
@screen-xs-min@screen-xs480px124
@screen-phone@screen-xs-min125
@screen-sm768px126
@screen-sm-min@screen-sm768px127
@screen-tablet@screen-sm-min128
@screen-md992px129
@screen-md-min@screen-md992px130
@screen-desktop@screen-md-min131
@screen-lg1200px132
@screen-lg-min@screen-lg1200px133
@screen-lg-desktop@screen-lg-min134
@screen-xs-max(@screen-sm-min - 1)(@screen-sm-min - 1)135
@screen-sm-max(@screen-md-min - 1)(@screen-md-min - 1)136
@screen-md-max(@screen-lg-min - 1)(@screen-lg-min - 1)137
@grid-columns12138
@grid-gutter-width30px139
@grid-float-breakpoint@screen-sm-min140
@grid-float-breakpoint-max(@grid-float-breakpoint - 1)141
@container-tablet(720px + @grid-gutter-width)142
@container-sm@container-tablet143
@container-desktop(940px + @grid-gutter-width)144
@container-md@container-desktop145
@container-large-desktop(1140px + @grid-gutter-width)146
@container-lg@container-large-desktop147
@navbar-height50px0148
@navbar-margin-bottom@line-height-computed0149
@navbar-border-radius@border-radius-base150
@navbar-padding-horizontalfloor((@grid-gutter-width / 2))151
@navbar-padding-vertical((@navbar-height - @line-height-computed) / 2)152
@navbar-collapse-max-height340px153
@navbar-default-color#777154
@navbar-default-bg#f8f8f8@gray-lighter5155
@navbar-default-borderdarken(@navbar-default-bg, 6.5%)156
@navbar-default-link-color#777@red157
@navbar-default-link-hover-color#333lighten(@yellow, 15%)158
@navbar-default-link-hover-bgtransparent@red159
@navbar-default-link-active-color#555@nav-pills-active-link-hover-color160
@navbar-default-link-active-bgdarken(@navbar-default-bg, 6.5%)@nav-pills-active-link-hover-bg161
@navbar-default-link-disabled-color#ccc162
@navbar-default-link-disabled-bgtransparent163
@navbar-default-brand-color@navbar-default-link-color164
@navbar-default-brand-hover-colordarken(@navbar-default-brand-color, 10%)165
@navbar-default-brand-hover-bgtransparent166
@navbar-default-toggle-hover-bg#ddd167
@navbar-default-toggle-icon-bar-bg#888168
@navbar-default-toggle-border-color#ddd169
@navbar-inverse-colorlighten(@gray-light, 15%)170
@navbar-inverse-bg#222171
@navbar-inverse-borderdarken(@navbar-inverse-bg, 10%)172
@navbar-inverse-link-colorlighten(@gray-light, 15%)173
@navbar-inverse-link-hover-color#fff174
@navbar-inverse-link-hover-bgtransparent175
@navbar-inverse-link-active-color@navbar-inverse-link-hover-color176
@navbar-inverse-link-active-bgdarken(@navbar-inverse-bg, 10%)177
@navbar-inverse-link-disabled-color#444178
@navbar-inverse-link-disabled-bgtransparent179
@navbar-inverse-brand-color@navbar-inverse-link-color180
@navbar-inverse-brand-hover-color#fff181
@navbar-inverse-brand-hover-bgtransparent182
@navbar-inverse-toggle-hover-bg#333183
@navbar-inverse-toggle-icon-bar-bg#fff184
@navbar-inverse-toggle-border-color#333185
@nav-link-padding10px 15px186
@nav-link-hover-bg@gray-lighter187
@nav-disabled-link-color@gray-light188
@nav-disabled-link-hover-color@gray-light189
@nav-tabs-border-color#ddd190
@nav-tabs-link-hover-border-color@gray-lighter191
@nav-tabs-active-link-hover-bg@body-bg192
@nav-tabs-active-link-hover-color@gray193
@nav-tabs-active-link-hover-border-color#ddd194
@nav-tabs-justified-link-border-color#ddd195
@nav-tabs-justified-active-link-border-color@body-bg196
@nav-pills-border-radius@border-radius-base1197
@nav-pills-active-link-hover-bg@component-active-bg@orange198
@nav-pills-active-link-hover-color@component-active-color@white199
@pagination-color@link-color200
@pagination-bg#fff@white201
@pagination-border#ddd@gray-lighter2202
@pagination-hover-color@link-hover-color203
@pagination-hover-bg@gray-lighter@gray-lighter4204
@pagination-hover-border#ddd@gray-lighter2205
@pagination-active-color#fff@black206
@pagination-active-bg@brand-primary@gray-lighter4207
@pagination-active-border@brand-primary@gray-lighter2208
@pagination-disabled-color@gray-light209
@pagination-disabled-bg#fff@white210
@pagination-disabled-border#ddd@gray-lighter2211
@pager-bg@pagination-bg212
@pager-border@pagination-border213
@pager-border-radius15px214
@pager-hover-bg@pagination-hover-bg215
@pager-active-bg@pagination-active-bg216
@pager-active-color@pagination-active-color217
@pager-disabled-color@pagination-disabled-color218
@jumbotron-padding30px219
@jumbotron-colorinherit220
@jumbotron-bg@gray-lighter221
@jumbotron-heading-colorinherit222
@jumbotron-font-sizeceil((@font-size-base * 1.5))223
@jumbotron-heading-font-sizeceil((@font-size-base * 4.5))224
@state-success-text#3c763d225
@state-success-bg#dff0d8226
@state-success-borderdarken(spin(@state-success-bg, -10), 5%)227
@state-info-text#31708f228
@state-info-bg#d9edf7229
@state-info-borderdarken(spin(@state-info-bg, -10), 7%)230
@state-warning-text#8a6d3b231
@state-warning-bg#fcf8e3232
@state-warning-borderdarken(spin(@state-warning-bg, -10), 5%)233
@state-danger-text#a94442234
@state-danger-bg#f2dede235
@state-danger-borderdarken(spin(@state-danger-bg, -10), 5%)236
@tooltip-max-width200px237
@tooltip-color#fff@black238
@tooltip-bg#000@state-info-bg239
@tooltip-opacity.91240
@tooltip-arrow-width5px241
@tooltip-arrow-color@tooltip-bg242
@popover-bg#fff243
@popover-max-width276px244
@popover-border-colorrgba(0,0,0,.2)245
@popover-fallback-border-color#ccc246
@popover-title-bgdarken(@popover-bg, 3%)247
@popover-arrow-width10px248
@popover-arrow-color@popover-bg249
@popover-arrow-outer-width(@popover-arrow-width + 1)250
@popover-arrow-outer-colorfadein(@popover-border-color, 5%)251
@popover-arrow-outer-fallback-colordarken(@popover-fallback-border-color, 20%)252
@label-default-bg@gray-light253
@label-primary-bg@brand-primary254
@label-success-bg@brand-success255
@label-info-bg@brand-info256
@label-warning-bg@brand-warning257
@label-danger-bg@brand-danger258
@label-color#fff@white259
@label-link-hover-color#fff@white260
@modal-inner-padding15px261
@modal-title-padding15px262
@modal-title-line-height@line-height-base263
@modal-content-bg#fff264
@modal-content-border-colorrgba(0,0,0,.2)265
@modal-content-fallback-border-color#999266
@modal-backdrop-bg#000267
@modal-backdrop-opacity.5268
@modal-header-border-color#e5e5e5269
@modal-footer-border-color@modal-header-border-color270
@modal-lg900px271
@modal-md600px272
@modal-sm300px273
@alert-padding15px274
@alert-border-radius@border-radius-base275
@alert-link-font-weightbold276
@alert-success-bg@state-success-bg277
@alert-success-text@state-success-text278
@alert-success-border@state-success-border279
@alert-info-bg@state-info-bg280
@alert-info-text@state-info-text281
@alert-info-border@state-info-border282
@alert-warning-bg@state-warning-bg283
@alert-warning-text@state-warning-text284
@alert-warning-border@state-warning-border285
@alert-danger-bg@state-danger-bg286
@alert-danger-text@state-danger-text287
@alert-danger-border@state-danger-border288
@progress-bg#f5f5f5289
@progress-bar-color#fff290
@progress-border-radius@border-radius-base291
@progress-bar-bg@brand-primary292
@progress-bar-success-bg@brand-success293
@progress-bar-warning-bg@brand-warning294
@progress-bar-danger-bg@brand-danger295
@progress-bar-info-bg@brand-info296
@list-group-bg#fff297
@list-group-border#ddd298
@list-group-border-radius@border-radius-base299
@list-group-hover-bg#f5f5f5300
@list-group-active-color@component-active-color301
@list-group-active-bg@component-active-bg302
@list-group-active-border@list-group-active-bg303
@list-group-active-text-colorlighten(@list-group-active-bg, 40%)304
@list-group-disabled-color@gray-light305
@list-group-disabled-bg@gray-lighter306
@list-group-disabled-text-color@list-group-disabled-color307
@list-group-link-color#555308
@list-group-link-hover-color@list-group-link-color309
@list-group-link-heading-color#333310
@panel-bg#fff311
@panel-body-padding15px312
@panel-heading-padding10px 15px313
@panel-footer-padding@panel-heading-padding314
@panel-border-radius@border-radius-base315
@panel-inner-border#ddd316
@panel-footer-bg#f5f5f5317
@panel-default-text@gray-dark318
@panel-default-border#ddd319
@panel-default-heading-bg#f5f5f5320
@panel-primary-text#fff321
@panel-primary-border@brand-primary322
@panel-primary-heading-bg@brand-primary323
@panel-success-text@state-success-text324
@panel-success-border@state-success-border325
@panel-success-heading-bg@state-success-bg326
@panel-info-text@state-info-text327
@panel-info-border@state-info-border328
@panel-info-heading-bg@state-info-bg329
@panel-warning-text@state-warning-text330
@panel-warning-border@state-warning-border331
@panel-warning-heading-bg@state-warning-bg332
@panel-danger-text@state-danger-text333
@panel-danger-border@state-danger-border334
@panel-danger-heading-bg@state-danger-bg335
@thumbnail-padding4px336
@thumbnail-bg@body-bglighten(@thumbnail-border, 10%)337
@thumbnail-border#ddd@gray-lighter2338
@thumbnail-border-radius@border-radius-base339
@thumbnail-caption-color@text-color340
@thumbnail-caption-padding9px4px341
@well-bg#f5f5f5342
@well-borderdarken(@well-bg, 7%)343
@badge-color#fff344
@badge-link-hover-color#fff345
@badge-bg@gray-light346
@badge-active-color@link-color347
@badge-active-bg#fff348
@badge-font-weightbold349
@badge-line-height1350
@badge-border-radius10px351
@breadcrumb-padding-vertical8px15px352
@breadcrumb-padding-horizontal15px0353
@breadcrumb-bg#f5f5f5transparent354
@breadcrumb-color#ccc@black355
@breadcrumb-active-color@gray-light@gray-light356
@breadcrumb-separator"/""|"357
@carousel-text-shadow0 1px 2px rgba(0,0,0,.6)358
@carousel-control-color#fff359
@carousel-control-width15%360
@carousel-control-opacity.5361
@carousel-control-font-size20px362
@carousel-indicator-active-bg#fff363
@carousel-indicator-border-color#fff364
@carousel-caption-color#fff365
@close-font-weightbold366
@close-color#000@red367
@close-text-shadow0 1px 0 #fff368
@code-color#c7254e369
@code-bg#f9f2f4@gray-lighter5370
@kbd-color#fff371
@kbd-bg#333372
@pre-bg#f5f5f5373
@pre-color@gray-dark374
@pre-border-color#ccc375
@pre-scrollable-max-height340px376
@component-offset-horizontal180px377
@text-muted@gray-light378
@abbr-border-color@gray-light379
@headings-small-color@gray-light380
@blockquote-small-color@gray-light381
@blockquote-font-size(@font-size-base * 1.25)382
@blockquote-border-color@gray-lighter383
@page-header-border-color@gray-lighter@separator-border-color384
@dl-horizontal-offset@component-offset-horizontal385
@dl-horizontal-breakpoint@grid-float-breakpoint386
@hr-border@gray-lighter387
<?php
/*
2015-10-11
bootstrap-3-variables.php
Variablen und Werte aus BS3-variables.less (Orig.) auslesen.
2015-10-17: zusätzlich Custom Werte aus template-eigener variables.less.
*/
?>
<?php
defined('_JEXEC') or die;

$selector = 'bootstrap-3-variables';

$html = array();
$link = '';
$countCollect = 0;

$app = JFactory::getApplication();

// Relevant für FooTable, wenn paging enabled
if (!($maxentries = $app->input->get->getInt('maxentries')))
{
 $maxentries = 50;
}

$apologise = JText::_('ICOMOONCLASSES_APOLOGISE');

$file = '/media/plg_system_bs3ghsvs/less/variables.less';
$fileAbs = JPATH_SITE . $file;

$template = $app->getTemplate();
$fileCustom = '/templates/' . $template . '/less/variables.less';
$fileCustomAbs = JPATH_SITE . $fileCustom;

if (!file_exists($fileAbs))
{
 $html[] = '<p class="alert alert-error">Datei ';
 $html[] = $file;
 $html[] = ' nicht gefunden.';
 $html[] = $apologise;
 $html[] = '</p>';
}
elseif (!file_exists($fileCustomAbs))
{
 $html[] = '<p class="alert alert-error">Datei ';
 $html[] = $fileCustom;
 $html[] = ' nicht gefunden.';
 $html[] = $apologise;
 $html[] = '</p>';
}
else
{

 $link = '<p><a href="' . JUri::root(true) . $file . '" target="_blank">' . $file . '</a></p>';
 $link .= '<p><a href="' . JUri::root(true) . $fileCustom . '" target="_blank">' . $fileCustom . '</a></p>';

 $collect = collectLessVariablesGhsvs($fileAbs);
 $countCollect = count($collect);
 
 if ($countCollect)
 {
  $i = 0;
  
  $collectCustom = collectLessVariablesGhsvs($fileCustomAbs);

  $html[] = '<h4>BS3-Original und Overrides des aktiven Templates</h4>';
  #$html[] = '<div class="table-responsive">';
  $html[] = '<table class="table table-condensed table-bordered" id="' . $selector . '"';
  $html[] = '>';
  $html[] = '<thead>';
  $html[] = '<tr>';
  $html[] = '<th>Variable</th>';
  $html[] = '<th data-breakpoints="xxs">Bootstrap</th>';
  $html[] = '<th data-breakpoints="xs">Template</th>';
  $html[] = '<th data-type="number">#</th>';
  $html[] = '</tr>';
  $html[] = '</thead>';
  $html[] = '<tbody>';
  foreach ($collect as $k => $v)
  {
   $vCustom = '';
   $html[] = '<tr>';
   $html[] = '<td data-ghsvs="toggle">' . $k . '</td>';
   $html[] = '<td>' . $v . '</td>';
   if (isset($collectCustom[$k]))
   {
    $vCustom = $collectCustom[$k];
    unset($collectCustom[$k]);
   }
   $html[] = '<td>' . $vCustom . '</td>';
   $html[] = '<td data-ghsvs="number">' . (++$i) . '</td>';
   $html[] = '</tr>';
  }
  $html[] = '</tbody>';
  $html[] = '</table>';
  #$html[] = '</div><!--/table-responsive-->';
 }
}
if (!count($html))
{
 $html[] = '<p class="alert alert-error">Da ist wohl was schief gelaufen. ';
 $html[] = $apologise;
 $html[] = '</p>';
}
else
{
 // Mehr Einträge in Tabelle anzeigen?
 $uri = JUri::getInstance();
 if ($countCollect > $maxentries)
 {
  $uri->setVar('maxentries', $countCollect);
  $link .= '<p class=" btn btn-default text-fett" style="font-size:1.3em;"><a rel="nofollow" href="'.$uri.'#BELOWHEADER">Alle '.$countCollect.' Einträge auf 1 Seite  anzeigen</a></p>';
 }

   
 ########### FooTable 3 START ###########
 // Speziell. Wir haben Footable auf unserem Server via Plugin installiert.
 // Ggf. Zeilen entfernen
 $options = array(
  'empty' => JText::_('GHSVS_MODULES_FOOTABLE_EMPTY'),
  'sorting' => array(
   'enabled' => true
  ),
  'filtering' => array(
   'enabled' => true
  ),
  'paging' => array(
   'enabled' => ($countCollect > $maxentries) ? true : false,
   'size' => $maxentries,
   'countFormat' => JText::sprintf('JLIB_HTML_PAGE_CURRENT_OF_TOTAL', '{CP}', '{TP}'),
   'current' => 1,
   'limit' => 10,
   'position' => 'center'
  ),
  'state' => array(
   'enabled' => true,
   'filtering' => true,
   'paging' => true,
   'sorting' => true,
   'key' => $selector
  ),
  // Erster geöffnet. Auch nach Sortieren wird erster geöffnet.
  'expandFirst' => false,
  //'useParentWidth' => true,
  'stopPropagation' => true,
  // Leichteres Handling der Breakpoints. Nehmen drunter liegende mit.
  'cascade' => true,
  'breakpoints' => array(
  // Du muss xxs eingeben, damit Spalte bei *xs* *verschwindet*!
  'xxs' => 480,
  'xs' => 620,
  'sm' => 768,
  'md' => 992,
  'lg' => 1200,
  ),
 );
 JHtml::_('bs3ghsvs.footable', '#' . $selector, $options);
 ########### FooTable 3 ENDE ###########
 
 echo '<style>table{
 word-wrap: normal
 -webkit-hyphens: none;
 -moz-hyphens: none;
 -ms-hyphens: none;
 -o-hyphens: none;
 hyphens: none;
 }
 @-moz-document url-prefix() {
 fieldset { display: table-cell; }
 }
 [data-ghsvs="toggle"]{
  font-weight: bold;
  background-color: #fafafa;
  cursor:pointer;
 }
 [data-ghsvs="number"]{
  text-align: right;
 }
 </style>';
}

echo $link . implode('', $html);

function collectLessVariablesGhsvs($fileAbs)
{
 $lines = file($fileAbs);
 $collect = array();
 foreach ($lines as $i => $line){
  $line = trim($line);
  if (strpos($line, '@') !== 0 || strpos($line, ':') === false)
  {
   continue;
  }
  // Fix 2015-10-17.
  // Derzeit verwendet BS3 nur "//" als Kommentarzeichen
  if (strpos($line, '//') !== false)
  {
   $line = explode('//', $line, 2);
   $line = $line[0];
  }

  $line = explode(':', $line, 2);
  if (count($line) != 2){
   continue;
  }
  
  // Vorsicht! Derzeit geht das noch mit Semikolon.
  // Es sind aber auch Semikolons statt Komma zwischen
  // Funktions-Parametern erlaubt.
  // Siehe "Fix 2015-10-17"
  // $parts = explode(';', $line[1], 2);
  // $line[1] = trim($parts[0]);
  
  $collect[trim($line[0])] = trim($line[1], ' ;');
 }
 return $collect;
}

Verbesserungsvorschläge und Feature-Wünsche sind willkommen.

Alle nicht explizit als fertige Erweiterung markierten Skripte und Codes von www.ghsvs.de dienen als Ansätze / Ideen für eigene Ausarbeitung. GHSVS bzw. die jeweiligen Autoren übernehmen keinerlei Garantien beim Einsatz Ihrer kostenlosen Erweiterungen, Programme, Codes und Skripte, helfen aber gerne bei Rückfragen, soweit zeitlich möglich.

CSS Konfiguration LESS Template Bootstrap