Search Widget: <title> addition
April 13th, 2013Versions 4.1.4 to 4.1.6
I noticed form a validation check that there was a WCAG 2.0 error.
H65: Using the title attribute to identify form controls when the label element cannot be used
In this case I added title="Enter text to search for" to line 135
of file [../blog/inc/widgets/widgets/_coll_search_form.widget.php]
@version $Id: _coll_search_form.widget.php 9 2011-10-24 22:32:00Z fplanque $
My Tags Plugin
August 9th, 2010Works on v2.4.7 and v4.1.6
Details on my mod to Quick Tags plug-in.
I have added a fourth <div> as follows:
1. Open _mytags.plugin.php and edit
2. In function GetDefaultSettings() copy existing div code, that starts as follows and changing div numbers. Do not change ['rows' => 4]
'moretags_div1' => array(
3. In function SkinBeginHtmlHead() copy code for div starting as follows, and change numbers to suit step 2 above.
if ( $this->Settings->get('moretags_div1') != '' )
4. In function AnotherButton(id, display, tagClass, tagStart, tagEnd, tit, open)
copy code for new button, as follows and again change div number to suit above. The 'd1' is the button label(text) and can be anything. I have used 'Cl' on a button to {clear:both} and 'dL' for a <div> that has {float:left} in it's CSS class.
MoreButtons[MoreButtons.length] = new AnotherButton(
'mtb_div1','d1','divs leftgap','
5. Then edit the plug-in via management ~ pluin installed ~ MyTags to create the style wanted.
OK All the above was unnecessary. clearboth is already a class in rsc/css/basic.css and I made two more classes to replace the divs made above; post_fll and post_flr (post detail float left and ditto float right). So the divs can be used for something else. Well at least they are implimented and the css of each cna be easily changed.







