Stilistisch verbessert (General)

by Deutscher, Saturday, June 25, 2016, 08:03 (2855 days ago) @ Deutscher
edited by Deutscher, Saturday, June 25, 2016, 08:57

2.
In includes/functions.inc.php nach Zeile 1025 (etwa) die Einfügung

$bbcode->addCode ('r', 'simple_replace', null, array ('start_tag' => '<div style="background:#fcc; margin-left:5; width:50%">',
 'end_tag' => '</div>'), 'inline', array ('listitem', 'block', 'inline', 'link', 'quote', 'pre', 'monospace'), array ()); 
$bbcode->addCode ('g', 'simple_replace', null, array ('start_tag' => '<div style="background:#9b9; margin-left:5%; width:50%">',
 'end_tag' => '</div>'), 'inline', array ('listitem', 'block', 'inline', 'link', 'quote', 'pre', 'monospace'), array ());
$bbcode->addCode ('l', 'simple_replace', null, array ('start_tag' => '<div style="background:#aaf; margin-left:5%; width:50%">',
 'end_tag' => '</div>'), 'inline', array ('listitem', 'block', 'inline', 'link', 'quote', 'pre', 'monospace'), array ());
$bbcode->addCode ('w', 'simple_replace', null, array ('start_tag' => '<div style="color:#fff; background:#000;
 margin-left:5%; width:50%">', 'end_tag' => '</div>'), 'inline', array ('listitem', 'block', 'inline', 'link', 'quote', 'pre',
 'monospace'), array ());

Ich habe also "<span> </span>" jeweils ersetzt durch "<div> </div>, mit der Folge, daß jetzt der ganze Textblock eingerückt und farbig untermalt ist, nicht nur zeilenweise. Auch habe ich die Block-Breite auf 50% begrenzt. Ferner habe ich noch eine vierte Zitierfarbe eingeführt, nämlich für weiße Schrift auf schwarzem Untergrund.

Wer es testen will, probiere es z.B. auf meinem Reserveforum. - In diesem Eintrag ist soeben ein Textblock mit grüner Untermalung erschienen, was als Anschauungsbeispiel dienen möge.

Gruß
Deutscher


Complete thread:

 RSS Feed of thread