<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs
 title="Photoshop Tutorials" 
    title_url="http://z-photoshop.blogspot.com/"
         author="Zach Zurn"
             author_email="zachzurn@yahoo.com"
             author_affiliation="Zurn Productions"
             author_location="Los Angeles, CA"
             screenshot="http://hosting.gmodules.com/ig/gadgets/file/109551425659440489979/screenshot.png"
             thumbnail="http://hosting.gmodules.com/ig/gadgets/file/109551425659440489979/icon.png"
              width="295"
              height="290"
             category="tools"
             description="A Widget that brings fresh Photoshop tutorials straight to your homepage."
             render_inline="optional" scaling="false"> 
   
<Require feature="analytics"/>  </ModulePrefs>
  <UserPref name="show_date" display_name="Show Dates?" datatype="bool"/>
  <UserPref name="num_entries" display_name="Number of Entries:" />
 <Content type="html">
 <![CDATA[ 
<style> 
#gadget_div {font-color: #b2b2b2; width: 265 px; height: 202px; background-repeat:no-repeat; background-image: url('http://hosting.gmodules.com/ig/gadgets/file/109551425659440489979/main.png');} 
#content_div {width: 245 px; height: 190px; padding-top:9px;}
#links_div {overflow: scroll;}
.f_title{margin-bottom:8px; font-size: 8pt; margin-left:15px; margin-right:15px;}
a:visited { color:grey; font-weight:none;}
a{color:white; font-weight:bold; text-decoration:none;}
a:hover{text-decoration:underline;}
#gadget_title{color:white; font-size: 11pt; text-align:center;}
</style>

  
<script>
  _IG_Analytics("UA-2487914-12", "/PhotoshopGadget");
</script>
  
<div width="256" height="219" id="gadget_div"><div id="content_div"></div></div>
<script type="text/javascript"> 

// Get userprefs
var prefs = new _IG_Prefs(__MODULE_ID__);
var showdate = prefs.getBool("show_date");
var entries = prefs.getInt("num_entries");

// If user wants to display more than 5 entries, display an error
// and set the value to 5, the max allowed.
if (entries > 5)
{
    alert("You cannot display more than 5 entries.");
    entries = 5;
}

// Use the _IG_FetchFeedAsJSON() function to retrieve core feed data from
// the specified URL. Then combine the data with HTML markup for display in
// the gadget.
_IG_FetchFeedAsJSON(
  "http://feeds.feedburner.com/QualityPhotoshopTutorials",
  function(feed) {    
    if (feed == null){ 
        
    return;
  }
  
    // Start building HTML string that will be displayed in gadget.
    var html = "";
    // Access the fields in the feed
    html += "<div id='gadget_title'><b>Photoshop Tutorials</b></div>";
    html += "<div style='overflow: auto; padding-left: 5px; padding-top:15px;width:264px; height:169px;'>";    
    // Access the data for a given entry
    if (feed.Entry) {
      for (var i = 0; i < feed.Entry.length; i++) {
        html += "<div class='f_title'>"
	      +   "<a target='_blank' href='" + feed.Entry[i].Link + "'>"
	      +      feed.Entry[i].Title
	      +   "</a> ";
          if (showdate==true)
          {    
             // The feed entry Date field contains the timestamp in seconds
             // since Jan. 1, 1970. To convert it to the milliseconds needed
             // to initialize the JavaScript Date object with the correct date, 
             // multiply by 1000.
             var milliseconds = (feed.Entry[i].Date) * 1000;   
             var date = new Date(milliseconds);      
             html += "</br><span style='color:#929292;'>";
             html += date.toLocaleDateString();
             html += " ";
             html += date.toLocaleTimeString(); 
             html += "</span>";            
          }          
             html += "</div>";
          
      }
    }

  
    
  
    _gel("content_div").innerHTML = html;
    // The rest of the function parameters, which are optional: the number
    // of entries to return, and whether to return summaries.
  }, entries);

    
</script>
  </div>
<div style="float:left; text-align:center;">
 
  <div style="width: 130px; float:left;">    
      <script type="text/javascript"><!--
google_ad_client = "pub-4536736421062615";
/* 125x125, created 8/27/08 */
google_ad_slot = "6886005180";
google_ad_width = 125;
google_ad_height = 125;
//-->
</script>
</div> 
</div>
   
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
  
  ]]> 
  </Content>
  </Module>