AesaTheMistress

Untitled

Jun 23rd, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.26 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <block block_id="RecentNews" title="Recent News Article" version_string="1.0.0" version_id="1" url="http://8wayrun.com/" install_callback_class="" install_callback_method="" uninstall_callback_class="" uninstall_callback_method="" cache="+1 hours">
  3. <admin_templates/>
  4. <listeners/>
  5. <options>
  6. <option option_id="recentnews_forum" edit_format="callback" data_type="array" display_order="1">
  7. <option_value>a:1:{i:0;s:1:"5";}</option_value>
  8. <edit_format_params>EWRporta_Option_ForumChooser::renderOption</edit_format_params>
  9. <sub_options>*</sub_options>
  10. <title>News Source Forums</title>
  11. <explain><![CDATA[Only selected forums will be searched. (unspecify to disable)]]></explain>
  12. </option>
  13. <option option_id="recentnews_limit" edit_format="spinbox" data_type="unsigned_integer" display_order="2">
  14. <option_value>10</option_value>
  15. <edit_format_params>min=1
  16. max=20</edit_format_params>
  17. <sub_options></sub_options>
  18. <title>News Posts Per Page</title>
  19. <explain><![CDATA[The maximum number of articles to display on each page of the portal.]]></explain>
  20. </option>
  21. <option option_id="recentnews_truncate" edit_format="spinbox" data_type="unsigned_integer" display_order="3">
  22. <option_value>3000</option_value>
  23. <edit_format_params>step=100</edit_format_params>
  24. <sub_options></sub_options>
  25. <title>Max Summary Length</title>
  26. <explain><![CDATA[Articles not containing a [prebreak], will be cut after this many characters.]]></explain>
  27. </option>
  28. <option option_id="recentnews_social" edit_format="onoff" data_type="boolean" display_order="4">
  29. <option_value>0</option_value>
  30. <edit_format_params></edit_format_params>
  31. <sub_options></sub_options>
  32. <title>Show Social Media Options</title>
  33. <explain><![CDATA[Your social media settings can be individually enabled and disabled <a href="admin.php?options/list/seo">here</a>.]]></explain>
  34. </option>
  35. <option option_id="recentnews_pagenav" edit_format="onoff" data_type="boolean" display_order="5">
  36. <option_value>1</option_value>
  37. <edit_format_params></edit_format_params>
  38. <sub_options></sub_options>
  39. <title>Show History Navigation</title>
  40. <explain><![CDATA[If selected, a page navigation block will be displayed below your recent news block.<br />Previous pages are not cached and will naturally run slower than the first page.]]></explain>
  41. </option>
  42. <option option_id="recentnews_leftdate" edit_format="onoff" data_type="boolean" display_order="6">
  43. <option_value>1</option_value>
  44. <edit_format_params></edit_format_params>
  45. <sub_options></sub_options>
  46. <title>Push Date out of Block</title>
  47. <explain><![CDATA[If selected, the Month/Day div will be pushed slighly outside the block.]]></explain>
  48. </option>
  49. <option option_id="recentnews_sticky" edit_format="onoff" data_type="boolean" display_order="7">
  50. <option_value>0</option_value>
  51. <edit_format_params></edit_format_params>
  52. <sub_options></sub_options>
  53. <title>Use Sticky Threads</title>
  54. <explain><![CDATA[If enabled, sticky threads will be pinned to the top regardless of promote date.]]></explain>
  55. </option>
  56. </options>
  57. <phrases/>
  58. <route_prefixes/>
  59. <templates>
  60. <template title="EWRblock_RecentNews"><![CDATA[<xen:require css="message_user_info.css" />
  61. <xen:require css="bb_code.css" />
  62. <xen:require css="EWRblock_RecentNews.css" />
  63.  
  64. <div id="recentNews">
  65. <xen:foreach loop="$RecentNews" value="$news">
  66. <div class="section sectionMain recentNews" id="{$news.thread_id}">
  67.  
  68. <div class="primaryContent {xen:if {$option.leftdate}, 'leftDate'}">
  69. <div class="subHeading">
  70. <div style="float: right; white-space: nowrap;">
  71. <a href="{xen:link threads, $news}"><xen:datetime time="$news.promote_date" /></a>
  72. <xen:if is="{$visitor.permissions.EWRporta.canPromote}">
  73. &nbsp; (<a href="{xen:link 'threads/edit', $news}" class="OverlayTrigger">{xen:phrase edit}</a>)
  74. </xen:if>
  75. </div>
  76.  
  77. <h2><a href="{xen:link threads, $news}" class="newsTitle">{xen:helper threadPrefix, $news}{$news.title}</a></h2>
  78. </div>
  79.  
  80. <div class="newsDate secondaryContent">
  81. <div class="newsMonth heading">{$news.month}</div>
  82. <div class="newsDay">{$news.day}</div>
  83. </div>
  84.  
  85. <xen:if is="{$news.promote_icon} != 'disabled'">
  86. <xen:if hascontent="true">
  87. <div class="messageUserBlock">
  88. <div class="avatarHolder">
  89. <xen:contentcheck>
  90. <xen:if is="{$news.attach}">
  91. <a href="{xen:link threads, $news}"><img src="{$news.attach.thumbnailUrl}" alt="{$news.attach.filename}" /></a>
  92. <xen:elseif is="{$news.medio}" />
  93. <div style="background: url('{xen:helper medio, $news.medio}') no-repeat;">
  94. <a href="{xen:link 'full:media/media/popout', $news.medio}" class="OverlayTrigger"><img src="styles/8wayrun/EWRmedio_play.png" width="160" height="90" /></a>
  95. </div>
  96. <xen:elseif is="{$news.image}" />
  97. <a href="{xen:link threads, $news}"><img src="{$news.image}" alt="{$news.image}" style="max-height: 1000px; max-width: 800px;" /></a>
  98. <xen:else />
  99. <xen:avatar user="$news" size="m" itemprop="photo" />
  100. </xen:if>
  101. </xen:contentcheck>
  102. </div>
  103. </div>
  104. </xen:if>
  105. </xen:if>
  106.  
  107. <div class="messageContent baseHtml">
  108. <div class="postedBy">
  109. <span class="posted iconKey"><div class="sticky"></div>{xen:phrase by_x_at_y,
  110. 'user=<a href="{xen:link members, $news}" class="username">{$news.username}</a>',
  111. 'date=<a href="{xen:link threads, $news}">{xen:time $news.post_date, 'absolute'}</a>'}</span>
  112. <span class="views">({xen:number $news.view_count} {xen:phrase views} / {xen:number $news.first_post_likes} {xen:phrase likes})</span>
  113. <span class="comments iconKey"><div class="new"></div><a href="{xen:link threads/unread, $news}">{xen:number $news.reply_count} {xen:phrase comments}</a></span>
  114. </div>
  115.  
  116. <div class="newsText" style="float: left;" >{xen:raw $news.messageHtml}</div>
  117. <div class="clearFix"></div>
  118. </div>
  119.  
  120. <div class="sectionFooter">
  121. <xen:if is="{$option.social}">
  122. <xen:if hascontent="true">
  123. <div class="sharePage">
  124. <xen:require css="share_page.css" />
  125.  
  126. <xen:contentcheck>
  127. <xen:hook name="recentnews_share_page_options" params="{xen:array 'url={xen:link canonical:threads, $news}'}">
  128. <xen:if is="{$xenOptions.tweet.enabled}">
  129. <div class="tweet shareControl">
  130. <a href="http://twitter.com/share" class="twitter-share-button"
  131. data-count="horizontal"
  132. data-lang="{xen:helper twitterLang, $visitorLanguage.language_code}"
  133. data-url="{xen:link canonical:threads, $news}"
  134. {xen:if {$news.title}, 'data-text="{$news.title}"'}
  135. {xen:if {$xenOptions.tweet.via}, 'data-via="{$xenOptions.tweet.via}"'}
  136. {xen:if {$xenOptions.tweet.related}, 'data-related="{$xenOptions.tweet.related}"'}>{xen:phrase tweet}</a>
  137. </div>
  138. </xen:if>
  139. <xen:if is="{$xenOptions.plusone}">
  140. <div class="plusone shareControl">
  141. <div class="g-plusone" data-size="medium" data-count="true" data-href="{xen:link canonical:threads, $news}" data-lang="{$visitorLanguage.language_code}"></div>
  142. </div>
  143. </xen:if>
  144. <xen:if is="{$xenOptions.facebookLike}">
  145. <div class="facebookLike shareControl">
  146. <xen:container var="$facebookSdk">1</xen:container>
  147. <fb:like href="{xen:link canonical:threads, $news}" layout="button_count" action="{$xenOptions.facebookLikeAction}" font="trebuchet ms" colorscheme="{xen:property fbColorScheme}"></fb:like>
  148. </div>
  149. </xen:if>
  150. </xen:hook>
  151. </xen:contentcheck>
  152. </div>
  153. </xen:if>
  154. <xen:else />
  155. <div class="categories">
  156. <ul>
  157. <xen:if is="{$visitor.permissions.EWRporta.canPromote}">
  158. <a href="{xen:link 'threads/category', $news}" class="button OverlayTrigger">+</a>
  159. </xen:if>
  160. <xen:foreach loop="$news.categories" value="$subCat">
  161. <li><a href="{xen:link 'articles', $subCat}" class="button">{$subCat.category_name}</a></li>
  162. </xen:foreach>
  163. </ul>
  164. </div>
  165. </xen:if>
  166.  
  167. <div class="continue">
  168. <a class="iconKey button" href="{xen:link threads, $news}">
  169. <div class="redirect"></div>
  170. {xen:phrase continue_reading}
  171. </a>
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. </xen:foreach>
  177.  
  178. <xen:if hascontent="true">
  179. <div class="section sectionMain">
  180. <xen:contentcheck>
  181. <xen:if is="{$option.pagenav} && {$option.count} > {$option.limit}">
  182. <xen:pagenav link="articles" linkdata="{$category}" page="{$page}" perpage="{$option.limit}" total="{$option.count}" />
  183. </xen:if>
  184. </xen:contentcheck>
  185. </div>
  186. </xen:if>
  187. </div>]]></template>
  188. <template title="EWRblock_RecentNews.css"><![CDATA[.recentNews .subHeading { margin: -10px -10px 10px; }
  189. .recentNews .subHeading a { color: {xen:property subHeading.color}; }
  190. .recentNews .subHeading h2 { font-size: 1.5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  191. .recentNews .messageUserBlock { float: right; margin-left: 10px; }
  192.  
  193. .recentNews .newsDate { float: left; margin: 0px 10px 10px 0px; padding: 0px 10px 5px; width: 35px; font-weight: bold; text-align: center; }
  194. .recentNews .newsDate .newsMonth { padding: 10px 0px 5px !important; margin: 0px -10px 5px !important; text-transform: uppercase; }
  195. .recentNews .newsDate .newsDay { font-size: 26px; }
  196.  
  197. .recentNews .leftDate .newsDate { margin-left: -45px; }
  198. .recentNews .leftDate .newsText { margin-left: 25px; }
  199.  
  200. .recentNews .messageContent { font-size: 13px; }
  201. .recentNews .messageContent .postedBy { margin-bottom: 10px; padding-bottom: 5px; border-bottom: 1px dashed {xen:property primaryLighterStill}; }
  202. .recentNews .messageContent .username { font-weight: bold; }
  203. .recentNews .messageContent .comments { float: right; font-weight: bold; }
  204. .recentNews .messageContent .clearFix { clear: right; }
  205.  
  206. .recentNews .iconKey div
  207. {
  208. background: transparent url('{xen:property imagePath}/xenforo/xenforo-ui-sprite.png') no-repeat 10000px 0;
  209. width: 16px;
  210. height: 16px;
  211. float: left;
  212. margin-right: 4px;
  213. }
  214. .recentNews .iconKey .sticky { background-position: 0px -16px; }
  215. .recentNews .iconKey .redirect { background-position: -48px -16px; }
  216. .recentNews .iconKey .new { background-position: -64px -16px; }
  217.  
  218. .recentNews .sectionFooter { margin: 10px -10px -10px; text-align: right; position: relative; }
  219. .recentNews .sectionFooter .continue { padding-top: 5px; font-size: 12px; }
  220. .recentNews .sectionFooter .continue .redirect { margin: 3px 4px 0px 0px; }
  221.  
  222. .recentNews .sectionFooter .categories { padding-top: 5px; float: left; }
  223. .recentNews .sectionFooter .categories li { display: inline; }
  224.  
  225. .recentNews .sectionFooter .sharePage { position: absolute; }
  226. .recentNews .sectionFooter .shareControl { margin-top: 6px !important; }]]></template>
  227. </templates>
  228. </block>
Advertisement
Add Comment
Please, Sign In to add comment