Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.84 KB | None | 0 0
  1. <div class="container">
  2. <div class="row">
  3. <div class="col-md-9 border-right">
  4. <div class="main-content" id="main">
  5. <div class="row">
  6. <div class="col-md-12">
  7.  
  8. <!-- Destaques -->
  9. <section id="destaques" class="destaques">
  10. <h4 class="section-title">
  11. <!-- Remover CSS Inline-->
  12.  
  13. </h4>
  14. <?php
  15.  
  16. $posts = get_posts(array(
  17. 'numberposts' => 1,
  18. 'post_type' => 'post',
  19. 'meta_key' => '_ag_featured_post',
  20. 'meta_value' => 'principal',
  21. 'orderby' => 'date',
  22. 'order' => 'DESC'
  23. ));
  24.  
  25. foreach ($posts as $post):
  26.  
  27. setup_postdata($post); ?>
  28. <a href="<?php the_permalink(); ?>">
  29. <article>
  30. <figure>
  31. <div class="destaques-body">
  32. <div class="title"><p style="color:#ff6600; font-size:270%;"><b><?php the_title(); ?></b></p></div>
  33. <div class="title">
  34. <h4><?php the_excerpt(); ?></h4>
  35. </div>
  36. </div>
  37.  
  38. </figure>
  39. </article>
  40. </a>
  41. <?php endforeach; ?>
  42. </section>
  43.  
  44.  
  45.  
  46. <!-- Destaques Small -->
  47. <section id="destaques-items">
  48. <div class="destaques-small">
  49. <div class="row">
  50. <?php
  51.  
  52. $posts = get_posts(array(
  53. 'numberposts' => 4,
  54. 'post_type' => 'post',
  55. 'meta_key' => '_ag_featured_post',
  56. 'meta_value' => 'secundaria',
  57. 'orderby' => 'date',
  58. 'order' => 'DESC'
  59. ));
  60.  
  61. foreach ($posts as $post):
  62.  
  63. setup_postdata($post); ?>
  64. <div class="col-md-3 col-sm-4">
  65. <a href="<?php the_permalink(); ?>">
  66. <article>
  67. <div class="title">
  68. <figure>
  69. <img src="<?php the_post_thumbnail_url(); ?>" alt="<?php the_title(); ?>">
  70. </figure>
  71. <figcaption>
  72. <p style="font-size:130%;"><b><?php the_title(); ?></b></p>
  73. </figcaption>
  74. </div>
  75. <div class="content">
  76. <p><?php echo wp_trim_words(get_the_excerpt(),20); ?></p>
  77. </div>
  78. <a href="<?php the_permalink(); ?>" class="link">Leia mais</a>
  79. </article>
  80. </a>
  81. </div>
  82. <?php endforeach; ?>
  83. </div>
  84. </div>
  85. </section>
  86.  
  87. </div>
  88.  
  89.  
  90. </div>
  91.  
  92. <b> <p style="border-widget:1px; background-color:#D6D6D6; text-align:right;"> <a style="color:#FF8000;" href="http://www.apcefsp.org.br/category/noticias">>Mais Notícias</a></p></b>
  93.  
  94.  
  95.  
  96. <!-- News Section -->
  97. <div class="news-wrap" id="news-section">
  98. <div class="row">
  99. <div class="col-md-4">
  100. <section class="news">
  101. <h4 class="section-title">
  102. <a href="<?= get_site_url(null, 'category/aposentados') ?>" target="_self">Aposentados</a>
  103. </h4>
  104. <?php
  105.  
  106. $posts = get_posts(array(
  107. 'numberposts' => 3,
  108. 'post_type' => 'post',
  109. 'category_name' => 'aposentados',
  110. 'orderby' => 'date',
  111. 'order' => 'DESC'
  112. ));
  113.  
  114. $count = 0;
  115.  
  116. foreach ($posts as $post):
  117.  
  118. setup_postdata($post);
  119.  
  120. if($count == 0): ?>
  121. <article class="news-destaque">
  122. <a href="<?php the_permalink(); ?>">
  123. <figure>
  124. <img src="<?php the_post_thumbnail_url($post->ID, 'ag-apcef-large'); ?>" alt="<?php the_title(); ?>">
  125. </figure>
  126. <div class="title"><?php the_title(); ?></div>
  127. </a>
  128. <div class="content">
  129. <?php the_excerpt(); ?>
  130. </div>
  131.  
  132. <a href="<?php the_permalink(); ?>" class="link">Leia mais</a>
  133.  
  134. </article>
  135. <?php else: ?>
  136. <article class="news-reduced">
  137. <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
  138. </article>
  139. <?php endif;
  140.  
  141. $count++;
  142.  
  143. endforeach; ?>
  144. </section>
  145.  
  146. <a href="<?= get_site_url(null, 'category/aposentados') ?>" class="btn-list-all" target="_self">Veja todos</a>
  147. </div>
  148.  
  149. <div class="col-md-4">
  150. <section class="news">
  151. <h4 class="section-title">
  152. <a href="<?= get_site_url(null, 'category/unidades-de-lazer') ?>" target="_self">Unidades de Lazer</a>
  153. </h4>
  154. <?php
  155.  
  156. $posts = get_posts(array(
  157. 'numberposts' => 3,
  158. 'post_type' => 'post',
  159. 'category_name' => 'unidades-de-lazer',
  160. 'orderby' => 'date',
  161. 'order' => 'DESC'
  162. ));
  163.  
  164. $count = 0;
  165.  
  166. foreach ($posts as $post):
  167.  
  168. setup_postdata($post);
  169.  
  170. if($count == 0): ?>
  171. <article class="news-destaque">
  172. <a href="<?php the_permalink(); ?>">
  173. <figure>
  174. <img src="<?php the_post_thumbnail_url($post->ID, 'ag-apcef-large'); ?>" alt="<?php the_title(); ?>">
  175. </figure>
  176. <div class="title"><?php the_title(); ?></div>
  177. </a>
  178. <div class="content">
  179. <?php the_excerpt(); ?>
  180. </div>
  181.  
  182. <a href="<?php the_permalink(); ?>" class="link">Leia mais</a>
  183.  
  184. </article>
  185. <?php else: ?>
  186. <article class="news-reduced">
  187. <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
  188. </article>
  189. <?php endif;
  190.  
  191. $count++;
  192.  
  193. endforeach; ?>
  194. </section>
  195.  
  196. <a href="<?= get_site_url(null, 'category/unidades-de-lazer') ?>" class="btn-list-all" target="_self">Veja todos</a>
  197. </div>
  198.  
  199. <div class="col-md-4">
  200. <section class="news">
  201. <h4 class="section-title">
  202. <a href="<?= get_site_url(null, 'eventos-e-lazer') ?>" target="_self">Eventos</a>
  203. </h4>
  204. <?php
  205.  
  206. $posts = get_posts(array(
  207. 'numberposts' => 3,
  208. 'post_type' => 'post',
  209. 'category_name' => 'eventos-e-lazer',
  210. 'orderby' => 'date',
  211. 'order' => 'DESC'
  212. ));
  213.  
  214. $count = 0;
  215.  
  216. foreach ($posts as $post):
  217.  
  218. setup_postdata($post);
  219.  
  220. if($count == 0): ?>
  221. <article class="news-destaque">
  222. <a href="<?php the_permalink(); ?>">
  223. <figure>
  224. <img src="<?php the_post_thumbnail_url($post->ID, 'ag-apcef-large'); ?>" alt="<?php the_title(); ?>">
  225. </figure>
  226. <div class="title"><?php the_title(); ?></div>
  227. </a>
  228. <div class="content">
  229. <?php the_excerpt(); ?>
  230. </div>
  231.  
  232. <a href="<?php the_permalink(); ?>" class="link">Leia mais</a>
  233.  
  234. </article>
  235. <?php else: ?>
  236. <article class="news-reduced">
  237. <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
  238. </article>
  239. <?php endif;
  240.  
  241. $count++;
  242.  
  243. endforeach; ?>
  244. </section>
  245.  
  246. <a href="<?= get_site_url(null, 'category/eventos-e-lazer') ?>" class="btn-list-all" target="_self">Veja todos</a>
  247. </div>
  248. </div>
  249.  
  250.  
  251.  
  252. </div>
  253. <br>
  254. <br>
  255. <p style="border-widget:1px; background-color:#D6D6D6;"> </p>
  256. <!-- Iniciando segunda coluna -->
  257.  
  258. <div class="col-md-4">
  259. <section class="news">
  260. <h4 class="section-title">
  261. <a href="<?= get_site_url(null, 'category/esportes') ?>" target="_self">Esportes</a>
  262. </h4>
  263. <?php
  264.  
  265. $posts = get_posts(array(
  266. 'numberposts' => 3,
  267. 'post_type' => 'post',
  268. 'category_name' => 'esportes',
  269. 'orderby' => 'date',
  270. 'order' => 'DESC'
  271. ));
  272.  
  273. $count = 0;
  274.  
  275. foreach ($posts as $post):
  276.  
  277. setup_postdata($post);
  278.  
  279. if($count == 0): ?>
  280. <article class="news-destaque">
  281. <a href="<?php the_permalink(); ?>">
  282. <figure>
  283. <img src="<?php the_post_thumbnail_url($post->ID, 'ag-apcef-large'); ?>" alt="<?php the_title(); ?>">
  284. </figure>
  285. <div class="title"><?php the_title(); ?></div>
  286. </a>
  287. <div class="content">
  288. <?php the_excerpt(); ?>
  289. </div>
  290.  
  291. <a href="<?php the_permalink(); ?>" class="link">Leia mais</a>
  292.  
  293. </article>
  294. <?php else: ?>
  295. <article class="news-reduced">
  296. <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
  297. </article>
  298. <?php endif;
  299.  
  300. $count++;
  301.  
  302. endforeach; ?>
  303. </section>
  304.  
  305. <a href="<?= get_site_url(null, 'category/esportes') ?>" class="btn-list-all" target="_self">Veja todos</a>
  306. </div>
  307.  
  308.  
  309. <div class="col-md-4">
  310. <section class="news">
  311. <h4 class="section-title">
  312. <a href="<?= get_site_url(null, 'category/noticias') ?>" target="_self">Mais Notícias</a>
  313. </h4>
  314. <?php
  315.  
  316. $posts = get_posts(array(
  317. 'numberposts' => 3,
  318. 'post_type' => 'post',
  319. 'category_name' => 'noticias',
  320. 'orderby' => 'date',
  321. 'order' => 'DESC'
  322. ));
  323.  
  324. $count = 0;
  325.  
  326. foreach ($posts as $post):
  327.  
  328. setup_postdata($post);
  329.  
  330. if($count == 0): ?>
  331. <article class="news-destaque">
  332. <a href="<?php the_permalink(); ?>">
  333. <figure>
  334. <img src="<?php the_post_thumbnail_url($post->ID, 'ag-apcef-large'); ?>" alt="<?php the_title(); ?>">
  335. </figure>
  336. <div class="title"><?php the_title(); ?></div>
  337. </a>
  338. <div class="content">
  339. <?php the_excerpt(); ?>
  340. </div>
  341.  
  342. <a href="<?php the_permalink(); ?>" class="link">Leia mais</a>
  343.  
  344. </article>
  345. <?php else: ?>
  346. <article class="news-reduced">
  347. <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
  348. </article>
  349. <?php endif;
  350.  
  351. $count++;
  352.  
  353. endforeach; ?>
  354. </section>
  355.  
  356. <a href="<?= get_site_url(null, 'category/noticias') ?>" class="btn-list-all" target="_self">Veja todos</a>
  357. </div>
  358. </div>
  359.  
  360. <div class="col-md-4">
  361. <section class="news">
  362. <h4 class="section-title">
  363. <a href="<?= get_site_url(null, 'category/noticias-fenae') ?>" target="_self">Notícias Fenae</a>
  364. </h4>
  365. <?php
  366.  
  367. $posts = get_posts(array(
  368. 'numberposts' => 3,
  369. 'post_type' => 'post',
  370. 'category_name' => 'noticias-fenae',
  371. 'orderby' => 'date',
  372. 'order' => 'DESC'
  373. ));
  374.  
  375. $count = 0;
  376.  
  377. foreach ($posts as $post):
  378.  
  379. setup_postdata($post);
  380.  
  381. if($count == 0): ?>
  382. <article class="news-destaque">
  383. <a href="<?php the_permalink(); ?>">
  384. <figure>
  385. <img src="<?php the_post_thumbnail_url($post->ID, 'ag-apcef-large'); ?>" alt="<?php the_title(); ?>">
  386. </figure>
  387. <div class="title"><?php the_title(); ?></div>
  388. </a>
  389. <div class="content">
  390. <?php the_excerpt(); ?>
  391. </div>
  392.  
  393. <a href="<?php the_permalink(); ?>" class="link">Leia mais</a>
  394.  
  395. </article>
  396. <?php else: ?>
  397. <article class="news-reduced">
  398. <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
  399. </article>
  400. <?php endif;
  401.  
  402. $count++;
  403.  
  404. endforeach; ?>
  405. </section>
  406.  
  407. <a href="<?= get_site_url(null, 'category/noticias-fenae') ?>" class="btn-list-all" target="_self">Veja todos</a>
  408. </div>
  409.  
  410.  
  411.  
  412.  
  413.  
  414. <!-- Slide unidade de lazer -->
  415.  
  416. <div class="col-md-12">
  417. <p style="border-widget:1px; background-color:#D6D6D6;"> </p>
  418. <section id="unidades-de-lazer" class="unidades-de-lazer">
  419. <h4 class="section-title">
  420. <!-- Remover CSS Inline-->
  421. <a href="<?= get_category_link(get_category_by_slug('unidades-de-lazer')->cat_ID); ?>" target="_self" style="color:#F36F21;">
  422. Unidades de Lazer
  423. </a>
  424. </h4>
  425. <section id="unidades-de-lazer-tabs" class="vertical-tabs">
  426. <div class="vertical-tabs-wrap">
  427. <ul class="vertical-tabs-nav">
  428. <?php
  429.  
  430. $count = 0;
  431.  
  432. $posts = get_posts(array(
  433. 'numberposts' => 8,
  434. 'post_type' => 'unidade-lazer',
  435. 'orderby' => 'date',
  436. 'order' => 'ASC'
  437. ));
  438.  
  439. foreach ($posts as $post):
  440.  
  441. setup_postdata($post); ?>
  442.  
  443. <li <?= ($count == 0) ? 'class="active"' : ''; ?>><a href="<?php the_permalink(); ?>" data-default-redirect="true"><?php the_title(); ?></a></li>
  444. <?php
  445.  
  446. $count++;
  447.  
  448. endforeach; ?>
  449. </ul>
  450. <ul class="vertical-tabs-items">
  451. <?php
  452.  
  453. foreach ($posts as $post):
  454.  
  455. setup_postdata($post); ?>
  456. <li>
  457. <div>
  458. <a href="<?php the_permalink(); ?>">
  459. <img src="<?php the_post_thumbnail_url($post->ID, 'ag-apcef-large'); ?>" alt="<?php the_title(); ?>">
  460. </a>
  461. </div>
  462. </li>
  463. <?php endforeach; ?>
  464. </ul>
  465. </div>
  466. </section>
  467. </section>
  468. </div>
  469.  
  470. </div>
  471.  
  472. <div class="col-md-3" id="sidebar">
  473. <?php get_sidebar(); ?>
  474. </div>
  475. </div>
  476.  
  477.  
  478. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement