Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
c24077ce
Commit
c24077ce
authored
Jan 13, 2015
by
Patrick O'Keeffe
Committed by
Robert Lyon
Feb 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patch to change all "text/javascript" to "application/javascript" (bug 1396426)
Change-Id: I448b74850bb387c8d9569a3df72da3927ca691d9
parent
8eb87414
Changes
69
Hide whitespace changes
Inline
Side-by-side
Showing
69 changed files
with
109 additions
and
109 deletions
+109
-109
htdocs/admin/users/edit.php
htdocs/admin/users/edit.php
+1
-1
htdocs/artefact/artefact.php
htdocs/artefact/artefact.php
+1
-1
htdocs/artefact/blog/blocktype/taggedposts/lib.php
htdocs/artefact/blog/blocktype/taggedposts/lib.php
+1
-1
htdocs/artefact/file/blocktype/internalmedia/lib.php
htdocs/artefact/file/blocktype/internalmedia/lib.php
+4
-4
htdocs/artefact/resume/blocktype/entireresume/lib.php
htdocs/artefact/resume/blocktype/entireresume/lib.php
+1
-1
htdocs/artefact/resume/blocktype/resumefield/lib.php
htdocs/artefact/resume/blocktype/resumefield/lib.php
+1
-1
htdocs/auth/browserid/lib.php
htdocs/auth/browserid/lib.php
+2
-2
htdocs/auth/lib.php
htdocs/auth/lib.php
+1
-1
htdocs/blocktype/lib.php
htdocs/blocktype/lib.php
+2
-2
htdocs/index.php
htdocs/index.php
+1
-1
htdocs/js/mahara.js
htdocs/js/mahara.js
+1
-1
htdocs/js/tablerenderer.js
htdocs/js/tablerenderer.js
+1
-1
htdocs/lib/cookieconsent.php
htdocs/lib/cookieconsent.php
+2
-2
htdocs/lib/form/elements/autocomplete.php
htdocs/lib/form/elements/autocomplete.php
+3
-3
htdocs/lib/form/elements/checkboxes.php
htdocs/lib/form/elements/checkboxes.php
+1
-1
htdocs/lib/form/elements/color.php
htdocs/lib/form/elements/color.php
+2
-2
htdocs/lib/form/elements/filebrowser.php
htdocs/lib/form/elements/filebrowser.php
+4
-4
htdocs/lib/form/elements/switchbox.php
htdocs/lib/form/elements/switchbox.php
+5
-5
htdocs/lib/form/elements/wysiwyg.php
htdocs/lib/form/elements/wysiwyg.php
+1
-1
htdocs/lib/htmloutput.php
htdocs/lib/htmloutput.php
+1
-1
htdocs/lib/imagebrowser.php
htdocs/lib/imagebrowser.php
+2
-2
htdocs/lib/pieforms/pieform.php
htdocs/lib/pieforms/pieform.php
+4
-4
htdocs/lib/pieforms/pieform/elements/calendar.php
htdocs/lib/pieforms/pieform/elements/calendar.php
+5
-5
htdocs/lib/pieforms/pieform/elements/date.php
htdocs/lib/pieforms/pieform/elements/date.php
+1
-1
htdocs/lib/pieforms/pieform/elements/expiry.php
htdocs/lib/pieforms/pieform/elements/expiry.php
+1
-1
htdocs/lib/pieforms/pieform/elements/fieldset.php
htdocs/lib/pieforms/pieform/elements/fieldset.php
+1
-1
htdocs/lib/pieforms/pieform/elements/select.php
htdocs/lib/pieforms/pieform/elements/select.php
+1
-1
htdocs/lib/pieforms/pieform/elements/textarea.php
htdocs/lib/pieforms/pieform/elements/textarea.php
+1
-1
htdocs/lib/pieforms/static/core/pieforms.js
htdocs/lib/pieforms/static/core/pieforms.js
+1
-1
htdocs/lib/web.php
htdocs/lib/web.php
+4
-4
htdocs/theme/default/templates/header/head.tpl
htdocs/theme/default/templates/header/head.tpl
+5
-5
htdocs/theme/raw/artefact/blog/templates/import/blogs.tpl
htdocs/theme/raw/artefact/blog/templates/import/blogs.tpl
+1
-1
htdocs/theme/raw/artefact/comment/blocktype/comment/templates/comment.tpl
.../artefact/comment/blocktype/comment/templates/comment.tpl
+1
-1
htdocs/theme/raw/artefact/file/blocktype/gallery/templates/slideshow.tpl
...w/artefact/file/blocktype/gallery/templates/slideshow.tpl
+1
-1
htdocs/theme/raw/artefact/file/blocktype/gallery/templates/squarethumbs.tpl
...rtefact/file/blocktype/gallery/templates/squarethumbs.tpl
+1
-1
htdocs/theme/raw/artefact/file/blocktype/gallery/templates/thumbnails.tpl
.../artefact/file/blocktype/gallery/templates/thumbnails.tpl
+1
-1
htdocs/theme/raw/artefact/file/blocktype/pdf/templates/pdf.tpl
...s/theme/raw/artefact/file/blocktype/pdf/templates/pdf.tpl
+6
-6
htdocs/theme/raw/artefact/file/templates/form/filebrowser.tpl
...cs/theme/raw/artefact/file/templates/form/filebrowser.tpl
+1
-1
htdocs/theme/raw/artefact/file/templates/import/files.tpl
htdocs/theme/raw/artefact/file/templates/import/files.tpl
+1
-1
htdocs/theme/raw/artefact/internal/templates/import/profilefields.tpl
.../raw/artefact/internal/templates/import/profilefields.tpl
+1
-1
htdocs/theme/raw/artefact/multirecipientnotification/templates/activitylistin.tpl
...t/multirecipientnotification/templates/activitylistin.tpl
+1
-1
htdocs/theme/raw/artefact/multirecipientnotification/templates/activitylistout.tpl
.../multirecipientnotification/templates/activitylistout.tpl
+1
-1
htdocs/theme/raw/artefact/plans/templates/import/plans.tpl
htdocs/theme/raw/artefact/plans/templates/import/plans.tpl
+1
-1
htdocs/theme/raw/artefact/resume/templates/fragments/book.tpl
...cs/theme/raw/artefact/resume/templates/fragments/book.tpl
+1
-1
htdocs/theme/raw/artefact/resume/templates/fragments/certification.tpl
...raw/artefact/resume/templates/fragments/certification.tpl
+1
-1
htdocs/theme/raw/artefact/resume/templates/fragments/educationhistory.tpl
.../artefact/resume/templates/fragments/educationhistory.tpl
+1
-1
htdocs/theme/raw/artefact/resume/templates/fragments/employmenthistory.tpl
...artefact/resume/templates/fragments/employmenthistory.tpl
+1
-1
htdocs/theme/raw/artefact/resume/templates/fragments/goalsandskills.tpl
...aw/artefact/resume/templates/fragments/goalsandskills.tpl
+1
-1
htdocs/theme/raw/artefact/resume/templates/fragments/membership.tpl
...me/raw/artefact/resume/templates/fragments/membership.tpl
+1
-1
htdocs/theme/raw/artefact/resume/templates/import/resumefields.tpl
...eme/raw/artefact/resume/templates/import/resumefields.tpl
+1
-1
htdocs/theme/raw/auth/webservice/templates/webservicelogs.tpl
...cs/theme/raw/auth/webservice/templates/webservicelogs.tpl
+1
-1
htdocs/theme/raw/blocktype/externalvideo/templates/content.tpl
...s/theme/raw/blocktype/externalvideo/templates/content.tpl
+1
-1
htdocs/theme/raw/search/elasticsearch/templates/search_layout.tpl
...heme/raw/search/elasticsearch/templates/search_layout.tpl
+1
-1
htdocs/theme/raw/templates/admin/groups/archives.tpl
htdocs/theme/raw/templates/admin/groups/archives.tpl
+1
-1
htdocs/theme/raw/templates/form/authlist.tpl
htdocs/theme/raw/templates/form/authlist.tpl
+1
-1
htdocs/theme/raw/templates/form/autocomplete.tpl
htdocs/theme/raw/templates/form/autocomplete.tpl
+1
-1
htdocs/theme/raw/templates/form/emaillist.tpl
htdocs/theme/raw/templates/form/emaillist.tpl
+1
-1
htdocs/theme/raw/templates/form/files.tpl
htdocs/theme/raw/templates/form/files.tpl
+1
-1
htdocs/theme/raw/templates/form/multitext.tpl
htdocs/theme/raw/templates/form/multitext.tpl
+1
-1
htdocs/theme/raw/templates/form/tags.tpl
htdocs/theme/raw/templates/form/tags.tpl
+1
-1
htdocs/theme/raw/templates/form/userlist.tpl
htdocs/theme/raw/templates/form/userlist.tpl
+1
-1
htdocs/theme/raw/templates/form/viewacl.tpl
htdocs/theme/raw/templates/form/viewacl.tpl
+1
-1
htdocs/theme/raw/templates/header/head.tpl
htdocs/theme/raw/templates/header/head.tpl
+4
-4
htdocs/theme/raw/templates/import/views.tpl
htdocs/theme/raw/templates/import/views.tpl
+1
-1
htdocs/theme/raw/templates/sideblocks/progressbar.tpl
htdocs/theme/raw/templates/sideblocks/progressbar.tpl
+1
-1
htdocs/theme/raw/templates/view/blocks.tpl
htdocs/theme/raw/templates/view/blocks.tpl
+2
-2
htdocs/user/view.php
htdocs/user/view.php
+1
-1
htdocs/view/view.php
htdocs/view/view.php
+1
-1
htdocs/webservice/admin/serviceconfig.php
htdocs/webservice/admin/serviceconfig.php
+1
-1
No files found.
htdocs/admin/users/edit.php
View file @
c24077ce
...
...
@@ -183,7 +183,7 @@ if (count($authinstances) > 1) {
}
}
$remoteusernames
=
json_encode
(
get_records_menu
(
'auth_remote_user'
,
'localusr'
,
$id
));
$js
=
"<script type='
text
/javascript'>
$js
=
"<script type='
application
/javascript'>
var externalauths = ['"
.
implode
(
"','"
,
$externalauthjs
)
.
"'];
var remoteusernames = "
.
$remoteusernames
.
";
jQuery(document).ready(function() {
...
...
htdocs/artefact/artefact.php
View file @
c24077ce
...
...
@@ -122,7 +122,7 @@ if ($artefact->get('artefacttype') == 'folder') {
$rendered
=
$artefact
->
render_self
(
$options
);
$content
=
''
;
if
(
!
empty
(
$rendered
[
'javascript'
]))
{
$content
=
'<script type="
text
/javascript">'
.
$rendered
[
'javascript'
]
.
'</script>'
;
$content
=
'<script type="
application
/javascript">'
.
$rendered
[
'javascript'
]
.
'</script>'
;
}
$content
.
=
$rendered
[
'html'
];
...
...
htdocs/artefact/blog/blocktype/taggedposts/lib.php
View file @
c24077ce
...
...
@@ -236,7 +236,7 @@ class PluginBlocktypeTaggedposts extends SystemBlocktype {
$rendered
=
$artefact
->
render_self
(
array
(
'viewid'
=>
$view
,
'details'
=>
true
));
$result
->
html
=
$rendered
[
'html'
];
if
(
!
empty
(
$rendered
[
'javascript'
]))
{
$result
->
html
.
=
'<script type="
text
/javascript">'
.
$rendered
[
'javascript'
]
.
'</script>'
;
$result
->
html
.
=
'<script type="
application
/javascript">'
.
$rendered
[
'javascript'
]
.
'</script>'
;
}
}
}
...
...
htdocs/artefact/file/blocktype/internalmedia/lib.php
View file @
c24077ce
...
...
@@ -260,7 +260,7 @@ class PluginBlocktypeInternalmedia extends PluginBlocktype {
$html
=
'<a href="'
.
$url
.
'">'
.
hsc
(
$artefact
->
get
(
'title'
))
.
'</a><br>
<span class="blocktype_internalmedia_mp3" id="'
.
$id
.
'">('
.
get_string
(
'flashanimation'
,
'blocktype.file/internalmedia'
)
.
')</span>
<script type="
text
/javascript">
<script type="
application
/javascript">
var so = new SWFObject("'
.
$url
.
'","player","'
.
$width
.
'","'
.
(
$height
+
20
)
.
'","7");
so.addParam("allowfullscreen","false");
so.addVariable("displayheight"," '
.
$height
.
'");
...
...
@@ -312,7 +312,7 @@ class PluginBlocktypeInternalmedia extends PluginBlocktype {
$html
=
'<a href="'
.
$url
.
'">'
.
hsc
(
$artefact
->
get
(
'title'
))
.
'</a><br>
<span class="blocktype_internalmedia_mp3" id="'
.
$id
.
'" style="display:block;width:'
.
$width
.
'px;height:'
.
$height
.
'px;"></span>
<span id="'
.
$id
.
'_h">'
.
get_string
(
'flashanimation'
,
'blocktype.file/internalmedia'
)
.
'</span>
<script type="
text
/javascript">
<script type="
application
/javascript">
flowplayer("'
.
$id
.
'", "'
.
$playerurl
.
'", {
clip: {
url: "'
.
$escapedurl
.
'",
...
...
@@ -352,7 +352,7 @@ class PluginBlocktypeInternalmedia extends PluginBlocktype {
return
'<a href="'
.
$url
.
'">'
.
hsc
(
$artefact
->
get
(
'title'
))
.
'</a><br>'
.
'<span class="blocktype_internalmedia_real">
<script type="
text
/javascript">
<script type="
application
/javascript">
//<![CDATA[
document.write(\'<object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="240" height="180">\\
<param name="src" value="'
.
$url
.
'">\\
...
...
@@ -468,7 +468,7 @@ class PluginBlocktypeInternalmedia extends PluginBlocktype {
);
}
return
'<script src="'
.
get_config
(
'wwwroot'
)
.
'artefact/file/blocktype/internalmedia/mahara-flashplayer/mahara-flashplayer.js"></script>
<script src="'
.
get_config
(
'wwwroot'
)
.
'artefact/file/blocktype/internalmedia/swfobject.js" type="
text
/javascript"></script>'
;
<script src="'
.
get_config
(
'wwwroot'
)
.
'artefact/file/blocktype/internalmedia/swfobject.js" type="
application
/javascript"></script>'
;
}
public
static
function
default_copy_type
()
{
...
...
htdocs/artefact/resume/blocktype/entireresume/lib.php
View file @
c24077ce
...
...
@@ -42,7 +42,7 @@ class PluginBlocktypeEntireresume extends PluginBlocktype {
$rendered
=
$resumefield
->
render_self
(
array
(
'viewid'
=>
$instance
->
get
(
'view'
)));
$result
=
$rendered
[
'html'
];
if
(
!
empty
(
$rendered
[
'javascript'
]))
{
$result
.
=
'<script type="
text
/javascript">'
.
$rendered
[
'javascript'
]
.
'</script>'
;
$result
.
=
'<script type="
application
/javascript">'
.
$rendered
[
'javascript'
]
.
'</script>'
;
}
$smarty
->
assign
(
$artefact
->
artefacttype
,
$result
);
}
...
...
htdocs/artefact/resume/blocktype/resumefield/lib.php
View file @
c24077ce
...
...
@@ -50,7 +50,7 @@ class PluginBlocktypeResumefield extends PluginBlocktype {
$rendered
=
$resumefield
->
render_self
(
$configdata
);
$result
=
$rendered
[
'html'
];
if
(
!
empty
(
$rendered
[
'javascript'
]))
{
$result
.
=
'<script type="
text
/javascript">'
.
$rendered
[
'javascript'
]
.
'</script>'
;
$result
.
=
'<script type="
application
/javascript">'
.
$rendered
[
'javascript'
]
.
'</script>'
;
}
return
$result
;
}
...
...
htdocs/auth/browserid/lib.php
View file @
c24077ce
...
...
@@ -249,7 +249,7 @@ class PluginAuthBrowserid extends PluginAuth {
*/
public
static
function
login_form_js
()
{
global
$HEADDATA
,
$SESSION
;
$HEADDATA
[]
=
'<script src="https://login.persona.org/include.js" type="
text
/javascript"></script>'
;
$HEADDATA
[]
=
'<script src="https://login.persona.org/include.js" type="
application
/javascript"></script>'
;
$wwwroot
=
get_config
(
'wwwroot'
);
$returnurl
=
hsc
(
get_relative_script_path
());
// We can't use $USER->get('sesskey') because there is no $USER object yet.
...
...
@@ -264,7 +264,7 @@ class PluginAuthBrowserid extends PluginAuth {
<
input
style
=
"display: none"
type
=
"submit"
>
</
form
>
<
script
type
=
"
text
/javascript"
>
<
script
type
=
"
application
/javascript"
>
function
browserid_login
()
{
navigator
.
id
.
get
(
function
(
assertion
)
{
if
(
assertion
)
{
...
...
htdocs/auth/lib.php
View file @
c24077ce
...
...
@@ -1354,7 +1354,7 @@ function get_login_form_js($form) {
$strcookiesnotenabled
=
json_encode
(
get_string
(
'cookiesnotenabled'
));
$cookiename
=
get_config
(
'cookieprefix'
)
.
'ctest'
;
$js
=
<<<
EOF
<
script
type
=
"
text
/javascript"
>
<
script
type
=
"
application
/javascript"
>
var
loginbox
=
$
(
'loginform_container'
);
document
.
cookie
=
"
$cookiename
=1"
;
if
(
document
.
cookie
)
{
...
...
htdocs/blocktype/lib.php
View file @
c24077ce
...
...
@@ -1003,8 +1003,8 @@ class BlockInstance {
$html
=
$pieform
->
build
();
// We probably need a new version of $pieform->build() that separates out the js
// Temporary evil hack:
if
(
preg_match
(
'/<script type="text\/javascript">(new Pieform\(.*\);)<\/script>/'
,
$html
,
$matches
))
{
$js
=
"var pf_
{
$form
[
'name'
]
}
= "
.
$matches
[
1
]
.
"pf_
{
$form
[
'name'
]
}
.init();"
;
if
(
preg_match
(
'/<script type="
(
text
|application)
\/javascript">(new Pieform\(.*\);)<\/script>/'
,
$html
,
$matches
))
{
$js
=
"var pf_
{
$form
[
'name'
]
}
= "
.
$matches
[
2
]
.
"pf_
{
$form
[
'name'
]
}
.init();"
;
}
else
{
$js
=
''
;
...
...
htdocs/index.php
View file @
c24077ce
...
...
@@ -41,7 +41,7 @@ if ($USER->is_logged_in()) {
// include slimbox2 js and css files, if it is enabled...
if
(
get_config_plugin
(
'blocktype'
,
'gallery'
,
'useslimbox2'
))
{
$langdir
=
(
get_string
(
'thisdirection'
,
'langconfig'
)
==
'rtl'
?
'-rtl'
:
''
);
$stylesheets
=
array_merge
(
$stylesheets
,
array
(
'<script type="
text
/javascript" src="'
.
append_version_number
(
get_config
(
'wwwroot'
)
.
'lib/slimbox2/js/slimbox2.js'
)
.
'"></script>'
,
$stylesheets
=
array_merge
(
$stylesheets
,
array
(
'<script type="
application
/javascript" src="'
.
append_version_number
(
get_config
(
'wwwroot'
)
.
'lib/slimbox2/js/slimbox2.js'
)
.
'"></script>'
,
'<link rel="stylesheet" type="text/css" href="'
.
append_version_number
(
get_config
(
'wwwroot'
)
.
'lib/slimbox2/css/slimbox2'
.
$langdir
.
'.css'
)
.
'">'
));
}
...
...
htdocs/js/mahara.js
View file @
c24077ce
...
...
@@ -59,7 +59,7 @@ function globalErrorHandler(data) {
function
show_login_form
(
submit
)
{
if
(
$
(
'
ajax-login-form
'
)
==
null
)
{
var
loginForm
=
DIV
({
id
:
'
ajax-login-form
'
});
loginForm
.
innerHTML
=
'
<h2>
'
+
get_string
(
'
login
'
)
+
'
</h2><a href="/">«
'
+
get_string
(
'
home
'
)
+
'
<
\
/a><div id="loginmessage">
'
+
get_string
(
'
sessiontimedout
'
)
+
'
</div><form class="pieform" name="login" method="post" action="" id="login" onsubmit="
'
+
submit
+
'
(this, 42); return false;"><table cellspacing="0" border="0" class="maharatable"><tbody><tr id="login_login_username_header" class="required text"><th><label for="login_login_username">
'
+
get_string
(
'
username
'
)
+
'
:<
\
/label><
\
/th><
\
/tr><tr id="login_login_username_container"><td><input type="text" class="required text autofocus" id="login_login_username" name="login_username" value=""><
\
/td><
\
/tr><tr><td class="description"> <
\
/td><
\
/tr><tr id="login_login_password_header" class="required password"><th><label for="login_login_password">
'
+
get_string
(
'
password
'
)
+
'
:<
\
/label><
\
/th><
\
/tr><tr id="login_login_password_container"><td><input type="password" class="required password" id="login_login_password" name="login_password" value=""><
\
/td><
\
/tr><tr><td class="description"> <
\
/td><
\
/tr><tr id="login_submit_container"><td><input type="submit" class="submit" id="login_submit" name="submit" value="
'
+
get_string
(
'
login
'
)
+
'
"><
\
/td><
\
/tr><
\
/tbody><
\
/table><div id="homepage"><
\
/div><input type="hidden" name="sesskey" value=""><input type="hidden" name="pieform_login" value=""><
\
/form><script type="
text
\
/javascript">var login_btn = null;addLoadEvent(function() { connect($(
\'
login_submit
\'
),
\'
onclick
\'
, function() { login_btn =
\'
login_submit
\'
; });});connect(
\'
login
\'
,
\'
onsubmit
\'
, function() { formStartProcessing(
\'
login
\'
, login_btn); });<
\
/script>
'
;
loginForm
.
innerHTML
=
'
<h2>
'
+
get_string
(
'
login
'
)
+
'
</h2><a href="/">«
'
+
get_string
(
'
home
'
)
+
'
<
\
/a><div id="loginmessage">
'
+
get_string
(
'
sessiontimedout
'
)
+
'
</div><form class="pieform" name="login" method="post" action="" id="login" onsubmit="
'
+
submit
+
'
(this, 42); return false;"><table cellspacing="0" border="0" class="maharatable"><tbody><tr id="login_login_username_header" class="required text"><th><label for="login_login_username">
'
+
get_string
(
'
username
'
)
+
'
:<
\
/label><
\
/th><
\
/tr><tr id="login_login_username_container"><td><input type="text" class="required text autofocus" id="login_login_username" name="login_username" value=""><
\
/td><
\
/tr><tr><td class="description"> <
\
/td><
\
/tr><tr id="login_login_password_header" class="required password"><th><label for="login_login_password">
'
+
get_string
(
'
password
'
)
+
'
:<
\
/label><
\
/th><
\
/tr><tr id="login_login_password_container"><td><input type="password" class="required password" id="login_login_password" name="login_password" value=""><
\
/td><
\
/tr><tr><td class="description"> <
\
/td><
\
/tr><tr id="login_submit_container"><td><input type="submit" class="submit" id="login_submit" name="submit" value="
'
+
get_string
(
'
login
'
)
+
'
"><
\
/td><
\
/tr><
\
/tbody><
\
/table><div id="homepage"><
\
/div><input type="hidden" name="sesskey" value=""><input type="hidden" name="pieform_login" value=""><
\
/form><script type="
application
\
/javascript">var login_btn = null;addLoadEvent(function() { connect($(
\'
login_submit
\'
),
\'
onclick
\'
, function() { login_btn =
\'
login_submit
\'
; });});connect(
\'
login
\'
,
\'
onsubmit
\'
, function() { formStartProcessing(
\'
login
\'
, login_btn); });<
\
/script>
'
;
appendChildNodes
(
document
.
body
,
DIV
({
id
:
'
overlay
'
}));
appendChildNodes
(
document
.
body
,
loginForm
);
$
(
'
login_login_username
'
).
focus
();
...
...
htdocs/js/tablerenderer.js
View file @
c24077ce
...
...
@@ -8,7 +8,7 @@
TableRendererPageLoaded
=
false
;
addLoadEvent
(
function
()
{
TableRendererPageLoaded
=
true
;
});
document
.
write
(
'
<script type="
text
/javascript" src="
'
+
config
.
wwwroot
+
'
js/Pager.js"></script>
'
);
document
.
write
(
'
<script type="
application
/javascript" src="
'
+
config
.
wwwroot
+
'
js/Pager.js"></script>
'
);
function
TableRenderer
(
target
,
source
,
columns
,
options
)
{
// to use on the callbacks
...
...
htdocs/lib/cookieconsent.php
View file @
c24077ce
...
...
@@ -50,9 +50,9 @@ function get_cookieconsent_code() {
$wwwroot
=
get_config
(
'wwwroot'
);
return
<<<CODE
<!-- Begin Cookie Consent plugin by Silktide - http://silktide.com/cookieconsent -->
<script type="
text
/javascript" src="{$wwwroot}js/cookieconsent/plugin.js"></script>
<script type="
application
/javascript" src="{$wwwroot}js/cookieconsent/plugin.js"></script>
{$stylesheets}
<script type="
text
/javascript">
<script type="
application
/javascript">
// <![CDATA[
cc.initialise({$initialisation});
// ]]>
...
...
htdocs/lib/form/elements/autocomplete.php
View file @
c24077ce
...
...
@@ -143,7 +143,7 @@ function pieform_element_autocomplete_get_headdata($element) {
$lang
=
str_replace
(
'_'
,
'-'
,
substr
(
$lang
,
0
,
((
substr_count
(
$lang
,
'_'
)
>
0
)
?
5
:
2
)));
$langfile
=
''
;
if
(
$lang
!=
'en'
&&
file_exists
(
get_config
(
'docroot'
)
.
"js/select2/select2_locale_
{
$lang
}
.js"
))
{
$langfile
=
'<script type="
text
/javascript" src="'
.
$langfile
=
'<script type="
application
/javascript" src="'
.
get_config
(
'wwwroot'
)
.
"js/select2/select2_locale_
{
$lang
}
.js"
.
'"></script>'
;
}
...
...
@@ -151,7 +151,7 @@ function pieform_element_autocomplete_get_headdata($element) {
// Try parent language pack, which, for example, would be 'pt' for 'pt-BR'.
$lang
=
substr
(
$lang
,
0
,
2
);
if
(
$lang
!=
'en'
&&
file_exists
(
get_config
(
'docroot'
)
.
"js/select2/select2_locale_
{
$lang
}
.js"
))
{
$langfile
=
'<script type="
text
/javascript" src="'
.
$langfile
=
'<script type="
application
/javascript" src="'
.
get_config
(
'wwwroot'
)
.
"js/select2/select2_locale_
{
$lang
}
.js"
.
'"></script>'
;
}
...
...
@@ -159,7 +159,7 @@ function pieform_element_autocomplete_get_headdata($element) {
$r
=
<<<JS
<link rel="stylesheet" href="{$cssfile}" />
<script type="
text
/javascript" src="{$jsfile}"></script>
<script type="
application
/javascript" src="{$jsfile}"></script>
{$langfile}
JS;
return
array
(
$r
);
...
...
htdocs/lib/form/elements/checkboxes.php
View file @
c24077ce
...
...
@@ -94,6 +94,6 @@ EOF;
}
/*}}}*/
function
pieform_element_checkboxes_get_headdata
()
{
/*{{{*/
$result
=
'<script type="
text
/javascript">'
.
pieform_element_checkboxes_js
()
.
"
\n
</script>"
;
$result
=
'<script type="
application
/javascript">'
.
pieform_element_checkboxes_js
()
.
"
\n
</script>"
;
return
array
(
$result
);
}
/*}}}*/
htdocs/lib/form/elements/color.php
View file @
c24077ce
...
...
@@ -30,7 +30,7 @@ function pieform_element_color(Pieform $form, $element) {
// Transparency optional control
if
(
$transparent
)
{
$optional
=
<<<EOF
<script type="
text
/javascript">
<script type="
application
/javascript">
var {$baseid}_oldval = '';
function {$baseid}_toggle(x) {
if ( x.checked ) {
...
...
@@ -115,7 +115,7 @@ function pieform_element_color_get_value(Pieform $form, $element) {
function
pieform_element_color_get_headdata
(
$element
)
{
$libfile
=
get_config
(
'wwwroot'
)
.
'js/jscolor/jscolor.js'
;
$result
=
array
(
'<script type="
text
/javascript" src="'
.
$libfile
.
'"></script>'
'<script type="
application
/javascript" src="'
.
$libfile
.
'"></script>'
);
return
$result
;
}
...
...
htdocs/lib/form/elements/filebrowser.php
View file @
c24077ce
...
...
@@ -1481,12 +1481,12 @@ function pieform_element_filebrowser_views_js(Pieform $form, $element) {
*/
function
pieform_element_filebrowser_get_headdata
(
$element
)
{
global
$THEME
;
$headdata
=
array
(
'<script type="
text
/javascript" src="'
.
get_config
(
'wwwroot'
)
.
'artefact/file/js/filebrowser.js"></script>'
);
$headdata
=
array
(
'<script type="
application
/javascript" src="'
.
get_config
(
'wwwroot'
)
.
'artefact/file/js/filebrowser.js"></script>'
);
if
(
$element
[
'config'
][
'upload'
])
{
// only add dropzone if filebrowser is allowed to upload
$headdata
[]
=
'<script type="
text
/javascript" src="'
.
get_config
(
'wwwroot'
)
.
'js/dropzone/dropzone.min.js"></script>'
;
$headdata
[]
=
'<script type="
application
/javascript" src="'
.
get_config
(
'wwwroot'
)
.
'js/dropzone/dropzone.min.js"></script>'
;
$headdata
[]
=
'<link href="'
.
get_config
(
'wwwroot'
)
.
'js/dropzone/css/dropzone.css" type="text/css" rel="stylesheet">'
;
$headdata
[]
=
'<script type="
text
/javascript" src="'
.
get_config
(
'wwwroot'
)
.
'artefact/file/js/filedropzone.js"></script>'
;
$headdata
[]
=
'<script type="
application
/javascript" src="'
.
get_config
(
'wwwroot'
)
.
'artefact/file/js/filedropzone.js"></script>'
;
}
$strings
=
PluginArtefactFile
::
jsstrings
(
'filebrowser'
);
$jsstrings
=
''
;
...
...
@@ -1495,7 +1495,7 @@ function pieform_element_filebrowser_get_headdata($element) {
$jsstrings
.
=
"strings.
$s
="
.
json_encode
(
get_raw_string
(
$s
,
$section
))
.
';'
;
}
}
$headdata
[]
=
'<script type="
text
/javascript">'
.
$jsstrings
.
'</script>'
;
$headdata
[]
=
'<script type="
application
/javascript">'
.
$jsstrings
.
'</script>'
;
$pluginsheets
=
$THEME
->
get_url
(
'style/style.css'
,
true
,
'artefact/file'
);
foreach
(
array_reverse
(
$pluginsheets
)
as
$sheet
)
{
...
...
htdocs/lib/form/elements/switchbox.php
View file @
c24077ce
...
...
@@ -56,7 +56,7 @@ function pieform_element_switchbox(Pieform $form, $element) {
$settings
.
=
(
isset
(
$element
[
'off_callback'
]))
?
'off_callback: '
.
$element
[
'off_callback'
]
.
', '
:
''
;
$js
=
<<<JS
<script type="
text
/javascript">
<script type="
application
/javascript">
jQuery('#{$elementid}').switchButton({
{$settings}
});
...
...
@@ -80,9 +80,9 @@ function pieform_element_switchbox_get_headdata($element) {
$r
=
<<<JS
<link rel="stylesheet" href="{$cssfile}" />
<script type="
text
/javascript" src="{$jqueryjs}"></script>
<script type="
text
/javascript" src="{$jsfile}"></script>
<script type="
text
/javascript">
<script type="
application
/javascript" src="{$jqueryjs}"></script>
<script type="
application
/javascript" src="{$jsfile}"></script>
<script type="
application
/javascript">
// Basic callback that submits the form the switchbutton is in
function switchbox_submit() {
if (typeof formchangemanager !== 'undefined') {
...
...
@@ -97,4 +97,4 @@ JS;
function
pieform_element_switchbox_get_value
(
Pieform
$form
,
$element
)
{
return
pieform_element_checkbox_get_value
(
$form
,
$element
);
}
\ No newline at end of file
}
htdocs/lib/form/elements/wysiwyg.php
View file @
c24077ce
...
...
@@ -80,7 +80,7 @@ function pieform_element_wysiwyg_rule_required(Pieform $form, $value, $element,
function
pieform_element_wysiwyg_get_headdata
()
{
global
$_PIEFORM_WYSIWYGS
;
if
(
is_html_editor_enabled
())
{
$result
=
'<script type="
text
/javascript">'
$result
=
'<script type="
application
/javascript">'
.
"
\n
var editor_to_focus;"
.
"
\n
PieformManager.connect('onsubmit', null, tinyMCE.triggerSave);"
.
"
\n
PieformManager.connect('onload', null, function() {\n"
;
...
...
htdocs/lib/htmloutput.php
View file @
c24077ce
...
...
@@ -53,7 +53,7 @@ function print_iframe_progress_handler($percent, $status) {
function
print_export_footer
(
$strexportgenerated
,
$continueurl
,
$continueurljs
,
$jsmessages
=
array
(),
$newlocation
)
{
?>
<script
type=
"
text
/javascript"
>
<script
type=
"
application
/javascript"
>
document
.
write
(
'
<div class="progress-bar" style="width: 100%;"><p>
<?php
echo
$strexportgenerated
.
' <a href="'
.
$continueurljs
.
'" target="_top">'
.
get_string
(
'continue'
,
'export'
)
.
'</a>'
;
?>
</p></div>
'
);
if
(
!
window
.
opera
)
{
// Opera can't handle this for some reason - it vomits out the
...
...
htdocs/lib/imagebrowser.php
View file @
c24077ce
...
...
@@ -247,8 +247,8 @@ class ImageBrowser {
$html
=
$pieform
->
build
();
// We probably need a new version of $pieform->build() that separates out the js
// Temporary evil hack:
if
(
preg_match
(
'/<script type="text\/javascript">(new Pieform\(.*\);)<\/script>/'
,
$html
,
$matches
))
{
$js
=
"var pf_
{
$form
[
'name'
]
}
= "
.
$matches
[
1
]
.
"pf_
{
$form
[
'name'
]
}
.init();"
;
if
(
preg_match
(
'/<script type="
(
text
|application)
\/javascript">(new Pieform\(.*\);)<\/script>/'
,
$html
,
$matches
))
{
$js
=
"var pf_
{
$form
[
'name'
]
}
= "
.
$matches
[
2
]
.
"pf_
{
$form
[
'name'
]
}
.init();"
;
}
else
{
$js
=
''
;
...
...
htdocs/lib/pieforms/pieform.php
View file @
c24077ce
...
...
@@ -801,7 +801,7 @@ class Pieform {/*{{{*/
'newIframeOnSubmit'
=>
$this
->
data
[
'newiframeonsubmit'
],
'checkDirtyChange'
=>
$this
->
data
[
'checkdirtychange'
],
));
$result
.
=
"<script type=
\"
text
/javascript
\"
>new Pieform(
$data
);</script>
\n
"
;
$result
.
=
"<script type=
\"
application
/javascript
\"
>new Pieform(
$data
);</script>
\n
"
;
}
return
$result
;
}
/*}}}*/
...
...
@@ -931,7 +931,7 @@ class Pieform {/*{{{*/
exit
;
}
echo
<<<EOF
<html><head><script type="
text
/javascript">function sendResult() { parent.pieformHandlers["{$this->name}"]($result); }</script></head><body onload="sendResult(); "></body></html>
<html><head><script type="
application
/javascript">function sendResult() { parent.pieformHandlers["{$this->name}"]($result); }</script></head><body onload="sendResult(); "></body></html>
EOF;
exit
;
}
/*}}}*/
...
...
@@ -1741,9 +1741,9 @@ function pieform_get_headdata() {/*{{{*/
// TODO: jsdirectory should be independent of ANY form
if
(
$GLOBALS
[
'_PIEFORM_REGISTRY'
])
{
array_unshift
(
$htmlelements
,
'<script type="
text
/javascript" src="'
array_unshift
(
$htmlelements
,
'<script type="
application
/javascript" src="'
.
Pieform
::
hsc
(
append_version_number
(
$form
->
get_property
(
'jsdirectory'
)
.
'pieforms.js'
))
.
'"></script>'
);
array_unshift
(
$htmlelements
,
'<script type="
text
/javascript">pieformPath = "'
array_unshift
(
$htmlelements
,
'<script type="
application
/javascript">pieformPath = "'
.
Pieform
::
hsc
(
$form
->
get_property
(
'jsdirectory'
))
.
'";</script>'
);
}
...
...
htdocs/lib/pieforms/pieform/elements/calendar.php
View file @
c24077ce
...
...
@@ -59,7 +59,7 @@ function pieform_element_calendar(Pieform $form, $element) {/*{{{*/
$result
=
'<input type="text"'
.
$form
->
element_attributes
(
$element
)
.
' value="'
.
$value
.
'">'
;
$result
.
=
'<script type="
text
/javascript">
$result
.
=
'<script type="
application
/javascript">
var input = jQuery("input#'
.
$id
.
'");'
;
if
(
!
empty
(
$options
[
'showsTime'
]))
{
$result
.
=
'input.datetimepicker({'
;
...
...
@@ -186,9 +186,9 @@ EOF;
$result
=
array
(
'<link rel="stylesheet" type="text/css" media="all" href="'
.
append_version_number
(
$libcss
)
.
'">'
,
'<link rel="stylesheet" type="text/css" media="all" href="'
.
append_version_number
(
$themefile
)
.
'">'
,
'<script type="
text
/javascript" src="'
.
append_version_number
(
$libjs
)
.
'"></script>'
,
'<script type="
text
/javascript" src="'
.
append_version_number
(
$timeaddonjs
)
.
'"></script>'
,
'<script type="
text
/javascript">'
.
$extrajs
.
'</script>'
,
'<script type="
application
/javascript" src="'
.
append_version_number
(
$libjs
)
.
'"></script>'
,
'<script type="
application
/javascript" src="'
.
append_version_number
(
$timeaddonjs
)
.
'"></script>'
,
'<script type="
application
/javascript">'
.
$extrajs
.
'</script>'
,
);
return
$result
;
}
/*}}}*/
...
...
@@ -256,4 +256,4 @@ function pieform_element_calendar_get_lang_strings($options, $langdirection = 'l
}
$options
[
'isRTL'
]
=
(
$langdirection
==
'rtl'
)
?
true
:
false
;
return
$options
;
}
/*}}}*/
\ No newline at end of file
}
/*}}}*/
htdocs/lib/pieforms/pieform/elements/date.php
View file @
c24077ce
...
...
@@ -47,7 +47,7 @@ function pieform_element_date(Pieform $form, $element) {/*{{{*/
// Optional control
if
(
!
$required
)
{
$optional
=
<<<EOF
<script type="
text
/javascript">
<script type="
application
/javascript">
function {$name}_toggle(x) {
var elements = [
$('{$name}_hour'),
...
...
htdocs/lib/pieforms/pieform/elements/expiry.php
View file @
c24077ce
...
...
@@ -93,7 +93,7 @@ function pieform_element_expiry(Pieform $form, $element) {/*{{{*/
// Make sure the input is disabled if "no end date" is selected
$script
=
<<<EOJS
<script type="
text
/javascript" language="javascript">
<script type="
application
/javascript" language="javascript">
function {$name}_change() {
if ($('{$formname}_{$name}_units').value == 'noenddate') {
$('{$formname}_{$name}').disabled = true;
...
...
htdocs/lib/pieforms/pieform/elements/fieldset.php
View file @
c24077ce
...
...
@@ -141,7 +141,7 @@ EOF;
function
pieform_element_fieldset_get_headdata
()
{
/*{{{*/
global
$_PIEFORM_FIELDSETS
;
$result
=
'<script type="
text
/javascript">'
;
$result
=
'<script type="
application
/javascript">'
;
$result
.
=
pieform_element_fieldset_js
();
foreach
(
$_PIEFORM_FIELDSETS
[
'forms'
]
as
$fieldsetform
)
{
$result
.
=
"
\n
PieformManager.connect('onload', '
{
$fieldsetform
[
'formname'
]
}
', partial(pieform_update_legends, '
{
$fieldsetform
[
'formname'
]
}
'));"
;
...
...
htdocs/lib/pieforms/pieform/elements/select.php
View file @
c24077ce
...
...
@@ -316,7 +316,7 @@ function pieform_element_select_get_inlinejs() {
}
function
pieform_element_select_get_headdata
()
{
$result
=
'<script type="
text
/javascript">'
.
"
\n
"
;
$result
=
'<script type="
application
/javascript">'
.
"
\n
"
;
$result
.
=
pieform_element_select_get_inlinejs
();
$result
.
=
'</script>'
.
"
\n
"
;
return
array
(
$result
);
...
...
htdocs/lib/pieforms/pieform/elements/textarea.php
View file @
c24077ce
...
...
@@ -93,7 +93,7 @@ function pieform_element_textarea_get_value(Pieform $form, $element) {/*{{{*/
function
pieform_element_textarea_get_headdata
()
{
/*{{{*/
global
$_PIEFORM_TEXTAREAS
;
$result
=
'<script type="
text
/javascript">'
;
$result
=
'<script type="
application
/javascript">'
;
$result
.
=
"PieformManager.loadPlugin('element', 'textarea');
\n
"
;
foreach
(
$_PIEFORM_TEXTAREAS
as
$textarea
)
{
$result
.
=
'PieformManager.connect("onload", "'
.
$textarea
[
'formname'
]
.
'", function(){new PieformTextarea($("'
.
$textarea
[
'elementname'
]
.
'"),'
.
$textarea
[
'fullwidth'
]
.
');});'
.
"
\n
"
;
...
...
htdocs/lib/pieforms/static/core/pieforms.js
View file @
c24077ce
...
...
@@ -81,7 +81,7 @@ function PieformManager() {//{{{
}
var
script
=
createDOM
(
'
script
'
,
{
'
type
'
:
'
text
/javascript
'
,
'
type
'
:
'
application
/javascript
'
,
'
src
'
:
self
.
pieformPath
+
type
+
'
s/
'
+
name
+
'
.js
'
});
...
...
htdocs/lib/web.php
View file @
c24077ce
...
...
@@ -81,7 +81,7 @@ function smarty($javascript = array(), $headers = array(), $pagestrings = array(
$wwwrootparts
=
parse_url
(
$wwwroot
);
if
(
$wwwrootparts
[
'host'
]
!=
$requesthost
)
{
$fakewwwroot
=
$wwwrootparts
[
'scheme'
]
.
'://'
.
$requesthost
.
'/'
;
$headers
[]
=
'<script type="
text
/javascript">var fakewwwroot = '
.
json_encode
(
$fakewwwroot
)
.
';</script>'
;
$headers
[]
=
'<script type="
application
/javascript">var fakewwwroot = '
.
json_encode
(
$fakewwwroot
)
.
';</script>'
;
}
}
}
...
...
@@ -107,7 +107,7 @@ function smarty($javascript = array(), $headers = array(), $pagestrings = array(
// Make jQuery accessible with $j (Mochikit has $)
$javascript_array
[]
=
$jsroot
.
'jquery/jquery.js'
;
$javascript_array
[]
=
$jsroot
.
'jquery/deprecated_jquery.js'
;
$headers
[]
=
'<script type="
text
/javascript">$j=jQuery;</script>'
;
$headers
[]
=
'<script type="
application
/javascript">$j=jQuery;</script>'
;
// TinyMCE must be included first for some reason we're not sure about
//
...
...
@@ -191,7 +191,7 @@ EOF;
}
$headers
[]
=
<<<EOF
<script type="
text
/javascript">
<script type="
application
/javascript">
tinyMCE.init({
{$tinymceconfig}
schema: 'html4',
...
...
@@ -401,7 +401,7 @@ EOF;
}
}
$stringjs
=
'<script type="
text
/javascript">'
;
$stringjs
=
'<script type="
application
/javascript">'
;
$stringjs
.
=
'var strings = '
.
json_encode
(
$strings
)
.
';'
;
$stringjs
.
=
"
\n
function plural(n) { return "
.
get_raw_string
(
'pluralrule'
,
'langconfig'
)
.
"; }
\n
"
;
$stringjs
.
=
'</script>'
;
...
...
htdocs/theme/default/templates/header/head.tpl
View file @
c24077ce
...
...
@@ -7,7 +7,7 @@
<meta
property=
"og:image"
content=
"
{
$sitelogo4facebook
}
"
/>
{
if
isset
(
$PAGEAUTHOR
)
}
<meta
name=
"author"
content=
"
{
$PAGEAUTHOR
}
"
>
{/
if
}
<title>
{
$PAGETITLE
}
</title>
<script
type=
"
text
/javascript"
>
<script
type=
"
application
/javascript"
>
var
config
=
{
literal
}{{/
literal
}
'theme'
:
{
$THEMELIST
|
safe
}
,
'sesskey'
:
'{$SESSKEY}'
,
...
...
@@ -21,13 +21,13 @@
</script>
{
$STRINGJS
|
safe
}
{
foreach
from
=
$JAVASCRIPT
item
=
script
}
<script
type=
"
text
/javascript"
src=
"
{
$script
}
"
></script>
<script
type=
"
application
/javascript"
src=
"
{
$script
}
"
></script>
{/
foreach
}
{
foreach
from
=
$HEADERS
item
=
header
}
{
$header
|
safe
}
{/
foreach
}
{
if
isset
(
$INLINEJAVASCRIPT
)
}
<script
type=
"
text
/javascript"
>
<script
type=
"
application
/javascript"
>
{
$INLINEJAVASCRIPT
|
safe
}
</script>
{/
if
}
...
...
@@ -35,11 +35,11 @@
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
{
$cssurl
}
"
>
{/
foreach
}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"
{
theme_url
filename
=
'style/print.css'
}
?v=
{
$CACHEVERSION
}
"
media=
"print"
>
<script
type=
"
text
/javascript"
src=
"
{
$WWWROOT
}
js/css.js?v=
{
$CACHEVERSION
}
"
></script>
<script
type=
"
application
/javascript"
src=
"
{
$WWWROOT
}
js/css.js?v=
{
$CACHEVERSION
}
"
></script>
<link
rel=
"shortcut icon"
href=
"
{
$WWWROOT
}
favicon.ico?v=
{
$CACHEVERSION
}
"
type=
"image/vnd.microsoft.icon"
>
<link
rel=
"image_src"
href=
"
{
$sitelogo
}
"
>
<!-- Responsive design -->
<script
type=
"
text
/javascript"
src=
"
{
$WWWROOT
}
js/rd-nav.js?v=
{
$CACHEVERSION
}
"
></script>
<script
type=
"
application
/javascript"
src=
"
{
$WWWROOT
}
js/rd-nav.js?v=
{
$CACHEVERSION
}
"
></script>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
{
if
$ADDITIONALHTMLHEAD
}{
$ADDITIONALHTMLHEAD
|
safe
}{/
if
}
{
if
$COOKIECONSENTCODE
}{
$COOKIECONSENTCODE
|
safe
}{/
if
}
...
...
htdocs/theme/raw/artefact/blog/templates/import/blogs.tpl
View file @
c24077ce
...
...
@@ -128,7 +128,7 @@
<div
class=
"cb"
></div>
</div>
{/
foreach
}
<script
type=
"
text
/javascript"
>
<script
type=
"
application
/javascript"
>
jQuery
(
function
()
{
jQuery
(
"
a.blogtitle
"
).
click
(
function
(
e
)
{
e
.
preventDefault
();
...
...
htdocs/theme/raw/artefact/comment/blocktype/comment/templates/comment.tpl
View file @
c24077ce
...
...
@@ -8,7 +8,7 @@
{
$feedback
->
pagination
|
safe
}
{
if
$enablecomments
}
<a
id=
"add_feedback_link"
class=
"feedback"
href=
""
>
{
str
tag
=
placefeedback
section
=
artefact
.
comment
}
</a>
<script
type=
"
text
/javascript"
>
<script
type=
"
application
/javascript"
>
var
feedbacklinkinblock
=
true
;
</script>
{/
if
}
...
...
htdocs/theme/raw/artefact/file/blocktype/gallery/templates/slideshow.tpl
View file @
c24077ce
...
...
@@ -19,7 +19,7 @@
</tr>
</table>
</div>
<script
type=
"
text
/javascript"
>
<script
type=
"
application
/javascript"
>
var
slideshow
{
$instanceid
}
=
new
Slideshow
(
{
$instanceid
}
,
{
$count
}
);
$j
(
function
()
{
if
((
$j
(
'
#slideshow
{
$instanceid
}
'
).
width
()
-
60
)
<
{
$width
}
)
{
...
...
htdocs/theme/raw/artefact/file/blocktype/gallery/templates/squarethumbs.tpl
View file @
c24077ce
...
...
@@ -9,7 +9,7 @@
{/
foreach
}
<div
class=
"cb"
></div>
</div>
<script
type=
"
text
/javascript"
>
<script
type=
"
application
/javascript"
>
$j
(
function
()
{
if
(
$j
(
'
#thumbnails
{
$instanceid
}
'
))
{
// adjust height of image + description box to align things up
...
...
htdocs/theme/raw/artefact/file/blocktype/gallery/templates/thumbnails.tpl
View file @
c24077ce
...
...
@@ -9,7 +9,7 @@
{/
foreach
}
<div
class=
"cb"
></div>
</div>
<script
type=
"
text
/javascript"
>
<script
type=
"
application
/javascript"
>
$j
(
function
()
{
if
(
$j
(
'
#thumbnails
{
$instanceid
}
'
))
{
// adjust height of image + description box to align things up
...
...
htdocs/theme/raw/artefact/file/blocktype/pdf/templates/pdf.tpl
View file @
c24077ce
...
...
@@ -7,9 +7,9 @@
<link
rel=
"stylesheet"
href=
"js/pdfjs/web/viewer.css"
/>
<script
type=
"
text
/javascript"
src=
"js/pdfjs/web/compatibility.js"
></script>
<script
type=
"
application
/javascript"
src=
"js/pdfjs/web/compatibility.js"
></script>
<script
type=
"
text
/javascript"
>