Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {embed="embeds/.wrapper" layout="news-layout" nav_active="news" default_title="News" default_description="The latest studio news and updates from Red Storm Entertainment."}
- {preload_replace:channels='news|featured'}
- {preload_replace:excerpt='{exp:ifelse parse="inward"}{if featured_excerpt}{featured_excerpt}{if:elseif news_excerpt}{news_excerpt}{/if}{/exp:ifelse}'}
- {exp:stash:set save="yes" scope="site" refresh="1440" parse="inward" parse_tags="yes" parse_depth="3"}
- {stash:content}
- <div class="left-column news-main">
- <section class="mod posts">
- <header>
- <h2>Studio Feed</h2>
- <ul class="buttons"><li><a class="rss ir" href="http://feeds.feedburner.com/redstorm" title="Subscribe via RSS">RSS Feed</a></li></ul>
- </header>
- {exp:switchee variable="{segment_2}/{segment_4}" parse="inward" debug="yes"}
- {!-- show the base index page unless there is pagination --}
- {case default="yes"}
- <ul class="posts-index">
- {exp:channel:entries
- channel="{channels}"
- disable="categories|category_fields|member_data"
- limit="5"
- dynamic="no"
- paginate="bottom"
- year="{segment_2}"
- month="{segment_3}"
- cache="yes"
- refresh="40320"
- status="not closed"
- }
- {if switchee_no_results}
- {redirect="404"}
- {/if}
- <li>
- <article>
- <div class="news-preview-text">
- <header>
- <h6><a href="{path='news/{entry_date format="%Y/%m"}/{url_title}/'}">{title}</a></h6>
- </header>
- <div class="excerpt">{excerpt}</div>
- </div>
- <a class="posts-thumb" href="{path='news/{entry_date format="%Y/%m"}/{url_title}'}">
- {exp:ifelse parse="inward"}{if featured_image_listing_thumbnail}<img src="http://dynamic.redstorm.com{featured_image_listing_thumbnail}" height="167" width="172">{if featured_photo_gallery}<img class="btn-gallery" src="/img/btn-gallery.png" alt="Photo Gallery" height="54" width="54">{if:elseif news_photo_gallery}<img class="btn-gallery" src="/img/btn-gallery.png" alt="Photo Gallery" height="54" width="54">{/if}{if:elseif featured_image}
- {exp:ce_img:pair
- src="{featured_image_listing}"
- fallback_src="{featured_image}"
- max_width="172"
- max_height="167"
- crop="yes"
- cache="yes"
- refresh="40320"
- hash_filename="yes"
- quality="95"
- save_type="jpg"
- filter="sharpen,20"
- }
- <img src="http://dynamic.redstorm.com{made}" height="{height}" width="{width}">{if featured_photo_gallery}<img class="btn-gallery" src= "/img/btn-gallery.png" alt="Photo Gallery" height="54" width="54">{if:elseif news_photo_gallery}<img class="btn-gallery" src="/img/btn- gallery.png" alt="Photo Gallery" height="54" width="54">{/if}
- {/exp:ce_img:pair}
- {if:elseif news_image_listing_thumbnail}<img src="http://dynamic.redstorm.com{news_image_listing_thumbnail}" height="167" width="172">{if news_photo_gallery}<img class="btn-gallery" src="/img/btn-gallery.png" alt="Photo Gallery" height="54" width="54">{/if}
- {if:elseif news_image}
- {exp:ce_img:pair
- src="{news_image}"
- max_width="172"
- max_height="167"
- crop="yes"
- cache="yes"
- refresh="40320"
- hash_filename="yes"
- quality="95"
- save_type="jpg"
- filter="sharpen,20"
- }
- <img src="http://dynamic.redstorm.com{made}" height="{height}" width="{width}">{if news_photo_gallery}<img class="btn-gallery" src=" /img/btn-gallery.png" alt="Photo Gallery" height="54" width="54">{/if}
- {/exp:ce_img:pair}
- {/if}{/exp:ifelse}
- </a>
- <footer class="news-list-footer">
- <a href="{path='news/{year}/{month}/{url_title}'}" class="read-more ir" title="Read more...">Read more...</a>
- <a href="{path='news/{entry_date format="%Y/%m"}/{url_title}/'}#comments" class="comments-preview"><fb:comments-count data-href="{path='news/{entry_date format="%Y/%m"}/{url_title}}"> </fb:comments-count> comments</a>
- </footer>
- </article>
- </li>
- {!-- change pagination to ordered list at some point in the future --}
- {paginate}<div class="pagination">
- <span class="count-span">Page {abp_current_page_num_liber} of {abp_total_pages}</span>
- {abp_pages}
- {exp:ifelse parse="inward"}{if abp_is_current}
- <span class="this-page">{abp_num}</span>
- {if:else}
- <a href="{abp_link}">{abp_num}</a>
- {/if}{/exp:ifelse}
- {/abp_pages}
- <span class="padding">...</span>
- <a href="{abp_last_link}" class="last-page">Last→</a>
- </div>{/paginate}
- {/exp:channel:entries}
- </ul>
- </section>
- {/case}
- {!-- new to use {case value="#^P(\d+)\/$#|#P(\d+)$#"} --}
- {case value="#^P(\d+)\/$#|#P(\d+)$#"}
- <ul class="posts-index">
- {exp:channel:entries
- channel="{channels}"
- disable="categories|category_fields|member_data"
- limit="5"
- dynamic="no"
- paginate="bottom"
- status="not closed"
- }
- {!-- if no matches, show 404 page --}
- {if switchee_no_results}
- {redirect="404"}
- {/if}
- <li>
- <article>
- <div class="news-preview-text">
- <header>
- <h6><a href="{path='news/{entry_date format="%Y/%m"}/{url_title}/'}">{title}</a></h6>
- </header>
- <div class="excerpt">{excerpt}</div>
- </div>
- <a class="posts-thumb" href="{path='news/{entry_date format="%Y/%m"}/{url_title}'}">
- {exp:ifelse parse="inward"}{if featured_image_listing_thumbnail}<img src="http://dynamic.redstorm.com{featured_image_listing_thumbnail}" height="167" width="172">{if featured_photo_gallery}<img class="btn-gallery" src="/img/btn-gallery.png" alt="Photo Gallery" height="54" width="54">{/if}{if:elseif featured_image}
- {exp:ce_img:pair
- src="{featured_image_listing}"
- fallback_src="{featured_image}"
- max_width="172"
- max_height="167"
- crop="yes"
- cache="yes"
- refresh="40320"
- hash_filename="yes"
- quality="95"
- save_type="jpg"
- filter="sharpen,20"
- }
- <img src="http://dynamic.redstorm.com{made}" height="{height}" width="{width}">{if featured_photo_gallery}<img class="btn-gallery" src= "/img/btn-gallery.png" alt="Photo Gallery" height="54" width="54">{/if}
- {/exp:ce_img:pair}
- {if:elseif news_image_listing_thumbnail}<img src="http://dynamic.redstorm.com{news_image_listing_thumbnail}" height="167" width="172">{if news_photo_gallery}<img class="btn-gallery" src="/img/btn-gallery.png" alt="Photo Gallery" height="54" width="54">{/if}
- {if:elseif news_image}
- {exp:ce_img:pair
- src="{news_image}"
- max_width="172"
- max_height="167"
- crop="yes"
- cache="yes"
- refresh="40320"
- hash_filename="yes"
- quality="95"
- save_type="jpg"
- filter="sharpen,20"
- }
- <img src="http://dynamic.redstorm.com{made}" height="{height}" width="{width}">{if news_photo_gallery}<img class="btn-gallery" src=" /img/btn-gallery.png" alt="Photo Gallery" height="54" width="54">{/if}
- {/exp:ce_img:pair}
- {/if}{/exp:ifelse}
- </a>
- <footer class="news-list-footer">
- <a href="{path='news/{year}/{month}/{url_title}'}" class="read-more ir" title="Read more...">Read more...</a>
- <a href="{path='news/{entry_date format="%Y/%m"}/{url_title}/'}#comments" class="comments-preview"><fb:comments-count data-href="{path='news/{entry_date format="%Y/%m"}/{url_title}'}"> </fb:comments-count> comments</a>
- </footer>
- </article>
- </li>
- {paginate}<div class="pagination">
- <span class="count-span">Page {abp_current_page_num_liber} of {abp_total_pages}</span>
- {abp_pages}
- {if abp_is_current}
- <span class="this-page">{abp_num}</span>
- {if:else}
- <a href="{abp_link}">{abp_num}</a>
- {/if}
- {/abp_pages}
- <span class="padding">...</span>
- <a href="{abp_last_link}" class="last-page">Last→</a>
- </div>{/paginate}
- {/exp:channel:entries}
- </ul>
- </section>
- {/case}
- {case value="#^20\d\d\/[a-z]([\w'-])*+$#"}
- {exp:channel:entries
- channel="{channels}"
- dynamic="no"
- disable="categories|category_fields|member_data|pagination"
- require_entry="yes"
- url_title="{segment_4}"
- cache="yes"
- refresh="40320"
- status="open|closed|removed_from_frontpage"
- }
- {!-- if no matches, show 404 page --}
- {if switchee_no_results}
- {redirect="404"}
- {/if}
- {stash:og_description}{exp:ifelse parse="inward"}{if featured_excerpt}{featured_excerpt}{/if}{if news_excerpt}{news_excerpt}{/if}{/exp:ifelse}{/stash:og_description}
- {stash:facebook_image}{exp:ifelse parse="inward"}{if featured_image_listing_thumbnail}http://redstorm.com{featured_image_listing_thumbnail}{if:elseif featured_image_listing}http://redstorm.com{featured_image_listing}{if:elseif}http://redstorm.com{featured_image}{if:elseif news_image_listing_thumbnail}http://redstorm.com{news_image_listing_thumbnail}{if:elseif news_image_custom}http://redstorm.com{news_image_custom}{if:else}http://redstorm.com{news_image}{/if}{/exp:ifelse}{/stash:facebook_image}
- <article class="full-post">
- <header>
- <h1>{title}</h1>
- <h5 class="author">By {exp:ifelse parse="inward"}{if news_author}{news_author}{if:else}{author}{/if}{/exp:ifelse} posted <time datetime="{entry_date format="%Y-%m-%d %H:%i"}">{entry_date format="%M %j, %Y"} {entry_date format="%g:%i%A"}</time></h5>
- {exp:ifelse parse="inward"}
- {if featured_video_embed}
- {featured_video_embed}
- {if:elseif news_video_embed}
- {news_video_embed}
- {if:elseif featured_excerpt}
- {exp:ce_img:pair
- src="{featured_image_listing}"
- fallback_src="{featured_image}"
- max_width="543"
- max_height="300"
- crop="yes"
- hash_filename="yes"
- quality="96"
- save_type="jpg"
- allow_scale_larger="no"
- filter="sharpen,20"
- }
- <a class="post-image thumb" rel="gallery" href="{featured_image}"><img src="http://dynamic.redstorm.com{made}" width="{width}" height="{height}" alt="{title}"></a>
- {/exp:ce_img:pair}
- {if:elseif news_excerpt}
- {exp:ce_img:pair
- src="{news_image_custom}"
- fallback_src="{news_image}"
- max_width="543"
- max_height="300"
- crop="yes"
- hash_filename="yes"
- quality="96"
- save_type="jpg"
- allow_scale_larger="no"
- filter="sharpen,20"
- }
- <a class="post-image thumb" rel="gallery" href="{news_image}"><img src="http://dynamic.redstorm.com{made}" width="{width}" height="{height}" alt="{title}"></a>
- {/exp:ce_img:pair}
- {/if}
- {/exp:ifelse}
- <div class="supplemental-info">
- <div class="addthis_toolbox addthis_default_style">
- <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
- <a class="addthis_button_tweet" tw:via="RedStorm" tw:related="ghostrecon|ubisoft"></a>
- <a class="addthis_button_google_plusone" g:plusone:size="medium" g:plusone:annotation="bubble"></a>
- </div>
- </div>
- </header>
- {exp:ifelse parse="inward"}{if featured_body}{featured_body}{if:elseif news_body}{news_body}{/if}{/exp:ifelse}
- {exp:ifelse parse="inward"}
- {if featured_photo_gallery}
- <ul class="gallery" id="gallery">
- {featured_photo_gallery}
- {exp:ce_img:pair
- src="{featured_photo_gallery}"
- width="240"
- height="152"
- crop="yes|center,top|0,0"
- cache="yes"
- refresh="40320"
- hash_filename="yes"
- quality="90"
- save_type="jpg"
- filter="sharpen,10"
- }
- <li><a class="thumb" rel="gallery" href="{orig}"><img src="http://dynamic.redstorm.com{made}" height="152" width="240"></a></li>
- {/exp:ce_img:pair}
- {/featured_photo_gallery}
- </ul>
- {if:elseif news_photo_gallery}
- <ul class="gallery" id="gallery">
- {news_photo_gallery}
- {exp:ce_img:pair
- src="{news_photo_gallery}"
- width="240"
- height="152"
- crop="yes|center,top|0,0"
- cache="yes"
- refresh="40320"
- hash_filename="yes"
- quality="90"
- save_type="jpg"
- filter="sharpen,10"
- }
- <li><a class="thumb" rel="gallery" href="{orig}"><img src="http://dynamic.redstorm.com{made}" height="152" width="240"></a></li>
- {/exp:ce_img:pair}
- {/news_photo_gallery}
- </ul>
- {/if}{/exp:ifelse}
- {/exp:channel:entries}
- <footer>
- {exp:favrik_nextprev:prev_entry id="{segment_4}" status="not closed" channel="news|featured" disable="categories|member_data"}
- <a rel="prev" class="btn-prev ir" title="{title}" href="{site_url}news/{entry_date format="%Y/%m"}/{url_title}">Previous Entry</a>
- {/exp:favrik_nextprev:prev_entry}
- {exp:favrik_nextprev:next_entry id="{segment_4}" status="not closed" channel="news|featured" disable="categories|member_data"}
- <a rel="next" class="btn-next ir" title="{title}" href="{site_url}news/{entry_date format="%Y/%m"}/{url_title}">Next Entry</a>
- {/exp:favrik_nextprev:next_entry}
- </footer>
- </article>
- </section>
- <aside class="mod comments" id="comments">
- <div class="fb-comments" data-href="{current_url}" data-num-posts="10" data-width="582" data-colorscheme="dark"></div>
- </aside>
- {/case}
- {/exp:switchee}
- </div>{!-- /.left-column --}
- <aside class="right-column news-aside">
- <section class="mod recent-activity">
- <header>
- <h2>Recent Activity</h2>
- <ul class="buttons"><li><a class="facebook ir" href="http://facebook.com/ubisoftredstorm" title="Follow us on Facebook">Facebook</a></li></ul>
- </header>
- <div class="fb-activity" data-site="redstorm.com" data-width="356" data-height="332" data-header="false" data-colorscheme="dark" data-border-color="#272727" data-font="arial" data-recommendations="true"></div>
- </section>
- <section class="mod tweets">
- <header>
- <h2>tweets</h2>
- <ul class="buttons"><li><a class="twitter ir" href="http://twitter.com/redstorm" title="Follow us on Twitter">Twitter</a></li></ul>
- </header>
- <article class="tweet-news" id="tweet-news">
- <ul class="tweet-list">
- {exp:tweetline
- username="redstorm"
- limit="3"
- format="yes"
- mentions="yes"
- retweets="false"
- cache="60"
- }
- <li>
- <a href="http://twitter.com/redstorm" class="tweet-avatar ir">
- RedStorm
- </a>
- <p>
- <a href="http://twitter.com/redstorm">RedStorm</a>
- {post} <em>{rel_date}</em>
- </p>
- </li>
- {/exp:tweetline}
- </ul>
- </article>
- </section><!-- /.tweets -->
- {!--<section class="mod" style="background: url(/img/bg-o74.png) repeat; width: 306px; padding: 19px 25px 18px;"><fb:like href="http://facebook.com/ubisoft.redstorm" width="300" height="80"></section>
- <section class="mod recent-activity">
- <header>
- <h2>Follow Us</h2>
- <a class="facebook" href="http://facebook.com/ubisoft.redstorm">Twitter</a>
- </header>
- <div class="fb-like-box" data-href="http://www.facebook.com/ubisoft.redstorm" width="356" data-colorscheme="dark" data-show-faces="true" data-border-color="#272727" data-stream="false" data-header="false"></div>
- </section> --}
- <section class="mod archives">
- <header>
- <h2>Archives</h2>
- </header>
- {exp:low_yearly_archives
- channel="news|featured"
- dynamic="no"
- sort="asc"
- status="open"
- disable="categories|category_fields|custom_fields|member_data|pagination"
- }
- {if year_count == 1}<ul class="archive-list" id="archive-list">{/if}
- <li class="archive-year">
- <h2><a href="{path=news}/{year}">{year}</a></h2>
- <ul class="archive-months">
- {months}
- <li>{if num_entries != 0}<a href="{path='news'}/{year}/{month_num}" title="{num_entries} entries in {month} {year}">{month} ({num_entries})</a>{/if}{if num_entries == 0}{month}{/if}</li>
- {/months}
- </ul>
- </li>
- {if year_count == total_years}</ul>{/if}
- {/exp:low_yearly_archives}
- </section>
- </aside>{!-- /.secondary --}
- {/stash:content}
- {/exp:stash:set}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement