This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Enqueue scripts and styles | |
| */ | |
| function the_general_scripts() { | |
| wp_enqueue_style( 'style', get_stylesheet_uri() ); | |
| if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { | |
| wp_enqueue_script( 'comment-reply' ); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="row buffer-top-plus"> | |
| <div class="d5-d16 bg-gray-bg box-out-con"> | |
| <div class="row"> | |
| <div class="d5-d8"> | |
| <figure class="box-out pull-right"> | |
| <img src="{{ site.url }}assets/img/placeholders/profile.jpg" alt="" class="d-all" style="margin-bottom:12px;"> | |
| <figcaption style="line-height:20px;">The current vice-chancellor is Nigel Carrington, who took up the role in September 2008.</figcaption> | |
| </figure> | |
| </div> | |
| <div class="d9-d16"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // PHP is useful for conditional logic where the HTML structure is very different - e.g. | |
| $number_of_highlight_boxes = '<t4 type="content" name="Number of boxes" output="normal" modifiers="" />'; | |
| if ($number_of_highlight_boxes == "1") { /* write some HTML */ } else { /* write some more HTML */ } | |
| ?> | |
| <!-- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Live stream --> | |
| <iframe src='http://live.3xscreen.com/lcf/embed/' width='640' height='360' frameborder='0'></iframe> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="content-wrapper"> | |
| <div class="main-content"> | |
| <div class="row"> | |
| <div class="image-block"> | |
| <h2>Image block with optional title</h2> | |
| <figure> | |
| <img src="http://placehold.it/1000x500&text=IMAGE, VIDEO OR SLIDER" alt="Image Alt"> | |
| <figcaption> | |
| <p>This is a information for the image above, it can be either accreditation or a caption. This should not run more then 2 lines. (optional)</p> | |
| </figcaption> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Why use bundler? | |
| # Well, not all development dependencies install on all rubies. Moreover, `gem | |
| # install sinatra --development` doesn't work, as it will also try to install | |
| # development dependencies of our dependencies, and those are not conflict free. | |
| # So, here we are, `bundle install`. | |
| # | |
| # If you have issues with a gem: `bundle install --without-coffee-script`. | |
| source 'https://rubygems.org' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* There's nothing here */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php if ($media_type == 'video') { ?> | |
| <video src="<t4 type="content" name="Media" output="normal" modifiers="" formatter="image/path" />" style="width:100%;height:100%;" controls="control" preload="none"> | |
| <?php if ($video_url != '') { ?> | |
| <source src="<?php echo $video_url; ?>" type="video/youtube" /> | |
| <?php } ?> | |
| </video> | |
| <?php } else { ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- A-Z Class --> | |
| <?php | |
| // check whether class exists | |
| if(class_exists('AZ') != true) | |
| { | |
| class AZ { | |
| public $array; // profiles content array |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // formatter for displaying list children at a parent level, in a content grid | |
| if (!isset($old_section_title)) { $old_section_title = ''; } | |
| $media_path = ''; | |
| $thumbnail_media_path = "<t4 type="content" name="Optional Thumbnail" output="normal" modifiers="" formatter="image/path" />"; | |
| $current_section_title = "<t4 type="navigation" id="49"/>"; | |
| $image_or_video = "<t4 type="content" name="Image or video?" output="normal" modifiers="" />"; | |
| // this conditional prevents the list from pulling back more than the first media block instance in a child section | |
| if ($current_section_title != $old_section_title) { |