Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
wcms-openscholar
uw_virtual_site_homepage
Commits
33dad8f7
Commit
33dad8f7
authored
Oct 05, 2017
by
Liam Morland
Browse files
Coding standards
parent
693a5dcd
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
469 additions
and
443 deletions
+469
-443
css/uw_virtual_site_homepage.css
css/uw_virtual_site_homepage.css
+9
-9
js/uw_virtual_site_homepage.js
js/uw_virtual_site_homepage.js
+14
-10
uw_virtual_site_homepage.features.conditional_fields.inc
uw_virtual_site_homepage.features.conditional_fields.inc
+1
-0
uw_virtual_site_homepage.features.field_base.inc
uw_virtual_site_homepage.features.field_base.inc
+1
-0
uw_virtual_site_homepage.features.field_instance.inc
uw_virtual_site_homepage.features.field_instance.inc
+1
-0
uw_virtual_site_homepage.features.inc
uw_virtual_site_homepage.features.inc
+1
-0
uw_virtual_site_homepage.features.user_permission.inc
uw_virtual_site_homepage.features.user_permission.inc
+1
-0
uw_virtual_site_homepage.field_group.inc
uw_virtual_site_homepage.field_group.inc
+1
-0
uw_virtual_site_homepage.install
uw_virtual_site_homepage.install
+277
-271
uw_virtual_site_homepage.module
uw_virtual_site_homepage.module
+161
-153
uw_virtual_site_homepage.strongarm.inc
uw_virtual_site_homepage.strongarm.inc
+1
-0
uw_virtual_site_homepage.views_default.inc
uw_virtual_site_homepage.views_default.inc
+1
-0
No files found.
css/uw_virtual_site_homepage.css
View file @
33dad8f7
/*** uw_virtual_site_homepage form ***/
#uw-virtual-site-homepage-node-form
#edit-options
{
display
:
none
;
display
:
none
;
}
#edit-actions-top
{
display
:
none
;
display
:
none
;
}
/* Biblio settings */
.citation-example-wrapper
{
margin-top
:
10px
;
background-color
:
white
;
padding-left
:
10px
;
padding-top
:
5px
;
padding-bottom
:
5px
;
padding-right
:
10px
;
margin-top
:
10px
;
background-color
:
white
;
padding-left
:
10px
;
padding-top
:
5px
;
padding-bottom
:
5px
;
padding-right
:
10px
;
}
#edit-field-uw-homepage-banners
.image-widget-data
input
[
id
*=
"remove-button"
]
{
display
:
none
;
display
:
none
;
}
js/uw_virtual_site_homepage.js
View file @
33dad8f7
/**
* @file
*/
(
function
(
$
)
{
Drupal
.
behaviors
.
uw_virtual_site_homepage
=
{
...
...
@@ -5,8 +9,8 @@
attach
:
function
(
context
,
settings
)
{
// RT#615890: Fixing extra space at the end of some names.
$
(
document
).
ready
(
function
()
{
$
(
'
.biblio-entry span.biblio-authors
'
).
each
(
function
()
{
$
(
document
).
ready
(
function
()
{
$
(
'
.biblio-entry span.biblio-authors
'
).
each
(
function
()
{
str
=
$
(
this
).
html
();
str
=
str
.
replace
(
/
\s
*$/
,
""
);
$
(
this
).
html
(
str
);
...
...
@@ -14,10 +18,10 @@
});
// Get all descriptions for the links in homepage banners.
$
(
'
#edit-field-uw-homepage-banners #field-uw-homepage-banners-values .field-name-field-uw-homepage-banners-link .description
'
).
each
(
function
(
index
)
{
$
(
'
#edit-field-uw-homepage-banners #field-uw-homepage-banners-values .field-name-field-uw-homepage-banners-link .description
'
).
each
(
function
(
index
)
{
// If we are on the Enter a link that you image will go to description, move it.
if
(
$
(
this
).
html
()
==
"
Enter a link that your image will go to.
"
)
{
if
(
$
(
this
).
html
()
==
"
Enter a link that your image will go to.
"
)
{
// Move the div to under the URL link textbox.
$
(
this
).
appendTo
(
$
(
this
).
parent
().
find
(
'
.link-field-url
'
));
...
...
@@ -25,7 +29,7 @@
});
// If there is a biblio header remove the [ and ].
if
(
$
(
'
#content #biblio-header
'
).
length
>
0
)
{
if
(
$
(
'
#content #biblio-header
'
).
length
>
0
)
{
// Remove the [ and ] from the biblio sort links.
var
oldhtml
=
$
(
'
#content #biblio-header
'
).
html
();
...
...
@@ -34,19 +38,19 @@
$
(
'
#content #biblio-header
'
).
html
(
newhtml
);
}
if
(
$
(
'
.biblio-filter-status
'
).
length
>
0
)
{
if
(
$
(
'
.biblio-filter-status
'
).
length
>
0
)
{
$
(
'
#biblio-search-form
'
).
append
(
$
(
'
.biblio-filter-status
'
));
}
// If there is a twitter feed in the sidebar, set the max-height to the height of the content, only if the content height is larger than the preset max-height.
if
(
$
(
'
.twitter-sidebar-wrapper
'
).
length
>
0
)
{
if
(
$
(
'
#content
'
).
length
>
0
)
{
if
(
$
(
'
.twitter-sidebar-wrapper
'
).
length
>
0
)
{
if
(
$
(
'
#content
'
).
length
>
0
)
{
if
(
$
(
'
#content
'
).
height
()
>
$
(
'
.twitter-sidebar-wrapper
'
).
css
(
'
max-height
'
).
replace
(
'
px
'
,
''
))
{
$
(
'
.twitter-sidebar-wrapper
'
).
css
(
'
max-height
'
,
$
(
'
#content
'
).
height
()
+
'
px
'
);
}
}
if
(
$
(
'
.personal_frontpage_uw_scholar
'
).
length
>
0
)
{
if
(
$
(
'
.personal_frontpage_uw_scholar
'
).
length
>
0
)
{
if
(
$
(
'
.personal_frontpage_uw_scholar
'
).
height
()
>
$
(
'
.twitter-sidebar-wrapper
'
).
css
(
'
max-height
'
).
replace
(
'
px
'
,
''
))
{
$
(
'
.twitter-sidebar-wrapper
'
).
css
(
'
max-height
'
,
$
(
'
.personal_frontpage_uw_scholar
'
).
height
()
+
'
px
'
);
}
...
...
@@ -54,4 +58,4 @@
}
}
};
})(
jQuery
);
\ No newline at end of file
})(
jQuery
);
uw_virtual_site_homepage.features.conditional_fields.inc
View file @
33dad8f7
<?php
/**
* @file
* uw_virtual_site_homepage.features.conditional_fields.inc
...
...
uw_virtual_site_homepage.features.field_base.inc
View file @
33dad8f7
<?php
/**
* @file
* uw_virtual_site_homepage.features.field_base.inc
...
...
uw_virtual_site_homepage.features.field_instance.inc
View file @
33dad8f7
<?php
/**
* @file
* uw_virtual_site_homepage.features.field_instance.inc
...
...
uw_virtual_site_homepage.features.inc
View file @
33dad8f7
<?php
/**
* @file
* uw_virtual_site_homepage.features.inc
...
...
uw_virtual_site_homepage.features.user_permission.inc
View file @
33dad8f7
<?php
/**
* @file
* uw_virtual_site_homepage.features.user_permission.inc
...
...
uw_virtual_site_homepage.field_group.inc
View file @
33dad8f7
<?php
/**
* @file
* uw_virtual_site_homepage.field_group.inc
...
...
uw_virtual_site_homepage.install
View file @
33dad8f7
This diff is collapsed.
Click to expand it.
uw_virtual_site_homepage.module
View file @
33dad8f7
This diff is collapsed.
Click to expand it.
uw_virtual_site_homepage.strongarm.inc
View file @
33dad8f7
<?php
/**
* @file
* uw_virtual_site_homepage.strongarm.inc
...
...
uw_virtual_site_homepage.views_default.inc
View file @
33dad8f7
<?php
/**
* @file
* uw_virtual_site_homepage.views_default.inc
...
...
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