+ # STYLE
+ # the size for google icons
+ if not self.options.use_custom_icons:
+ if not peer_id:
+ # local sites
+ iconfile=default_local_builtin
+ xyspec="<x>128</x><y>0</y><w>32</w><h>32</h>"
+ else:
+ # remote
+ iconfile=default_foreign_builtin
+ xyspec="<x>160</x><y>0</y><w>32</w><h>32</h>"
+ iconurl="root://icons/%(iconfile)s"%locals()
+ # the size for our own brew of icons
+ else:
+ if not peer_id:
+ iconfile=self.options.local_icon
+ else:
+ iconfile=self.options.foreign_icon
+ iconurl="%(baseurl)s/%(iconfile)s"%locals()
+ xyspec=""
+
+ iconspec="<href>%(iconurl)s</href>%(xyspec)s"%locals()
+