Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos.core
Commits
c15b84de
Commit
c15b84de
authored
Aug 29, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simple advertisement field.
parent
5d424ab7
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
475 additions
and
1 deletion
+475
-1
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/Base_getVifibAdSwipe.xml
...eItem/portal_skins/vifib_hosting/Base_getVifibAdSwipe.xml
+166
-0
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/SoftwareRelease_viewRequestDialog.xml
...skins/vifib_hosting/SoftwareRelease_viewRequestDialog.xml
+1
-0
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/SoftwareRelease_viewRequestDialog/your_ad.xml
...fib_hosting/SoftwareRelease_viewRequestDialog/your_ad.xml
+307
-0
master/bt5/vifib_web/bt/revision
master/bt5/vifib_web/bt/revision
+1
-1
No files found.
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/Base_getVifibAdSwipe.xml
0 → 100644
View file @
c15b84de
<?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>
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/SoftwareRelease_viewRequestDialog.xml
View file @
c15b84de
...
...
@@ -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>
...
...
master/bt5/vifib_web/SkinTemplateItem/portal_skins/vifib_hosting/SoftwareRelease_viewRequestDialog/your_ad.xml
0 → 100644
View file @
c15b84de
This diff is collapsed.
Click to expand it.
master/bt5/vifib_web/bt/revision
View file @
c15b84de
413
\ No newline at end of file
414
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment