Charles_Mad

Untitled

Oct 28th, 2020
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 63.74 KB | None | 0 0
  1. <?php
  2. global $post;
  3.  
  4.  
  5. $url = explode('/', $_SERVER['REQUEST_URI']);
  6.  
  7. if (isset($url[2])):
  8. $category = $url[2];
  9. endif;
  10.  
  11. $td_template_layout = new td_template_layout('no_sidebar');
  12. $td_module_class = 'td_module_mob_1';
  13. $td_module = td_api_module::get_by_id($td_module_class);
  14.  
  15. if ($td_module['uses_columns'] === false) {
  16. $td_template_layout->disable_output();
  17. }
  18.  
  19. if (have_posts()) {
  20. $tds_loop_ad_module_mob = td_util::get_option('tds_loop_ad_module_mob');
  21. if (empty($tds_loop_ad_module_mob)) {
  22. $tds_loop_ad_module_mob = 5;
  23. }
  24.  
  25. $td_ad_position_counter = 1;
  26. $posts_args = array(
  27. 'posts_per_page' => 11,
  28. 'offset' => 0,
  29. 'cat' => '25,20,67,3438,19,1,23,22,7822',
  30. 'orderby' => 'date',
  31. 'order' => 'DESC',
  32. 'post_type' => 'post',
  33. 'post_status' => 'publish',
  34. 'suppress_filters' => false
  35. );
  36.  
  37.  
  38. /*
  39.  
  40. $posts = get_posts($posts_args);
  41. $colunas = array( 'numberposts' => 1, 'cat' => 7762 );
  42. $myposts = get_posts( $colunas );
  43. $i = 1;
  44. foreach ($posts as $post):
  45. $mod = new td_module_mob_1($post);
  46. if ($i == 5):
  47. */
  48.  
  49.  
  50.  
  51. $posts = get_posts($posts_args);
  52. $i = 0;
  53. foreach ($posts as $post):
  54. $mod = new td_module_mob_1($post);
  55. if ($i == 2):
  56. ?>
  57. <!--------aqui-tn hoje-------------->
  58. <div style="display: flex; flex-direction: row; justify-content: center; align-items: center;width:100%;background: #fff;margin-bottom: 20px;border-radius: 5px;">
  59. <div style="background: #FFF;padding: 15px;border-radius: 5px;">
  60.  
  61.  
  62. <h4 class="block-title" style="margin-bottom: 6px;"><span>Jornal TN Hoje</span></h4>
  63. <p style="text-align: center;"><?php echo do_shortcode('[metaslider id="155042"]'); ?></p>
  64.  
  65. </div>
  66. </div>
  67. <!--------aqui-tn hoje-------------->
  68.  
  69. <!--------aqui-codigo-classificados------------->
  70.  
  71.  
  72. <div style="padding: 15px;margin-bottom: 20px;background: #D9D5D5; border-radius: 5px; min-height: 100%; ">
  73.  
  74.  
  75.  
  76. <img src="https://tnsul.com/wp-content/uploads/2020/09/bloco.jpg" width="100%;"/>
  77.  
  78. <div class="clear clearfix"></div>
  79.  
  80. <div style="float: left; display: inline; width: 50%; margin-top: -5px;"><a href="https://tnsul.com/variedades/classificados-veiculos-0km/" target="_blank"><img src="https://tnsul.com/wp-content/uploads/2020/09/veiculos2.jpg" width="100%;"/></a></div>
  81. <div style="float: right; display: inline; width: 50%; margin-top: -5px;"><a href="https://tnsul.com/variedades/classificados-imoveis/" target="_blank"><img src="https://tnsul.com/wp-content/uploads/2020/09/imoveis-diversos.jpg" width="100%;" /></a></div>
  82.  
  83. <div class="clear clearfix"></div>
  84.  
  85. </div>
  86. <!-- fim classificados -->
  87.  
  88. <!-- aqui vai os novos colunistas
  89.  
  90. <!-- inicio colunistas classico -->
  91. <div style="background: #FFF; padding: 15px;border: 1px solid #ccc; margin-bottom: 15px;">
  92.  
  93. <h4 style="font-family: 'Roboto','san-serif';font-size: 20px; color:#34446C; font-weight: 900;margin-top: 0; line-height: 1;text-align: left; margin-bottom: 10px;"><span>Colunistas</span></h4>
  94.  
  95. <div class="slider single-item" style="width:90%; background: #FFF; margin:0 auto; margin-bottom: 10px;">
  96. <div>
  97. <table style="border-collapse: collapse; border: none;">
  98. <tr style="border: none;">
  99. <td style="border: none;width:40%">
  100. <img src="https://tnsul.com/wp-content/uploads/2020/08/marco2.jpg" style="border-radius:50%;"/>
  101. </td>
  102. <td style="border: none;">
  103. <div style="float: left; display: inline; margin-bottom: 0px; margin-top: 10px;">
  104. <h3 style="font-size: 14px;font-weight: 900;color: #989898;text-transform: uppercase;font-family: 'Roboto','san-serif';text-align: left;line-height: 1;margin-top: 1px;">
  105. Marco Búrigo
  106. </h3>
  107. <?php
  108.  
  109. function clwp_posts_marco(){
  110. // Defino o Nome da Categoria e a Quantidade de Posts a serem exibidos
  111. $the_query = new WP_Query( array( 'category_name' => 'marco-burigo', 'posts_per_page' => 1 ) );
  112.  
  113. // O Loop
  114. if ( $the_query->have_posts() ) {
  115.  
  116. while ( $the_query->have_posts() ) {
  117. $the_query->the_post();
  118.  
  119.  
  120. $string .= '<a href="' . get_the_permalink() .'" rel="bookmark"><span class="titulo-post-coluna">' . get_the_title() .'</span></a>';
  121.  
  122. }
  123. } else {
  124. // Nada será exibido se nenhum Post Relacionado por Categoria foi encontrado
  125. }
  126.  
  127.  
  128. return $string;
  129.  
  130.  
  131. wp_reset_postdata();
  132. }
  133.  
  134.  
  135. ?>
  136. <div class="chama-editoria">
  137.  
  138. <?php echo clwp_posts_marco(); ?>
  139.  
  140.  
  141.  
  142. </div>
  143. </div>
  144. </td>
  145. </tr>
  146. <tr style="border: none;">
  147. <td style="border: none;width:40%">
  148. <img src="https://tnsul.com/wp-content/uploads/2020/07/moacir1.jpg" style="border-radius:50%;"/>
  149. </td>
  150. <td style="border: none;">
  151. <div style="float: left; display: inline; margin-bottom: 0px; margin-top: 10px;">
  152. <h3 style="font-size: 14px;font-weight: 900;color: #989898;text-transform: uppercase;font-family: 'Roboto','san-serif';text-align: left;line-height: 1;margin-top: 1px;">
  153. Moacir Pereira
  154. </h3>
  155. <?php
  156.  
  157. function clwp_posts_moacir(){
  158. // Defino o Nome da Categoria e a Quantidade de Posts a serem exibidos
  159. $the_query = new WP_Query( array( 'category_name' => 'moacir-pereira', 'posts_per_page' => 1 ) );
  160.  
  161. // O Loop
  162. if ( $the_query->have_posts() ) {
  163.  
  164. while ( $the_query->have_posts() ) {
  165. $the_query->the_post();
  166.  
  167.  
  168. $string .= '<a href="' . get_the_permalink() .'" rel="bookmark"><span class="titulo-post-coluna">' . get_the_title() .'</span></a>';
  169.  
  170. }
  171. } else {
  172. // Nada será exibido se nenhum Post Relacionado por Categoria foi encontrado
  173. }
  174.  
  175.  
  176. return $string;
  177.  
  178.  
  179. wp_reset_postdata();
  180. }
  181.  
  182.  
  183. ?>
  184. <div class="chama-editoria">
  185.  
  186. <?php echo clwp_posts_moacir(); ?>
  187.  
  188. </div>
  189. </div>
  190. </td>
  191. </tr>
  192. </table>
  193.  
  194. </div>
  195. <div>
  196. <table style="border-collapse: collapse; border: none;">
  197. <tr style="border: none;">
  198. <td style="border: none;width:40%">
  199. <img src="https://tnsul.com/wp-content/uploads/2020/08/vande2.jpg" style="border-radius:50%;"/>
  200. </td>
  201. <td style="border: none;">
  202. <div style="float: left; display: inline; margin-bottom: 0px; margin-top: 10px;">
  203. <h3 style="font-size: 14px;font-weight: 900;color: #989898;text-transform: uppercase;font-family: 'Roboto','san-serif';text-align: left;line-height: 1;margin-top: 1px;">
  204. Padre Vander
  205. </h3>
  206. <?php
  207.  
  208. function clwp_posts_padre(){
  209. // Defino o Nome da Categoria e a Quantidade de Posts a serem exibidos
  210. $the_query = new WP_Query( array( 'category_name' => 'padre-vander', 'posts_per_page' => 1 ) );
  211.  
  212. // O Loop
  213. if ( $the_query->have_posts() ) {
  214.  
  215. while ( $the_query->have_posts() ) {
  216. $the_query->the_post();
  217.  
  218.  
  219. $string .= '<a href="' . get_the_permalink() .'" rel="bookmark"><span class="titulo-post-coluna">' . get_the_title() .'</span></a>';
  220.  
  221. }
  222. } else {
  223. // Nada será exibido se nenhum Post Relacionado por Categoria foi encontrado
  224. }
  225.  
  226.  
  227. return $string;
  228.  
  229.  
  230. wp_reset_postdata();
  231. }
  232.  
  233.  
  234. ?>
  235. <div class="chama-editoria">
  236.  
  237. <?php echo clwp_posts_padre(); ?>
  238.  
  239. </div>
  240. </div>
  241. </td>
  242. </tr>
  243. <tr style="border: none;">
  244. <td style="border: none;width:40%">
  245. <img src="https://tnsul.com/wp-content/uploads/2020/07/cacau1.jpg" style="border-radius:50%;"/>
  246. </td>
  247. <td style="border: none;">
  248. <div style="float: left; display: inline; margin-bottom: 0px; margin-top: 10px;">
  249. <h3 style="font-size: 14px;font-weight: 900;color: #989898;text-transform: uppercase;font-family: 'Roboto','san-serif';text-align: left;line-height: 1;margin-top: 1px;">
  250. Cacau Menezes
  251. </h3>
  252. <?php
  253.  
  254. function clwp_posts_cacau(){
  255. // Defino o Nome da Categoria e a Quantidade de Posts a serem exibidos
  256. $the_query = new WP_Query( array( 'category_name' => 'cacau-menezes', 'posts_per_page' => 1 ) );
  257.  
  258. // O Loop
  259. if ( $the_query->have_posts() ) {
  260.  
  261. while ( $the_query->have_posts() ) {
  262. $the_query->the_post();
  263.  
  264.  
  265. $string .= '<a href="' . get_the_permalink() .'" rel="bookmark"><span class="titulo-post-coluna">' . get_the_title() .'</span></a>';
  266.  
  267. }
  268. } else {
  269. // Nada será exibido se nenhum Post Relacionado por Categoria foi encontrado
  270. }
  271.  
  272.  
  273. return $string;
  274.  
  275.  
  276. wp_reset_postdata();
  277. }
  278.  
  279.  
  280. ?>
  281. <div class="chama-editoria">
  282.  
  283. <?php echo clwp_posts_cacau(); ?>
  284.  
  285. </div>
  286. </div>
  287. </td>
  288. </tr>
  289. </table>
  290. </div>
  291. <div>
  292. <table style="border-collapse: collapse; border: none;">
  293. <tr style="border: none;">
  294. <td style="border: none;width:40%">
  295. <img src="https://tnsul.com/wp-content/uploads/2020/07/alexandre1.jpg" style="border-radius:50%;"/>
  296. </td>
  297. <td style="border: none;">
  298. <div style="float: left; display: inline; margin-bottom: 0px; margin-top: 10px;">
  299. <h3 style="font-size: 14px;font-weight: 900;color: #989898;text-transform: uppercase;font-family: 'Roboto','san-serif';text-align: left;line-height: 1;margin-top: 1px;">
  300. Alexandre Garcia
  301. </h3>
  302. <?php
  303.  
  304. function clwp_posts_garcia(){
  305. // Defino o Nome da Categoria e a Quantidade de Posts a serem exibidos
  306. $the_query = new WP_Query( array( 'category_name' => 'alexandre-garcia', 'posts_per_page' => 1 ) );
  307.  
  308. // O Loop
  309. if ( $the_query->have_posts() ) {
  310.  
  311. while ( $the_query->have_posts() ) {
  312. $the_query->the_post();
  313.  
  314.  
  315. $string .= '<a href="' . get_the_permalink() .'" rel="bookmark"><span class="titulo-post-coluna">' . get_the_title() .'</span></a>';
  316.  
  317. }
  318. } else {
  319. // Nada será exibido se nenhum Post Relacionado por Categoria foi encontrado
  320. }
  321.  
  322.  
  323. return $string;
  324.  
  325.  
  326. wp_reset_postdata();
  327. }
  328.  
  329.  
  330. ?>
  331. <div class="chama-editoria">
  332.  
  333. <?php echo clwp_posts_garcia(); ?>
  334.  
  335. </div>
  336. </div>
  337. </td>
  338. </tr>
  339. </table>
  340. </div>
  341.  
  342. </div>
  343.  
  344.  
  345. <script type="text/javascript" src="http://kenwheeler.github.io/slick/slick/slick.min.js"></script>
  346. <script type="text/javascript" src="http://kenwheeler.github.io/slick/slick/slick.js"></script>
  347. <script type="text/javascript" src="https://tnsul.com/testes/slick/scripts.js"></script>
  348. <script type="text/javascript" src="http://kenwheeler.github.io/slick/js/prism.js"></script>
  349. <div class="clear clearfix"></div>
  350. </div>
  351. <!-- fim colunistas classico -->
  352.  
  353. <!-- inicio blogs destaque -->
  354.  
  355. <!-- inicio tudo em moda -->
  356. <?php
  357.  
  358. $url= "https://tnsul.com/variedades/category/tudo-em-moda";
  359.  
  360. // pegar dados
  361. $dadosSite = file_get_contents($url);
  362.  
  363. $moda1 = explode('<div class="tdb_module_cat_grid_1 td-animation-stack tdb-cat-grid-post tdb-cat-grid-post-0">',$dadosSite);
  364. $tudoemmoda = explode('</div></div>',$moda1[1]);
  365.  
  366. $titulomoda1 = explode('<h3 class="entry-title td-module-title">',$tudoemmoda[0]);
  367. $titulomoda1 = explode('</a>',$titulomoda1[1]);
  368.  
  369. $titulo2 = explode('">',$titulomoda1[0]);
  370. $titulo2 = explode('</',$titulo2[1]);
  371.  
  372. $imagemmoda1 = explode('data-img-url="',$tudoemmoda[0]);
  373. $imagemmoda1 = explode('"',$imagemmoda1[1]);
  374.  
  375. ?>
  376.  
  377. <div style="display: -ms-flexbox; display: flex;-ms-flex-wrap: wrap;flex-wrap: wrap;margin-right: -15px; margin-left: -15px;">
  378. <div style="margin-bottom: 20px;padding-bottom: 5px; position: relative; box-sizing: border-box; background-color: #fff; border: 0; display: block; margin-right: 15px; margin-left: 15px;width: 100%;">
  379. <div style="position: relative; display: block; width:100%; margin-top: 10px;">
  380. <div style="-ms-flex: 0 0 33.333333%;flex: 0 0 33.333333%; max-width: 33.333333%; float: left!important;padding: 0;margin: 0;">
  381. <a href="https://tnsul.com/variedades/category/tudo-em-moda/" target="_self">
  382. <?php echo "<img src='$imagemmoda1[0]' class='img-blogs' style='margin-left:10px; min-width:110px; max-height:82px;'/>"; ?>
  383. </a>
  384. </div>
  385. <div style="-ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%;float: right!important;padding: 0;margin: 0;">
  386. <a href="https://tnsul.com/variedades/category/tudo-em-moda/" target="_self">
  387. <h3 style="color: #6D347C; font-weight: bold; font-size: 18px; line-height: 1; margin-left: 20px; margin-right: 10px; margin-bottom:5px;">Tudo em Moda</h3>
  388. </a>
  389. <a href="https://tnsul.com/variedades/category/tudo-em-moda/" target="_self">
  390. <?php echo "<h3 class='entry-title td-module-title' style='margin-top:10px; font-weight: bold;font-size: 14px;line-height: 1;margin-left: 20px;margin-right: 10px;margin-bottom:5px;'>".$titulo2[0]."</h3>";?>
  391. </a>
  392. </div>
  393. </div>
  394. </div>
  395.  
  396. </div>
  397. <!-- fim tudo em moda -->
  398.  
  399. <!-- inicio destino certo -->
  400. <?php
  401. $urldestino= "https://tnsul.com/variedades/category/destino-certo/";
  402.  
  403. // pegar dados
  404. $dadosSitedestino = file_get_contents($urldestino);
  405.  
  406. $destino1 = explode('<div class="tdb_module_cat_grid_1 td-animation-stack tdb-cat-grid-post tdb-cat-grid-post-0">',$dadosSitedestino);
  407. $destinocerto = explode('</div></div>',$destino1[1]);
  408.  
  409. $titulodestino1 = explode('<h3 class="entry-title td-module-title">',$destinocerto[0]);
  410. $titulodestino1 = explode('</a>',$titulodestino1[1]);
  411.  
  412. $titulodestino2 = explode('">',$titulodestino1[0]);
  413. $titulodestino2 = explode('</',$titulodestino2[1]);
  414.  
  415. $imagemdestino1 = explode('data-img-url="',$destinocerto[0]);
  416. $imagemdestino1 = explode('"',$imagemdestino1[1]);
  417.  
  418. ?>
  419. <div style="display: -ms-flexbox; display: flex;-ms-flex-wrap: wrap;flex-wrap: wrap;margin-right: -15px; margin-left: -15px;">
  420. <div style="margin-bottom: 20px;padding-bottom: 5px; position: relative; box-sizing: border-box; background-color: #fff; border: 0; display: block; margin-right: 15px; margin-left: 15px;width: 100%;">
  421. <div style="position: relative; display: block; width:100%; margin-top: 10px;">
  422. <div style="-ms-flex: 0 0 33.333333%;flex: 0 0 33.333333%; max-width: 33.333333%; float: left!important;padding: 0;margin: 0;">
  423. <a href="https://tnsul.com/variedades/category/destino-certo/" target="_self">
  424. <?php echo "<img src='$imagemdestino1[0]' class='img-blogs' style='margin-left:10px; min-width:110px; max-height:82px;'/>"; ?>
  425. </a>
  426. </div>
  427. <div style="-ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%;float: right!important;padding: 0;margin: 0;">
  428. <a href="https://tnsul.com/variedades/category/destino-certo/" target="_self">
  429. <h3 style="color: #004C66; font-weight: bold; font-size: 18px; line-height: 1; margin-left: 20px; margin-right: 10px; margin-bottom:5px;">Destino Certo</h3>
  430. </a>
  431. <a href="https://tnsul.com/variedades/category/destino-certo/" target="_self">
  432. <?php echo "<h3 class='entry-title td-module-title' style='margin-top:10px; font-weight: bold;font-size: 14px;line-height: 1;margin-left: 20px;margin-right: 10px;margin-bottom:5px;'>".$titulodestino2[0]."</h3>";?>
  433. </a>
  434. </div>
  435. </div>
  436. </div>
  437.  
  438. </div>
  439. <!-- fim destino certo -->
  440.  
  441. <!-- anuncio -->
  442. <?php echo do_shortcode('[metaslider id="150684"]'); ?>
  443. <!-- fim anuncio -->
  444.  
  445. <!-- fim blogs destaque -->
  446.  
  447. <!--------aqui-codigo-enquete e cotações---------------->
  448.  
  449.  
  450. <h4 class="block-title" style="margin-bottom: 6px;"><span>INDICADORES ECONÔMICOS</span></h4>
  451. <?php
  452. $url= "https://www.4oito.com.br/";
  453. // pegar dados
  454. $dadosSite = file_get_contents($url);
  455. $ibovespa1 = explode('<h5>Ibovespa</h5>',$dadosSite);
  456. $ibovespa1 = explode('</div>',$ibovespa1[1]);
  457. $ibovespa2 = explode('<strong class="label">Abertura</strong>',$dadosSite);
  458. $ibovespa2 = explode('</span>',$ibovespa2[1]);
  459. $ibovespa3 = explode('<strong class="label">Variação</strong>',$dadosSite);
  460. $ibovespa3 = explode('</span>',$ibovespa3[1]);
  461. $dolarc1 = explode('<strong class="label" title="Dólar Comercial">Dólar C.</strong>',$dadosSite);
  462. $dolarc1 = explode('</span>',$dolarc1[1]);
  463. $euro1 = explode('<strong class="label" title="Euro">Euro</strong>',$dadosSite);
  464. $euro1 = explode('</span>',$euro1[1]);
  465. $libra1 = explode('<strong class="label" title="Libra Esterlina">Libra</strong>',$dadosSite);
  466. $libra1 = explode('</span>',$libra1[1]);
  467. $variacao = $ibovespa3[0];
  468. $valor = '+';
  469. $ibov = $ibovespa1[0];
  470.  
  471.  
  472.  
  473. if (strpos($variacao,$valor) !== false) {
  474. ?>
  475. <div style="padding: 5px;margin-bottom: 20px;background: #D9D5D5; min-height: 100%; border-radius: 5px;">
  476. <div style="float:right; width:40%; min-height: 100%; margin-left: 5px;">
  477. <h1 style="font-size:15px; font-weight: 700; margin-top: -10px;">Ibovespa</h1>
  478. <h2 style="font-size: 35px; font-weight: 700; color: #004000; margin-bottom: 6px; margin-top:-25px;"><?php echo $ibovespa1[0]; ?></h2>
  479. <span style="font-size:15px; font-weight: 700;">Abertura</span> <?php echo $ibovespa2[0]; ?>
  480. <span style="font-size:15px; font-weight: 700;">Variação</span> <?php echo $ibovespa3[0]; ?>
  481. </div>
  482. <div style="float: left; width: 55%; min-height: 100%;margin-top: 30px;">
  483. <table border="0" cellspacing="5px" rules="none" width="100%">
  484. <tr>
  485. <td><span style="font-size:15px; font-weight: 700;">Dólar C.</span></td>
  486. <td> <?php echo $dolarc1[0]; ?></td>
  487. </tr>
  488. <tr>
  489. <td><span style="font-size:15px; font-weight: 700;">Euro</span></td>
  490. <td> <?php echo $euro1[0]; ?></td>
  491. </tr>
  492. <tr>
  493. <td><span style="font-size:15px; font-weight: 700;">Libra</span></td>
  494. <td> <?php echo $libra1[0]; ?></td>
  495. </tr>
  496. </table>
  497. </div>
  498. <div style="clear: both;"></div>
  499. </div>
  500. <?php
  501. }else{
  502. ?>
  503. <div style="padding: 15px;margin-bottom: 20px;background: #D9D5D5; min-height: 100%; border-radius: 5px;">
  504. <div style="float:right; width:40%; min-height: 100%; margin-left: 5px;">
  505. <h1 style="font-size:15px; font-weight: 700; margin-top: -10px;">Ibovespa</h1>
  506. <h2 style="font-size: 35px; font-weight: 700; color: red; margin-bottom: 6px; margin-top:-25px;"><?php echo $ibovespa1[0]; ?></h2>
  507. <span style="font-size:15px; font-weight: 700;">Abertura</span> <?php echo $ibovespa2[0]; ?>
  508. <span style="font-size:13px; font-weight: 700;">Variação</span> <?php echo $ibovespa3[0]; ?>
  509. </div>
  510. <div style="float: left; width: 55%; min-height: 100%;margin-top: 30px;">
  511. <table border="0" cellspacing="0" rules="none" width="100%">
  512. <tr>
  513. <td><span style="font-size:15px; font-weight: 700;">Dólar C.</span></td>
  514. <td> <?php echo $dolarc1[0]; ?></td>
  515. </tr>
  516. <tr>
  517. <td><span style="font-size:15px; font-weight: 700;">Euro</span></td>
  518. <td> <?php echo $euro1[0]; ?></td>
  519. </tr>
  520. <tr>
  521. <td><span style="font-size:15px; font-weight: 700;">Libra</span></td>
  522. <td> <?php echo $libra1[0]; ?></td>
  523. </tr>
  524. </table>
  525. </div>
  526. <div style="clear: both;"></div>
  527. </div>
  528. <?php
  529. }
  530. ?>
  531. <div style="margin-top:-15px; margin-bottom:10px; display: flex; flex-direction: row; justify-content: center; align-items: center;"><?php echo do_shortcode('[metaslider id="148354"]'); ?></div>
  532.  
  533.  
  534. <!--------aqui- fim codigo-enquete e cotações-------------->
  535.  
  536.  
  537. <?php
  538. endif;
  539. if ($i == 8):
  540. ?>
  541.  
  542. <!-- inicio loterias -->
  543. <script>
  544.  
  545. function mostra_oculta_logos(){
  546. var logos = document.getElementById("logos-loterias");
  547. var m = document.getElementById("mega");
  548. var q = document.getElementById("quina");
  549. var l = document.getElementById("lotofacil");
  550. var lm = document.getElementById("lotomania");
  551. var d = document.getElementById("dupla");
  552. var f = document.getElementById("federal");
  553. if (logos.style.display === "none") {
  554. logos.style.display = "block";
  555. q.style.display = "none";
  556. l.style.display = "none";
  557. lm.style.display = "none";
  558. f.style.display = "none";
  559. m.style.display = "none";
  560. d.style.display = "none";
  561. } else {
  562. m.style.display = "none";
  563. q.style.display = "none";
  564. l.style.display = "none";
  565. lm.style.display = "none";
  566. f.style.display = "none";
  567. d.style.display = "none";
  568. logos.style.display = "block";
  569. }
  570.  
  571. }
  572.  
  573. function mostra_oculta_mega(){
  574. var logos = document.getElementById("logos-loterias");
  575. var m = document.getElementById("mega");
  576. var q = document.getElementById("quina");
  577. var l = document.getElementById("lotofacil");
  578. var lm = document.getElementById("lotomania");
  579. var d = document.getElementById("dupla");
  580. var f = document.getElementById("federal");
  581. if (m.style.display === "none") {
  582. m.style.display = "block";
  583. q.style.display = "none";
  584. l.style.display = "none";
  585. lm.style.display = "none";
  586. f.style.display = "none";
  587. d.style.display = "none";
  588. logos.style.display = "none";
  589. } else {
  590. m.style.display = "none";
  591. q.style.display = "none";
  592. l.style.display = "none";
  593. lm.style.display = "none";
  594. f.style.display = "none";
  595. d.style.display = "none";
  596. logos.style.display = "none";
  597. }
  598.  
  599. }
  600.  
  601. function mostra_oculta_quina(){
  602. var logos = document.getElementById("logos-loterias");
  603. var q = document.getElementById("quina");
  604. var m = document.getElementById("mega");
  605. var l = document.getElementById("lotofacil");
  606. var lm = document.getElementById("lotomania");
  607. var d = document.getElementById("dupla");
  608. var f = document.getElementById("federal");
  609. if (q.style.display === "none") {
  610. q.style.display = "block";
  611. m.style.display = "none";
  612. l.style.display = "none";
  613. lm.style.display = "none";
  614. f.style.display = "none";
  615. d.style.display = "none";
  616. logos.style.display = "none";
  617. } else {
  618. q.style.display = "none";
  619. m.style.display = "none";
  620. l.style.display = "none";
  621. lm.style.display = "none";
  622. f.style.display = "none";
  623. d.style.display = "none";
  624. logos.style.display = "none";
  625. }
  626.  
  627. }
  628.  
  629. function mostra_oculta_lotofacil(){
  630. var logos = document.getElementById("logos-loterias");
  631. var q = document.getElementById("quina");
  632. var m = document.getElementById("mega");
  633. var l = document.getElementById("lotofacil");
  634. var lm = document.getElementById("lotomania");
  635. var d = document.getElementById("dupla");
  636. var f = document.getElementById("federal");
  637. if (l.style.display === "none") {
  638. l.style.display = "block";
  639. m.style.display = "none";
  640. q.style.display = "none";
  641. lm.style.display = "none";
  642. f.style.display = "none";
  643. d.style.display = "none";
  644. logos.style.display = "none";
  645. } else {
  646. l.style.display = "none";
  647. m.style.display = "none";
  648. q.style.display = "none";
  649. lm.style.display = "none";
  650. f.style.display = "none";
  651. d.style.display = "none";
  652. logos.style.display = "none";
  653. }
  654.  
  655. }
  656.  
  657. function mostra_oculta_lotomania(){
  658. var logos = document.getElementById("logos-loterias");
  659. var q = document.getElementById("quina");
  660. var m = document.getElementById("mega");
  661. var lm = document.getElementById("lotomania");
  662. var l = document.getElementById("lotofacil");
  663. var d = document.getElementById("dupla");
  664. var f = document.getElementById("federal");
  665. if (lm.style.display === "none") {
  666. lm.style.display = "block";
  667. m.style.display = "none";
  668. q.style.display = "none";
  669. l.style.display = "none";
  670. f.style.display = "none";
  671. d.style.display = "none";
  672. logos.style.display = "none";
  673. } else {
  674. lm.style.display = "none";
  675. m.style.display = "none";
  676. q.style.display = "none";
  677. l.style.display = "none";
  678. f.style.display = "none";
  679. d.style.display = "none";
  680. logos.style.display = "none";
  681. }
  682.  
  683. }
  684.  
  685. function mostra_oculta_dupla(){
  686. var logos = document.getElementById("logos-loterias");
  687. var q = document.getElementById("quina");
  688. var m = document.getElementById("mega");
  689. var lm = document.getElementById("lotomania");
  690. var l = document.getElementById("lotofacil");
  691. var d = document.getElementById("dupla");
  692. var f = document.getElementById("federal");
  693. if (d.style.display === "none") {
  694. d.style.display = "block";
  695. m.style.display = "none";
  696. q.style.display = "none";
  697. l.style.display = "none";
  698. lm.style.display = "none";
  699. f.style.display = "none";
  700. logos.style.display = "none";
  701. } else {
  702. d.style.display = "none";
  703. lm.style.display = "none";
  704. m.style.display = "none";
  705. q.style.display = "none";
  706. l.style.display = "none";
  707. f.style.display = "none";
  708. logos.style.display = "none";
  709. }
  710.  
  711. }
  712.  
  713. function mostra_oculta_federal(){
  714. var logos = document.getElementById("logos-loterias");
  715. var q = document.getElementById("quina");
  716. var m = document.getElementById("mega");
  717. var lm = document.getElementById("lotomania");
  718. var l = document.getElementById("lotofacil");
  719. var d = document.getElementById("dupla");
  720. var f = document.getElementById("federal");
  721. if (f.style.display === "none") {
  722. f.style.display = "block";
  723. m.style.display = "none";
  724. q.style.display = "none";
  725. l.style.display = "none";
  726. lm.style.display = "none";
  727. d.style.display = "none";
  728. logos.style.display = "none";
  729. } else {
  730. lm.style.display = "none";
  731. m.style.display = "none";
  732. q.style.display = "none";
  733. l.style.display = "none";
  734. f.style.display = "none";
  735. d.style.display = "none";
  736. logos.style.display = "none";
  737. }
  738.  
  739. }
  740. </script>
  741.  
  742. <style type="text/css">
  743. .loterias-quadro{
  744. background: #D9D5D5;
  745. min-height: 100%;
  746. margin: 0 auto; display: block;
  747. border-radius: 5px;
  748. }
  749.  
  750. .lt-number {
  751. width: 38px;
  752. height: 38px;
  753. border: 1px solid;
  754. border-radius: 50%;
  755. text-align: center;
  756. font-size: 20px;
  757. font-weight: 400;
  758. margin: auto;
  759. line-height: 42px;
  760. float: left;
  761. }
  762. .mega-sena-colors.color {
  763. color: #209869;
  764. }
  765.  
  766. .quina-colors.color {
  767. color: #260085;
  768. }
  769. .loto-facil-colors.color {
  770. color: #930089;
  771. }
  772.  
  773. .loto-mania-colors.color {
  774. color: #f8972d;
  775. }
  776.  
  777. .dupla-sena-colors.color {
  778. color: #a61324;
  779. }
  780.  
  781. .lottery-title{
  782. color: #fff;
  783. font-size: 18px;
  784. line-height: 20px;
  785. font-weight: 400;
  786. text-transform: uppercase;
  787. letter-spacing: -.5px;
  788. display: block;
  789. }
  790. .lottery-title2{
  791. color: #444;
  792. font-size: 16px;
  793. line-height: 5px;
  794. font-weight: 400;
  795. text-transform: uppercase;
  796. letter-spacing: -.5px;
  797. margin-top:10px;
  798. display: block;
  799. float: left;
  800. }
  801. .lottery-info{
  802. text-align: center;
  803. color: #fff;
  804. font-size: 11px;
  805. line-height: 11px;
  806. font-weight: 400;
  807. margin-top:-15px;
  808. text-transform: uppercase;
  809.  
  810. }
  811. .winners{
  812. font-size: 16px;
  813. text-align: center;
  814. color: #444;
  815. font-weight: 400;
  816. text-transform: uppercase;
  817. padding-bottom: 30px;
  818. margin-top:10px;
  819. }
  820.  
  821. .alignCenterTexto {
  822. font-size: 14px;
  823. line-height: 14px;
  824. text-align: center;
  825. margin-bottom: 5px;
  826. color: #000;
  827. }
  828. .alignCenterValor {
  829. font-size: 18px;
  830. line-height: 18px;
  831. text-align: center;
  832. color: #000;
  833. }
  834.  
  835. .overflow {
  836. display: block;
  837. margin: 0 auto;
  838. max-width: 370px;
  839. }
  840.  
  841. .data-table {
  842. table-layout: fixed;
  843. margin-bottom: 30px;
  844. margin-top: 0;
  845. }
  846.  
  847. .data-table .headAlign {
  848. text-align: center;
  849. vertical-align: middle;
  850. }
  851.  
  852. .lottery-results-table .data-table .headAlign td, .lottery-results-table .data-table .headAlign tr {
  853. text-align: center;
  854. }
  855. .lottery-results-table .data-table td:nth-child(1) {
  856. text-align: left;
  857. color: #1a1a1a;
  858. }
  859. .data-table .headAlign td, .lottery-results-table .data-table .headAlign tr {
  860. text-align: center;
  861. }
  862. .data-table td:last-child {
  863. text-align: right;
  864. }
  865. tbody {
  866. display: table-row-group;
  867. vertical-align: middle;
  868. border-color: inherit;
  869. }
  870.  
  871. </style>
  872.  
  873. <?php
  874. $url= "https://noticias.uol.com.br/loterias/";
  875. // pegar dados
  876. $dadosSite = file_get_contents($url);
  877.  
  878. /* Mega sena */
  879. $megasena1 = explode('<h2 class="lottery-title">mega sena</h2></div><div class="lottery-info"><span>',$dadosSite);
  880. $megasena1 = explode('</span>',$megasena1[1]);
  881.  
  882. $numerosmega = explode('<div class="lottery-single"><div class="row"> <div class="lt-result no-margin">',$dadosSite);
  883. $numerosmega = explode('<div class="winners">',$numerosmega[1]);
  884.  
  885. $resultadomega = explode('<div class="lottery-single"><div class="row"> <div class="lt-result no-margin">',$dadosSite);
  886. $resultadomega = explode('</div></a></a>',$resultadomega[1]);
  887.  
  888.  
  889. $resultadomega2 = explode('<div class="winners">',$resultadomega[0]);
  890. $resultadomega2 = explode('</div>',$resultadomega2[1]);
  891.  
  892. /* fim mega sena */
  893.  
  894. /* Quina */
  895.  
  896. $quina1 = explode('<h2 class="lottery-title">quina</h2></div><div class="lottery-info"><span>',$dadosSite);
  897. $quina1 = explode('</span>',$quina1[1]);
  898.  
  899. $numerosquina = explode('<h2 class="lottery-title">quina</h2>',$dadosSite);
  900. $numerosquina = explode('<div class="winners">',$numerosquina[1]);
  901.  
  902. $numerosquina2 = explode('<div class="lt-result">',$numerosquina[0]);
  903. $numerosquina2 = explode(' <div class="winners">',$numerosquina2[1]);
  904.  
  905. $resultadoquina = explode('<div class="lottery-single"><div class="row"> <div class="lt-result"> <div class="lt-number quina-colors border color">',$dadosSite);
  906. $resultadoquina = explode('</a>',$resultadoquina[1]);
  907.  
  908. $resultadoquina2 = explode('<div class="winners">',$resultadoquina[0]);
  909. $resultadoquina2 = explode('</div>',$resultadoquina2[1]);
  910.  
  911. /* fim Quina */
  912.  
  913. /* Lotofacil */
  914.  
  915. $lotofacil1 = explode('<h2 class="lottery-title">lotofácil</h2></div><div class="lottery-info"><span>',$dadosSite);
  916. $lotofacil1 = explode('</span>',$lotofacil1[1]);
  917.  
  918. $numeroslotofacil = explode('<h2 class="lottery-title">lotofácil</h2>',$dadosSite);
  919. $numeroslotofacil = explode('<div class="winners">',$numeroslotofacil[1]);
  920.  
  921. $numeroslotofacil2 = explode('<div class="lt-result">',$numeroslotofacil[0]);
  922. $numeroslotofacil2 = explode(' <div class="winners">',$numeroslotofacil2[1]);
  923.  
  924. $resultadolotofacil = explode('<div class="lottery-single"><div class="row"> <div class="lt-result"> <div class="lt-number loto-facil-colors border color">',$dadosSite);
  925. $resultadolotofacil = explode('</a>',$resultadolotofacil[1]);
  926.  
  927. $resultadolotofacil2 = explode('<div class="winners">',$resultadolotofacil[0]);
  928. $resultadolotofacil2 = explode('</div>',$resultadolotofacil2[1]);
  929.  
  930. /* fim lotofacil */
  931.  
  932. /* Lotomania */
  933.  
  934. $lotomania1 = explode('<h2 class="lottery-title">lotomania</h2></div><div class="lottery-info"><span>',$dadosSite);
  935. $lotomania1 = explode('</span>',$lotomania1[1]);
  936.  
  937. $numeroslotomania = explode('<h2 class="lottery-title">lotomania</h2></div>',$dadosSite);
  938. $numeroslotomania = explode('<div class="winners">',$numeroslotomania[1]);
  939.  
  940. $numeroslotomania2 = explode('<div class="lt-result">',$numeroslotomania[0]);
  941. $numeroslotomania2 = explode('</div></div>',$numeroslotomania2[1]);
  942.  
  943. $resultadolotomania = explode('<div class="lottery-single"><div class="row"> <div class="lt-result"> <div class="lt-number loto-mania-colors border color">',$dadosSite);
  944. $resultadolotomania = explode('</a>',$resultadolotomania[1]);
  945.  
  946. $resultadolotomania2 = explode('<div class="winners">',$resultadolotomania[0]);
  947. $resultadolotomania2 = explode('</div>',$resultadolotomania2[1]);
  948.  
  949. /* fim lotomania */
  950.  
  951. /* Dupla sena */
  952. $duplasena1 = explode('<h2 class="lottery-title">dupla sena</h2></div><div class="lottery-info"><span>',$dadosSite);
  953. $duplasena1 = explode('</span>',$duplasena1[1]);
  954.  
  955.  
  956. $numerosdupla = explode('<div class="lt-title">1º SORTEIO</div> <div class="lt-result no-margin">',$dadosSite);
  957. $numerosdupla = explode('</div> <div class="lt-title">',$numerosdupla[1]);
  958.  
  959. $numerosdupla2 = explode('<div class="lt-title">2º SORTEIO</div> <div class="lt-result no-margin">',$dadosSite);
  960. $numerosdupla2 = explode('<div class="winners">',$numerosdupla2[1]);
  961.  
  962. $resultadodupla = explode('<div class="lt-title">2º SORTEIO</div>',$dadosSite);
  963. $resultadodupla = explode('</div></a></a>',$resultadodupla[1]);
  964.  
  965.  
  966. $resultadodupla2 = explode('<div class="winners">',$resultadodupla[0]);
  967. $resultadodupla2 = explode('</div>',$resultadodupla2[1]);
  968.  
  969. /* fim dupla sena */
  970.  
  971. /* Federal */
  972. $federal1 = explode('<h2 class="lottery-title">federal</h2></div><div class="lottery-info"><span>',$dadosSite);
  973. $federal1 = explode('</span>',$federal1[1]);
  974.  
  975. $tabelafederal1 = explode('<div class="overflow">',$dadosSite);
  976. $tabelafederal1 = explode('</table></div> </div> </div></div></a>',$tabelafederal1[1]);
  977.  
  978. /* fim federal */
  979.  
  980. ?>
  981. <div style="background: #FFF; padding: 15px;border: 1px solid #ccc;">
  982.  
  983. <h4 style="font-family: 'Roboto','san-serif';font-size: 20px; color:#34446C; font-weight: 900;margin-top: 0; line-height: 1;text-align: left; margin-bottom: 10px;"><span>LOTERIAS</span></h4>
  984.  
  985. <div id='logos-loterias' style='display:block;'>
  986. <table style="border-collapse: collapse; border: none;">
  987. <tr style="border: none;">
  988. <td style="border: none;">
  989. <div style="float:right";><img src="https://p2.trrsf.com/image/fget/cf/24/24/images.terra.com/2015/07/24/mega-sena.png"/></div>
  990. </td>
  991. <td style="border: none;">
  992. <span style="cursor: pointer;" onclick='mostra_oculta_mega()'><p class="lottery-title2">Mega Sena</p></span>
  993. </td>
  994. </tr>
  995. <tr style="border: none;">
  996. <td style="border: none;">
  997. <div style="float:right";><img src="https://p2.trrsf.com/image/fget/cf/24/24/images.terra.com/2015/07/24/quinanovo.png"/></div>
  998. </td>
  999. <td style="border: none;">
  1000. <span style="cursor: pointer;" onclick='mostra_oculta_quina()'><p class="lottery-title2">Quina</p></span>
  1001. </td>
  1002. </tr>
  1003. <tr style="border: none;">
  1004. <td style="border: none;">
  1005. <div style="float:right";><img src="https://p2.trrsf.com/image/fget/cf/24/24/images.terra.com/2015/07/24/lotofacil.png"/></div>
  1006. </td>
  1007. <td style="border: none;">
  1008. <span style="cursor: pointer;" onclick='mostra_oculta_lotofacil()'><p class="lottery-title2">Lotofácil</p></span>
  1009. </td>
  1010. </tr>
  1011. <tr style="border: none;">
  1012. <td style="border: none;">
  1013. <div style="float:right";><img src="https://p2.trrsf.com/image/fget/cf/24/24/images.terra.com/2015/07/24/lotomania.png"/></div>
  1014. </td>
  1015. <td style="border: none;">
  1016. <span style="cursor: pointer;" onclick='mostra_oculta_lotomania()'><p class="lottery-title2">Lotomania</p></span>
  1017. </td>
  1018. </tr>
  1019. <tr style="border: none;">
  1020. <td style="border: none;">
  1021. <div style="float:right";><img src="https://p2.trrsf.com/image/fget/cf/24/24/images.terra.com/2015/07/24/dupla-sena.png"/></div>
  1022. </td>
  1023. <td style="border: none;">
  1024. <span style="cursor: pointer;" onclick='mostra_oculta_dupla()'><p class="lottery-title2">Dupla Sena</p></span>
  1025. </td>
  1026. </tr>
  1027. <tr style="border: none;">
  1028. <td style="border: none;">
  1029. <div style="float:right";><img src="https://p2.trrsf.com/image/fget/cf/24/24/images.terra.com/2015/07/24/loteria-federalnovo.png"/></div>
  1030. </td>
  1031. <td style="border: none;">
  1032. <span style="cursor: pointer;" onclick='mostra_oculta_federal()'><p class="lottery-title2"> Loteria Federal</p></span>
  1033. </td>
  1034. </tr>
  1035. </table>
  1036. </div>
  1037.  
  1038. <div id='mega' style='display:none;' class="loterias-quadro">
  1039. <div style="background-color: #209869;border-radius: 5px; ">
  1040.  
  1041. <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
  1042. <h2 class="lottery-title">Mega Sena</h2>
  1043. </div>
  1044.  
  1045. <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
  1046. <h2 class="lottery-info"><?php echo $megasena1[0]; ?></h2>
  1047. </div>
  1048. </div>
  1049. <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
  1050. <?php echo $numerosmega[0]; ?>
  1051. <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
  1052. <div class="winners"><?php echo $resultadomega2[0]; ?>
  1053. </div>
  1054. </div>
  1055. <center><p style="cursor: pointer;" onclick='mostra_oculta_logos()'>Voltar</p></center>
  1056. <div style="clear: both;"></div>
  1057. </div>
  1058.  
  1059. <div id='quina' style='display:none;' class="loterias-quadro">
  1060. <div style="background-color: #260085;border-radius: 5px; ">
  1061. <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
  1062. <h2 class="lottery-title">Quina</h2>
  1063. </div>
  1064. <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
  1065. <h2 class="lottery-info"><?php echo $quina1[0]; ?></h2>
  1066. </div>
  1067. </div>
  1068. <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%; padding-top: 10px;">
  1069. <?php echo $numerosquina2[0]; ?>
  1070. <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
  1071. <div class="winners"><?php echo $resultadoquina2[0]; ?>
  1072. </div>
  1073. </div>
  1074. <center><p style="cursor: pointer;" onclick='mostra_oculta_logos()'>Voltar</p></center>
  1075. <div style="clear: both;"></div>
  1076. </div>
  1077.  
  1078. <div id='lotofacil' style='display:none;' class="loterias-quadro">
  1079. <div style="background-color: #930089;border-radius: 5px; ">
  1080.  
  1081. <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
  1082. <h2 class="lottery-title">LotoFácil</h2>
  1083. </div>
  1084.  
  1085. <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
  1086. <h2 class="lottery-info"><?php echo $lotofacil1[0]; ?></h2>
  1087. </div>
  1088. </div>
  1089. <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%; padding-top: 10px;">
  1090. <?php echo $numeroslotofacil2[0]; ?>
  1091. <div class="winners"><?php echo $resultadolotofacil2[0]; ?> <br></div>
  1092. <center><p style="cursor: pointer;" onclick='mostra_oculta_logos()'>Voltar</p></center>
  1093. <div style="clear: both;"></div>
  1094. </div>
  1095.  
  1096. <div id='lotomania' style='display:none;' class="loterias-quadro">
  1097. <div style="background-color: #f8972d;border-radius: 5px; ">
  1098.  
  1099. <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
  1100. <h2 class="lottery-title">Lotomania</h2>
  1101. </div>
  1102. <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
  1103. <h2 class="lottery-info"><?php echo $lotomania1[0]; ?></h2>
  1104. </div>
  1105. </div>
  1106. <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%; padding-top: 10px;">
  1107. <?php echo $numeroslotomania2[0]; ?>
  1108. <div class="winners"><?php echo $resultadolotomania2[0]; ?> <br></div>
  1109. <center><p style="cursor: pointer;" onclick='mostra_oculta_logos()'>Voltar</p></center>
  1110. <div style="clear: both;"></div>
  1111. </div>
  1112.  
  1113. <div id='dupla' style='display:none;' class="loterias-quadro">
  1114. <div style="background-color: #a61324;border-radius: 5px; ">
  1115.  
  1116. <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
  1117. <h2 class="lottery-title">Dupla Sena</h2>
  1118. </div>
  1119.  
  1120. <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
  1121. <h2 class="lottery-info"><?php echo $duplasena1[0]; ?></h2>
  1122. </div>
  1123. </div>
  1124.  
  1125. <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
  1126. <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;" class="lt-title">1º SORTEIO</div>
  1127. <?php echo $numerosdupla[0]; ?>
  1128. <br>
  1129. <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;" class="lt-title">2º SORTEIO</div>
  1130. <?php echo $numerosdupla2[0]; ?>
  1131. <div class="winners"><?php echo $resultadodupla2[0]; ?> <br></div>
  1132.  
  1133. <center><p style="cursor: pointer;" onclick='mostra_oculta_logos()'>Voltar</p></center>
  1134. <div style="clear: both;"></div>
  1135. </div>
  1136.  
  1137. <div id='federal' style='display:none;' class="loterias-quadro">
  1138. <div style="background-color: #103099; border-radius: 5px; ">
  1139.  
  1140. <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
  1141. <h2 class="lottery-title">Federal</h2>
  1142. </div>
  1143.  
  1144. <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
  1145. <h2 class="lottery-info"><?php echo $federal1[0]; ?></h2>
  1146. </div>
  1147. </div>
  1148.  
  1149. <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%; padding-top: 10px;">
  1150. <?php echo $tabelafederal1[0]; ?> </table>
  1151. </div>
  1152. <center><p style="cursor: pointer;" onclick='mostra_oculta_logos()'>Voltar</p></center>
  1153. <div style="clear: both;"></div>
  1154. </div>
  1155.  
  1156. </div>
  1157. <div style="display: flex; flex-direction: row; justify-content: center; align-items: center;">
  1158. <?php echo do_shortcode('[metaslider id="148351"]'); ?>
  1159. </div>
  1160.  
  1161. <!-- fim loterias -->
  1162.  
  1163.  
  1164. <!-- PREVISÃO DO TEMPO -->
  1165. <div style="background: #FFF;padding: 15px;margin-bottom: 5px;margin-top:10px; border-radius: 5px;">
  1166. <center><p style="font-size: 20px;color:#fff; background: #29234b;"class="td-block-title"> Previsão do Tempo</p><img src="https://www.tempo.com/wimages/foto8c2156dcb22af6017ce18ac5d92f9fa7.png"></center>
  1167. </div>
  1168.  
  1169. <!-- FIM PREVISÃO DO TEMPO -->
  1170.  
  1171.  
  1172. <!-- inserir bloco blogs aqui -->
  1173. <!-- início blog agro -->
  1174. <?php
  1175. $urlagro= "https://tnsul.com/variedades/category/agro-tudo/";
  1176.  
  1177. // pegar dados
  1178. $dadosSiteagro = file_get_contents($urlagro);
  1179.  
  1180. $agro1 = explode('<div class="tdb_module_cat_grid_1 td-animation-stack tdb-cat-grid-post tdb-cat-grid-post-0">',$dadosSiteagro);
  1181. $agrocerto = explode('</div></div>',$agro1[1]);
  1182.  
  1183. $tituloagro1 = explode('<h3 class="entry-title td-module-title">',$agrocerto[0]);
  1184. $tituloagro1 = explode('</a>',$tituloagro1[1]);
  1185.  
  1186. $tituloagro2 = explode('">',$tituloagro1[0]);
  1187. $tituloagro2 = explode('</',$tituloagro2[1]);
  1188.  
  1189. $imagemagro1 = explode('data-img-url="',$agrocerto[0]);
  1190. $imagemagro1 = explode('"',$imagemagro1[1]);
  1191.  
  1192. ?>
  1193. <div style="display: -ms-flexbox; display: flex;-ms-flex-wrap: wrap;flex-wrap: wrap;margin-right: -15px; margin-left: -15px; margin-top:10px;">
  1194. <div style="margin-bottom: 20px;padding-bottom: 5px; position: relative; box-sizing: border-box; background-color: #fff; border: 0; display: block; margin-right: 15px; margin-left: 15px;width: 100%;">
  1195. <div style="position: relative; display: block; width:100%; margin-top: 10px;">
  1196. <div style="-ms-flex: 0 0 33.333333%;flex: 0 0 33.333333%; max-width: 33.333333%; float: left!important;padding: 0;margin: 0;">
  1197. <a href="https://tnsul.com/variedades/category/agro-e-tudo/" target="_self">
  1198. <?php echo "<img src='$imagemagro1[0]' class='img-blogs'style='margin-left:10px; max-height:82px;'/>"; ?>
  1199. </a>
  1200. </div>
  1201. <div style="-ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%;float: right!important;padding: 0;margin: 0;">
  1202. <a href="https://tnsul.com/variedades/category/agro-tudo/" target="_self">
  1203. <h3 style="color: #355D3A; font-weight: bold; font-size: 18px; line-height: 1; margin-left: 20px; margin-right: 10px; margin-bottom:5px;">Agro é Tudo</h3>
  1204. </a>
  1205. <a href="https://tnsul.com/variedades/category/agro-tudo/" target="_self">
  1206. <?php echo "<h3 class='entry-title td-module-title' style='margin-top:10px; font-weight: bold;font-size: 14px;line-height: 1;margin-left: 20px;margin-right: 10px;margin-bottom:5px;'>".$tituloagro2[0]."</h3>";?>
  1207. </a>
  1208. </div>
  1209. </div>
  1210. </div>
  1211.  
  1212. </div>
  1213.  
  1214. <!-- fim blog agro -->
  1215.  
  1216. <!-- inicio sobre rodas -->
  1217.  
  1218. <?php
  1219. $urlrodas= "https://tnsul.com/variedades/category/sobre-rodas/";
  1220.  
  1221. // pegar dados
  1222. $dadosSiterodas = file_get_contents($urlrodas);
  1223.  
  1224. $rodas1 = explode('class="td_block_inner td-mc1-wrap">
  1225. <div class="td_module_flex td_module_flex_1 td_module_wrap td-animation-stack">',$dadosSiterodas);
  1226. $rodascerto = explode('</div></div>',$rodas1[1]);
  1227.  
  1228. $titulorodas1 = explode('<h3 class="entry-title td-module-title">',$rodascerto[0]);
  1229. $titulorodas1 = explode('</a>',$titulorodas1[1]);
  1230.  
  1231. $titulorodas2 = explode('">',$titulorodas1[0]);
  1232. $titulorodas2 = explode('</',$titulorodas2[1]);
  1233.  
  1234. $imagemrodas1 = explode('data-img-url="',$rodascerto[0]);
  1235. $imagemrodas1 = explode('"',$imagemrodas1[1]);
  1236.  
  1237. ?>
  1238. <div style="display: -ms-flexbox; display: flex;-ms-flex-wrap: wrap;flex-wrap: wrap;margin-right: -15px; margin-left: -15px;">
  1239. <div style="margin-bottom: 20px;padding-bottom: 5px; position: relative; box-sizing: border-box; background-color: #fff; border: 0; display: block; margin-right: 15px; margin-left: 15px;width: 100%;">
  1240. <div style="position: relative; display: block; width:100%; margin-top: 10px;">
  1241. <div style="-ms-flex: 0 0 33.333333%;flex: 0 0 33.333333%; max-width: 33.333333%; float: left!important;padding: 0;margin: 0;">
  1242. <a href="https://tnsul.com/variedades/category/sobre-rodas/" target="_self">
  1243. <?php echo "<img src='$imagemrodas1[0]' class='img-blogs' style='margin-left:10px; max-height:82px;'/>"; ?>
  1244. </a>
  1245. </div>
  1246. <div style="-ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%;float: right!important;padding: 0;margin: 0;">
  1247. <a href="https://tnsul.com/variedades/category/sobre-rodas/" target="_self">
  1248. <h3 style="color: #8A2C2D; font-weight: bold; font-size: 18px; line-height: 1; margin-left: 20px; margin-right: 10px; margin-bottom:5px;">Sobre Rodas</h3>
  1249. </a>
  1250. <a href="https://tnsul.com/variedades/category/sobre-rodas/" target="_self">
  1251. <?php echo "<h3 class='entry-title td-module-title' style='margin-top:10px; font-weight: bold;font-size: 14px;line-height: 1;margin-left: 20px;margin-right: 10px;margin-bottom:5px;'>".$titulorodas2[0]."</h3>";?>
  1252. </a>
  1253. </div>
  1254. </div>
  1255. </div>
  1256.  
  1257. </div>
  1258.  
  1259. <!-- fim sobre rodas -->
  1260.  
  1261. <!-- fim bloco blogs -->
  1262.  
  1263. <!-- inicio horoscopo -->
  1264. <script async src="//widget.horoscopovirtual.com.br/js/horoscopo.js?background=ffffff&color=29234b&border=ffffff&text=29234b&font=roboto"></script>
  1265. <!-- fim horoscopo -->
  1266.  
  1267.  
  1268.  
  1269. <!-- bloco blogs3 -->
  1270. <!-- inicio grande chefe -->
  1271.  
  1272. <?php
  1273. $urlchefe= "https://tnsul.com/variedades/category/o-grande-chef/";
  1274.  
  1275. // pegar dados
  1276. $dadosSitechefe = file_get_contents($urlchefe);
  1277.  
  1278. $chefe1 = explode('<div class="tdb_module_cat_grid_1 td-animation-stack tdb-cat-grid-post tdb-cat-grid-post-0">',$dadosSitechefe);
  1279. $chefecerto = explode('</div></div>',$chefe1[1]);
  1280.  
  1281. $titulochefe1 = explode('<h3 class="entry-title td-module-title">',$chefecerto[0]);
  1282. $titulochefe1 = explode('</a>',$titulochefe1[1]);
  1283.  
  1284. $titulochefe2 = explode('">',$titulochefe1[0]);
  1285. $titulochefe2 = explode('</',$titulochefe2[1]);
  1286.  
  1287. $imagemchefe1 = explode('data-img-url="',$chefecerto[0]);
  1288. $imagemchefe1 = explode('"',$imagemchefe1[1]);
  1289.  
  1290. ?>
  1291. <div style="display: -ms-flexbox; display: flex;-ms-flex-wrap: wrap;flex-wrap: wrap;margin-right: -15px; margin-left: -15px;">
  1292. <div style="margin-bottom: 20px;padding-bottom: 5px; position: relative; box-sizing: border-box; background-color: #fff; border: 0; display: block; margin-right: 15px; margin-left: 15px;width: 100%;">
  1293. <div style="position: relative; display: block; width:100%; margin-top: 10px;">
  1294. <div style="-ms-flex: 0 0 33.333333%;flex: 0 0 33.333333%; max-width: 33.333333%; float: left!important;padding: 0;margin: 0;">
  1295. <a href="https://tnsul.com/variedades/category/o-grande-chef/" target="_self">
  1296. <?php echo "<img src='$imagemchefe1[0]' class='img-blogs' style='margin-left:10px; width:100%; max-height:82px;'/>"; ?>
  1297. </a>
  1298. </div>
  1299. <div style="-ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%;float: right!important;padding: 0;margin: 0;">
  1300. <a href="https://tnsul.com/variedades/category/o-grande-chef/" target="_self">
  1301. <h3 style="color:#DD9933; font-weight: bold; font-size: 18px; line-height: 1; margin-left: 20px; margin-right: 10px; margin-bottom:5px;">O Grande Chef</h3>
  1302. </a>
  1303. <a href="https://tnsul.com/variedades/category/o-grande-chef/" target="_self">
  1304. <?php echo "<h3 class='entry-title td-module-title' style='margin-top:10px; font-weight: bold;font-size: 14px;line-height: 1;margin-left: 20px;margin-right: 10px;margin-bottom:5px;'>".$titulochefe2[0]."</h3>";?>
  1305. </a>
  1306. </div>
  1307. </div>
  1308. </div>
  1309.  
  1310. </div>
  1311. <!-- fim grande chefe -->
  1312.  
  1313. <!-- inicio fuxicos -->
  1314. <?php
  1315. $urlfuxicos= "https://tnsul.com/variedades/category/fuxicos-e-famosos/";
  1316.  
  1317. // pegar dados
  1318. $dadosSitefuxicos = file_get_contents($urlfuxicos);
  1319.  
  1320. $fuxicos1 = explode('<div class="tdb_module_cat_grid_1 td-animation-stack tdb-cat-grid-post tdb-cat-grid-post-0">',$dadosSitefuxicos);
  1321. $fuxicoscerto = explode('</div></div>',$fuxicos1[1]);
  1322.  
  1323. $titulofuxicos1 = explode('<h3 class="entry-title td-module-title">',$fuxicoscerto[0]);
  1324. $titulofuxicos1 = explode('</a>',$titulofuxicos1[1]);
  1325.  
  1326. $titulofuxicos2 = explode('">',$titulofuxicos1[0]);
  1327. $titulofuxicos2 = explode('</',$titulofuxicos2[1]);
  1328.  
  1329. $imagemfuxicos1 = explode('data-img-url="',$fuxicoscerto[0]);
  1330. $imagemfuxicos1 = explode('"',$imagemfuxicos1[1]);
  1331.  
  1332. ?>
  1333. <div style="display: -ms-flexbox; display: flex;-ms-flex-wrap: wrap;flex-wrap: wrap;margin-right: -15px; margin-left: -15px;">
  1334. <div style="margin-bottom: 20px;padding-bottom: 5px; position: relative; box-sizing: border-box; background-color: #fff; border: 0; display: block; margin-right: 15px; margin-left: 15px;width: 100%;">
  1335. <div style="position: relative; display: block; width:100%; margin-top: 10px;">
  1336. <div style="-ms-flex: 0 0 33.333333%;flex: 0 0 33.333333%; max-width: 33.333333%; float: left!important;padding: 0;margin: 0;">
  1337. <a href="https://tnsul.com/variedades/category/fuxicos-e-famosos/" target="_self">
  1338. <?php echo "<img src='$imagemfuxicos1[0]' class='img-blogs' style='margin-left:10px; width:100%; max-height:82px;'/>"; ?>
  1339. </a>
  1340. </div>
  1341. <div style="-ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%;float: right!important;padding: 0;margin: 0;">
  1342. <a href="https://tnsul.com/variedades/category/fuxicos-e-famosos/" target="_self">
  1343. <h3 style="color: #CC6B36; font-weight: bold; font-size: 18px; line-height: 1; margin-left: 20px; margin-right: 10px; margin-bottom:5px;">Fuxicos&Famosos</h3>
  1344. </a>
  1345. <a href="https://tnsul.com/variedades/category/fuxicos-e-famosos/" target="_self">
  1346. <?php echo "<h3 class='entry-title td-module-title' style='margin-top:10px; font-weight: bold;font-size: 14px;line-height: 1;margin-left: 20px;margin-right: 10px;margin-bottom:5px;'>".$titulofuxicos2[0]."</h3>";?>
  1347. </a>
  1348. </div>
  1349. </div>
  1350. </div>
  1351.  
  1352. </div>
  1353. <!-- fim fuxicos -->
  1354.  
  1355.  
  1356. <!-- fim bloco blogs3 -->
  1357.  
  1358. <?php
  1359. endif;
  1360.  
  1361.  
  1362. if ($i <= 10):
  1363. echo "<article autoload-id='{$i}' style='display:block;'>";
  1364. else:
  1365. echo "<article autoload-id='{$i}' style='display:none;'>";
  1366. endif;
  1367. if ($i == 3):
  1368. ?>
  1369.  
  1370.  
  1371. <!-- Aquicódigo-tabela-campeonatos
  1372. <script>
  1373. $('body').ready(function () {
  1374. $('#iframe1-seriea').css('display', 'block');
  1375. $('#iframe2-serieb').css('display', 'none');
  1376.  
  1377. $('#link-seriea').click(function () {
  1378. $('#iframe1-seriea').css('display', 'block');
  1379. $('#iframe2-serieb').css('display', 'none');
  1380. });
  1381.  
  1382. $('#link-serieb').click(function () {
  1383. $('#iframe1-seriea').css('display', 'none');
  1384. $('#iframe2-serieb').css('display', 'block');
  1385. });
  1386. });
  1387. </script>
  1388.  
  1389. <div style="background: #FFF;padding: 15px;margin-bottom: 20px;border-radius: 5px;">
  1390. <h4 class="block-title" style="margin-bottom: 6px;"><span>CLASSIFICAÇÃO BRASILEIRÃO</span></h4>
  1391.  
  1392. <a style="float:left;width: 45%;text-align:center;" id="link-seriea">Série A</a>
  1393. <a style="float:right;width: 45%;text-align:center;" id="link-serieb">Série B</a>
  1394.  
  1395. <div class="content-iframe" style="margin-top: 5px;">
  1396. <div id="iframe1-seriea"><iframe src="https://tnsul.com/wp-content/dnsul/tabelas/seriea-g4.php" width="100%" frameborder="0" scrolling="no"></iframe></div>
  1397. <div id="iframe2-serieb"><iframe src="https://tnsul.com/wp-content/dnsul/tabelas/serieb-g4.php" width="100%" frameborder="0" scrolling="no"></iframe></div>
  1398. </div>
  1399.  
  1400. <a href="https://tnsul.com/brasileirao">Ver tabela completa</a>
  1401.  
  1402. <div style="clear:both;"></div>
  1403. </div>
  1404. -->
  1405.  
  1406. <!-----Aquicódigo-tabela-campeonatos---------------------->
  1407.  
  1408.  
  1409.  
  1410. <?php
  1411. endif;
  1412. ?>
  1413.  
  1414. <div style="background: #FFF;padding: 15px;margin-bottom: 20px;border-radius: 5px;">
  1415. <!-- início de cada bloco de notícias -->
  1416.  
  1417. <?php echo $mod->get_category(); ?>
  1418. <?php echo $mod->get_date(); ?>
  1419.  
  1420. <div class="item-details" style="padding-top: 10px;">
  1421. <div class="td-module-meta-info">
  1422. <?php echo $mod->get_title(); ?>
  1423. </div>
  1424. </div>
  1425.  
  1426. <div class="td-module-thumb">
  1427. <?php echo $mod->get_excerpt(); ?>
  1428. <br /><br />
  1429. <?php echo $mod->get_image('td_265x198'); ?>
  1430. <br />
  1431. <br />
  1432. <?php echo $mod->get_social_sharing_top(); ?>
  1433. <br />
  1434. </div>
  1435. </div>
  1436.  
  1437. <!-- fim do início de cada bloco de notícias -->
  1438.  
  1439. <?php
  1440. $args = [
  1441. 'order' => 'ASC',
  1442. 'post_type' => 'dnsul-ads',
  1443. ];
  1444.  
  1445. $post1 = get_posts($args);
  1446.  
  1447. foreach ($post1 as $single):
  1448. $meta = get_post_meta($single->ID);
  1449.  
  1450. if ($meta['ordem'][0] == $i):
  1451. if ($meta['tipo'][0] == 'imagem'):
  1452. echo '<a href="' . $meta['url'][0] . '" target="_blank"><img src="' . $meta['conteudo'][0] . '" style="margin-bottom: 15px;"/></a>';
  1453. elseif ($meta['tipo'][0] == 'youtube'):
  1454. echo '<center>' . $meta['conteudo'][0] . '</center>';
  1455. endif;
  1456. endif;
  1457. endforeach;
  1458. ?>
  1459.  
  1460. </article>
  1461.  
  1462. <?php
  1463.  
  1464. $i++;
  1465. endforeach;
  1466.  
  1467. }
  1468. wp_reset_postdata();
  1469.  
  1470.  
Advertisement
Add Comment
Please, Sign In to add comment