Commit c15b84de authored by Romain Courteaud's avatar Romain Courteaud

Simple advertisement field.

parent 5d424ab7
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[
return """\n
<div id="vifib_swipe"></div>\n
\n
<div id="ad_content" class="hidden_fieldset">\n
\n
<section>\n
You will be able to use it for free for 1 day.<br/>\n
</section>\n
\n
<section>\n
Your instance will be requested as soon as you validate the form.<br/>\n
It will take some minutes.\n
</section>\n
\n
<section>\n
In you need commercial support for ERP5, go to <a href="http://www.erp5.com">erp5.com</a>.\n
</section>\n
\n
</div>\n
\n
<script>\n
"use strict";\n
(function (window, $) {\n
\n
var current_slide = -1,\n
content_id,\n
methods;\n
\n
methods = {\n
init: function (content_id) {\n
if (content_id === undefined) {\n
return $(this).removeAttr("data-slide").removeAttr("data-slide-id");\n
} else {\n
return $(this).attr("data-slide", -1).attr("data-slide-id", content_id);\n
}\n
},\n
slide: function(timeout) {\n
var context = $(this);\n
context.rawslider("next");\n
setTimeout(function () {\n
context.rawslider("slide", timeout);\n
}, timeout);\n
return context;\n
},\n
next: function () {\n
var content_id = $(this).attr("data-slide-id"),\n
page,\n
new_content = "",\n
context = $(this);\n
if (content_id === undefined) {\n
// no initialized. return context to not break the chain\n
return context;\n
} else {\n
page = parseInt(context.attr("data-slide"), 10) + 1;\n
new_content = $("#" + content_id).find("section").eq(page).html();\n
if (new_content === null) {\n
page = 0;\n
new_content = $("#" + content_id).find("section").eq(page).html();\n
}\n
if (new_content === null) {\n
page = -1;\n
new_content = "";\n
}\n
context.attr("data-slide", page);\n
return context.html(new_content);\n
}\n
\n
},\n
};\n
\n
$.fn.rawslider = function (method) {\n
var result;\n
if (methods.hasOwnProperty(method)) {\n
result = methods[method].apply(\n
this,\n
Array.prototype.slice.call(arguments, 1)\n
);\n
} else {\n
$.error(\'Method \' + method +\n
\' does not exist on jQuery.rawslider\');\n
}\n
return result;\n
};\n
}(window, jQuery));\n
\n
$("#vifib_swipe")\n
.css({\n
"background-color": "white",\n
"color": "black",\n
"min-width": "100%",\n
"min-height": "5em",\n
})\n
.rawslider("init", "ad_content")\n
.rawslider("slide", 5000);\n
</script>\n
"""\n
]]></string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Base_getVifibAdSwipe</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -95,6 +95,7 @@
<string>my_url_string</string>
<string>your_image_url</string>
<string>your_service_title</string>
<string>your_ad</string>
<string>your_instance_xml</string>
<string>your_description</string>
</list>
......
413
\ No newline at end of file
414
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment