Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

Commit

Permalink
adding new sticky slide for 'Reopening 2021' (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedaul authored Jan 5, 2021
1 parent 6463572 commit c246f08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// Manually inserting a 'sticky' slide as the first item.
// Also see "Toggle this to turn on sticky slide" below.

$stickyContent = '<ul id="rotate1"><!-- manually inserting "December and Holiday Services" slide --><li class="cycle-slide cycle-slide-manual cycle-slide-active" style="position: static; top: 0px; left: 0px; z-index: 100; opacity: 1; display: block; visibility: hidden; width: 250px;"><a onclick="ga(\'send\', \'event\', { eventCategory: \'dulHome\', eventAction: \'Feature Blog Posts\', eventLabel: \'Item\'});" href="http://blogs.library.duke.edu/blog/2020/12/01/reduced-services-in-december/"><div class="blog-content"><img alt="" class="img-thumbnail" src="https://blogs.library.duke.edu/wp-content/uploads/2020/12/December-and-Holiday-Services-260x180.jpg"><p>December and Holiday Services</p></div></a></li>';
$stickyContent = '<ul id="rotate1"><!-- manually inserting "Reopening 2021" slide --><li class="cycle-slide cycle-slide-manual cycle-slide-active" style="position: static; top: 0px; left: 0px; z-index: 100; opacity: 1; display: block; visibility: hidden; width: 250px;"><a onclick="ga(\'send\', \'event\', { eventCategory: \'dulHome\', eventAction: \'Feature Blog Posts\', eventLabel: \'Item\'});" href="https://blogs.library.duke.edu/blog/2021/01/01/reopening-2021/"><div class="blog-content"><img alt="" class="img-thumbnail" src="https://blogs.library.duke.edu/wp-content/uploads/2021/01/reopening_2021-260x180.jpg"><p>Reopening 2021</p></div></a></li>';

// remove 'first' class from original first slide
$updatedContent = str_replace('<li class="first">', '<li>', $content);
Expand Down

0 comments on commit c246f08

Please sign in to comment.