Ticket #63 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

request to make widget output an unordered list

Reported by: datapharmer Owned by: ofer
Priority: trivial Milestone: 0.5 - Beta wordpress plugin
Component: WordPress Plugin Version: 0.3.6
Keywords: widget, list, flags, langauges, ul, li Cc:

Description

It would be nice to have the widget display the languages/flags as an unordered list to ease compatibility with theme css. Many other sidebar widgets do this already.

This can be accomplished by editing the following lines in transposh_widget.php:

145 echo "<div class=\"" . NO_TRANSLATE_CLASS . " transposh_flags\" ><ul>";

168 echo "</ul></div>";

171 echo "<ul><li><form action=\"$clean_page_url\" method=\"post\">";

176 echo "<ul><li><form action=\"$clean_page_url\" method=\"post\">";

211 echo "</form></li></ul>";

159 echo "<li><a href=\"" . $page_url . '"'.(($this->transposh->target_language == $code) ? ' class="tr_active"' :).'>'.

163 echo "$language<br/></li>";

213 echo "<div id=\"".SPAN_PREFIX."credit\"><ul><li>by <a href=\" http://transposh.org\"><img class=\"".NO_TRANSLATE_CLASS."\" height=\"16\" width=\"16\" src=\"$plugpath/img/tplogo.png\" style=\"padding:1px;border:0px\" title=\"Transposh\" alt=\"Transposh\"/></a></li></ul></div>";

Change History

comment:1 Changed 2 years ago by ofer

  • Status changed from new to closed
  • Resolution set to fixed

Fixed by [306] made optional (would kill default theme css for example if used)

Note: See TracTickets for help on using tickets.