<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>I-Tech Web Design North Wales &#187; css</title>
	<atom:link href="http://www.itechwebdesign.co.uk/blog-web-design-north-wales/tag/css-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.itechwebdesign.co.uk/blog-web-design-north-wales</link>
	<description>We offer professional website design services in North Wales and Chester areas</description>
	<lastBuildDate>Mon, 11 Mar 2013 14:24:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Nice Social Bookmark &#8211; no img width and height attributes</title>
		<link>http://www.itechwebdesign.co.uk/blog-web-design-north-wales/04/2011/nice-social-bookmark-no-img-width-and-height-attributes/</link>
		<comments>http://www.itechwebdesign.co.uk/blog-web-design-north-wales/04/2011/nice-social-bookmark-no-img-width-and-height-attributes/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 13:49:41 +0000</pubDate>
		<dc:creator>ewanvrooyen</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[image tag]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[social bookmark]]></category>

		<guid isPermaLink="false">http://www.itechwebdesign.co.uk/blog-web-design-north-wales/?p=271</guid>
		<description><![CDATA[Website producers often include images on their pages badly, creating accessibility issues for visitors and increasing page load times. It is important to include the width and height attributes in each image tag.  The mark-up is valid without a height &#8230; <a href="http://www.itechwebdesign.co.uk/blog-web-design-north-wales/04/2011/nice-social-bookmark-no-img-width-and-height-attributes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Website producers often include images on their pages badly, creating accessibility issues for visitors and increasing page load times.</p>
<p>It is important to include the width and height attributes in each image tag.  The mark-up is valid without a height and width attribute, but it is best practice to include them.</p>
<p>You can include them by adding the width and height attributes to the images in the following file: modules\mod_nice_social_bookmark\mod_nice_social_bookmark.php</p>
<p>Back up first!</p>
<p>The code for the whole file is below:</p>
<pre>&lt;?php

// no direct access

//defined( '_VALID_MOS' ) or die( 'Restricted access' );

$url = "http://".$_SERVER['HTTP_HOST'] . getenv('REQUEST_URI'); 

$rss_url = "http://".$_SERVER['HTTP_HOST'];

$isize = $params-&gt;get('isize');

$iset = $params-&gt;get('iset');

$iposition = $params-&gt;get('iposition');

$document = JFactory::getDocument();

$opac = $params-&gt;get('opac');

if ($opac=="yes"){

 $document-&gt;addStyleSheet('modules/mod_nice_social_bookmark/css/nsb-opac.css');

 }

 elseif ($opac=="invert"){$document-&gt;addStyleSheet('modules/mod_nice_social_bookmark/css/nsb-opac-inv.css');

 }

 else{$document-&gt;addStyleSheet('modules/mod_nice_social_bookmark/css/nsb.css');

 }

$twlink = $params-&gt;get('twlink');

$fblink = $params-&gt;get('fblink');

$mslink = $params-&gt;get('mslink');

$rsslink = $params-&gt;get('rsslink');

echo '&lt;div align="'.$iposition.'"&gt;';
$tt = $params-&gt;get('s1', 'yes');
if ($tt == "yes"){ if ($fblink == "")
echo '&lt;a id="l1" target="_blank" rel="nofollow" href="http://www.facebook.com/sharer.php?u='.$url.'&amp;title="&gt;&lt;img title="Facebook" border="0" src="modules/mod_nice_social_bookmark/icons/facebook_'.$iset.'_'.$isize.'.png" alt="Facebook" width="32px" height="32px"  /&gt;&lt;/a&gt;&amp;nbsp;';
else echo '&lt;a id="l1" target="_blank" rel="nofollow" href="http://'.$fblink.'"&gt;&lt;img title="Facebook" border="0" src="modules/mod_nice_social_bookmark/icons/facebook_'.$iset.'_'.$isize.'.png" alt="Facebook" width="32px" height="32px"/&gt;&lt;/a&gt;&amp;nbsp;';}
$tt = $params-&gt;get('s2', 'yes');
if ($tt == "yes"){ if ($mslink == "")
echo '&lt;a id="l2" target="_blank" rel="nofollow" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&amp;amp;u='.$url.'&amp;amp;title="&gt;&lt;img title="MySpace" border="0" src="modules/mod_nice_social_bookmark/icons/myspace_'.$iset.'_'.$isize.'.png" alt="MySpace"  width="32px" height="32px" /&gt;&lt;/a&gt;&amp;nbsp;';
else echo '&lt;a id="l2" target="_blank" rel="nofollow" href="http://'.$mslink.'"&gt;&lt;img title="MySpace" border="0" src="modules/mod_nice_social_bookmark/icons/myspace_'.$iset.'_'.$isize.'.png" alt="MySpace" width="32px" height="32px" /&gt;&lt;/a&gt;&amp;nbsp;';}
$tt = $params-&gt;get('s3', 'yes');
if ($tt == "yes"){ if ($twlink == "")
echo '&lt;a id="l3" target="_blank" rel="nofollow" href="http://twitter.com/home?status='.$url.'&amp;amp;title="&gt;&lt;img title="Twitter" border="0" src="modules/mod_nice_social_bookmark/icons/twitter_'.$iset.'_'.$isize.'.png" alt="Twitter" width="32px" height="32px" /&gt;&lt;/a&gt;&amp;nbsp;';
else echo '&lt;a id="l3" target="_blank" rel="nofollow" href="http://'.$twlink.'"&gt;&lt;img title="Twitter" border="0" src="modules/mod_nice_social_bookmark/icons/twitter_'.$iset.'_'.$isize.'.png" alt="Twitter" width="32px" height="32px"  /&gt;&lt;/a&gt;&amp;nbsp;';}
$tt = $params-&gt;get('s4', 'yes');
if ($tt == "yes")echo '&lt;a id="l4" target="_blank" rel="nofollow" href="http://digg.com/submit?phase=2&amp;amp;url='.$url.'&amp;amp;title="&gt;&lt;img title="Digg" border="0" src="modules/mod_nice_social_bookmark/icons/digg_'.$iset.'_'.$isize.'.png" alt="Digg" width="32px" height="32px" /&gt;&lt;/a&gt;&amp;nbsp;';
$tt = $params-&gt;get('s5', 'yes');
if ($tt == "yes")echo '&lt;a id="l5" target="_blank" rel="nofollow" href="http://del.icio.us/post?url='.$url.'&amp;amp;title="&gt;&lt;img title="Delicious" border="0" src="modules/mod_nice_social_bookmark/icons/delicious_'.$iset.'_'.$isize.'.png" alt="Delicious" width="32px" height="32px" /&gt;&lt;/a&gt;&amp;nbsp;';
$tt = $params-&gt;get('s6', 'yes');
if ($tt == "yes")echo '&lt;a id="l6" target="_blank" rel="nofollow" href="http://www.stumbleupon.com/submit?url='.$url.'&amp;amp;title="&gt;&lt;img title="Stumbleupon" border="0" src="modules/mod_nice_social_bookmark/icons/stumbleupon_'.$iset.'_'.$isize.'.png" alt="Stumbleupon" width="32px" height="32px" /&gt;&lt;/a&gt;&amp;nbsp;';
$tt = $params-&gt;get('s7', 'yes');
if ($tt == "yes")echo '&lt;a id="l7" target="_blank" rel="nofollow" href="http://www.google.com/bookmarks/mark?op=edit&amp;amp;bkmk='.$url.'&amp;amp;title="&gt;&lt;img title="Google Bookmarks" border="0" src="modules/mod_nice_social_bookmark/icons/google_'.$iset.'_'.$isize.'.png" alt="Google Bookmarks" width="32px" height="32px" /&gt;&lt;/a&gt;&amp;nbsp;';
$tt = $params-&gt;get('s8', 'yes');
if ($tt == "yes"){if ($rsslink == "")
echo '&lt;a id="l8" target="_blank" rel="nofollow" href="'.$rss_url.'/index.php?format=feed&amp;amp;type=rss&amp;amp;title="&gt;&lt;img title="RSS Feed" border="0" src="modules/mod_nice_social_bookmark/icons/rss_'.$iset.'_'.$isize.'.png" alt="RSS Feed" width="32px" height="32px" /&gt;&lt;/a&gt;&amp;nbsp;';
else echo '&lt;a id="l8" target="_blank" rel="nofollow" href="'.$rsslink.'"&gt;&lt;img title="RSS Feed" border="0" src="modules/mod_nice_social_bookmark/icons/rss_'.$iset.'_'.$isize.'.png" alt="RSS Feed" width="32px" height="32px" /&gt;&lt;/a&gt;&amp;nbsp;';}
echo '&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;';
?&gt;</pre>
<p>Hope this help.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.itechwebdesign.co.uk%2Fblog-web-design-north-wales%2F04%2F2011%2Fnice-social-bookmark-no-img-width-and-height-attributes%2F&amp;title=Nice%20Social%20Bookmark%20%26%238211%3B%20no%20img%20width%20and%20height%20attributes"><img src="http://www.itechwebdesign.co.uk/blog-web-design-north-wales/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.itechwebdesign.co.uk/blog-web-design-north-wales/04/2011/nice-social-bookmark-no-img-width-and-height-attributes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
