| 1 | <div class="visualClear"><!-- --></div> |
|---|
| 2 | <div i18n:domain="plone" |
|---|
| 3 | class="documentActions"> |
|---|
| 4 | <tal:docactions tal:condition="view/actions"> |
|---|
| 5 | |
|---|
| 6 | <h5 class="hiddenStructure" i18n:translate="heading_document_actions">Document Actions</h5> |
|---|
| 7 | |
|---|
| 8 | <script type="text/javascript" src="jquery.js"></script> |
|---|
| 9 | |
|---|
| 10 | <ul tal:define="normalizeString nocall: context/@@plone/normalizeString"> |
|---|
| 11 | <tal:actions repeat="daction view/actions"> |
|---|
| 12 | <tal:condition tal:condition="python:daction['id'] != 'bookmarklets'"> |
|---|
| 13 | <li tal:attributes="id python:'document-action-' + normalizeString(daction['id'])"> |
|---|
| 14 | <a href="" |
|---|
| 15 | tal:attributes="href daction/url;"> |
|---|
| 16 | <img tal:attributes="alt daction/title; |
|---|
| 17 | title daction/title; |
|---|
| 18 | src daction/icon;" /> |
|---|
| 19 | </a> |
|---|
| 20 | </li> |
|---|
| 21 | </tal:condition> |
|---|
| 22 | <tal:condition tal:condition="python:daction['id'] == 'bookmarklets'"> |
|---|
| 23 | <script language="javascript" type="text/javascript"> |
|---|
| 24 | $(document).ready(function() { |
|---|
| 25 | $('#toggleBookmarks').click(function() { |
|---|
| 26 | if ($('#toggledBookmarks').is(":hidden")) |
|---|
| 27 | { |
|---|
| 28 | $('#toggledBookmarks').fadeIn("slow"); |
|---|
| 29 | } else { |
|---|
| 30 | $('#toggledBookmarks').fadeOut("slow"); |
|---|
| 31 | } |
|---|
| 32 | }); |
|---|
| 33 | }); |
|---|
| 34 | </script> |
|---|
| 35 | |
|---|
| 36 | <li i18n:domain="PloneBookmarklets" id="document-action-bookmarklets"> |
|---|
| 37 | <a style="cursor:pointer;" |
|---|
| 38 | href="javascript:void(0);" |
|---|
| 39 | id="toggleBookmarks" |
|---|
| 40 | tal:define="title daction/title; |
|---|
| 41 | icon daction/icon" |
|---|
| 42 | tal:condition="icon"> |
|---|
| 43 | |
|---|
| 44 | <img i18n:attributes="title" src="" alt="" title="" |
|---|
| 45 | tal:attributes="src daction/icon; |
|---|
| 46 | id string:icon-${daction/id}; |
|---|
| 47 | title title; |
|---|
| 48 | alt title;" /> |
|---|
| 49 | </a> |
|---|
| 50 | |
|---|
| 51 | <span id="toggledBookmarks"> |
|---|
| 52 | <div tal:replace="structure here/@@bookmarklets" /> |
|---|
| 53 | </span> |
|---|
| 54 | </li> |
|---|
| 55 | |
|---|
| 56 | </tal:condition> |
|---|
| 57 | </tal:actions> |
|---|
| 58 | |
|---|
| 59 | |
|---|
| 60 | </ul> |
|---|
| 61 | </tal:docactions> |
|---|
| 62 | |
|---|
| 63 | <div tal:replace="structure provider:plone.documentactions" /> |
|---|
| 64 | |
|---|
| 65 | </div> |
|---|