X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=engine%2Ftemplates%2Fplugin.html;h=7a09e427f10e078a9d5567911ec84341d4bd77f2;hb=328c05636b6ff60608480ed8f3c2e1f4dae1f371;hp=203980152851ed46fa529342867d949f1e6826f2;hpb=940c937b5e7165e3ac65c95ab010ca69313645e1;p=unfold.git diff --git a/engine/templates/plugin.html b/engine/templates/plugin.html index 20398015..7a09e427 100644 --- a/engine/templates/plugin.html +++ b/engine/templates/plugin.html @@ -1,30 +1,22 @@ +{##} {% if visible %} -
-{% if hidable %} - {% if hidden %} -

» Show {{ classname }}

- +
+{% if togglable %} + {% if not toggled %} +

Show {{ title }} ({{ classname }})

+ {% else %} - -

« Hide {{ classname }}

- {% endif %} -{% endif %} -{% endif %} + +

Hide {{ title }} ({{ classname }})

+ {% endif %}{# toggled #} +{% endif %}{# togglable #} +{% endif %}{# visible #} -
+ +
{% if visible %}
-{% endif %} - -{# Plugin initialization (if the plugin has the right structure) - from plugin.php #} -{# note: that's the spirit but using {% insert %} is not reliable enough #} -{# so for now this doesn't make it back to the browser #} -{% insert prelude_js %} -if (typeof jQuery('#{{ uuid }}').$title != 'undefined') { - jQuery('#{{ uuid }}').$title({ {{ settings_json }} plugin_uuid: '{{ uuid }}' }); - //jQuery('#{{ uuid }}').$title('show'); - }; -{% endinsert %} +{% endif %}{# visible #} +{##}