Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $post;
- $url = explode('/', $_SERVER['REQUEST_URI']);
- if (isset($url[2])):
- $category = $url[2];
- endif;
- $td_template_layout = new td_template_layout('no_sidebar');
- $td_module_class = 'td_module_mob_1';
- $td_module = td_api_module::get_by_id($td_module_class);
- if ($td_module['uses_columns'] === false) {
- $td_template_layout->disable_output();
- }
- if (have_posts()) {
- $tds_loop_ad_module_mob = td_util::get_option('tds_loop_ad_module_mob');
- if (empty($tds_loop_ad_module_mob)) {
- $tds_loop_ad_module_mob = 5;
- }
- $td_ad_position_counter = 1;
- $posts_args = array(
- 'posts_per_page' => 11,
- 'offset' => 0,
- 'cat' => '25,20,67,3438,19,1,23,22,7822',
- 'orderby' => 'date',
- 'order' => 'DESC',
- 'post_type' => 'post',
- 'post_status' => 'publish',
- 'suppress_filters' => false
- );
- /*
- $posts = get_posts($posts_args);
- $colunas = array( 'numberposts' => 1, 'cat' => 7762 );
- $myposts = get_posts( $colunas );
- $i = 1;
- foreach ($posts as $post):
- $mod = new td_module_mob_1($post);
- if ($i == 5):
- */
- $posts = get_posts($posts_args);
- $i = 0;
- foreach ($posts as $post):
- $mod = new td_module_mob_1($post);
- if ($i == 2):
- ?>
- <!--------aqui-tn hoje-------------->
- <div style="display: flex; flex-direction: row; justify-content: center; align-items: center;width:100%;background: #fff;margin-bottom: 20px;border-radius: 5px;">
- <div style="background: #FFF;padding: 15px;border-radius: 5px;">
- <h4 class="block-title" style="margin-bottom: 6px;"><span>Jornal TN Hoje</span></h4>
- <p style="text-align: center;"><?php echo do_shortcode('[metaslider id="155042"]'); ?></p>
- </div>
- </div>
- <!--------aqui-tn hoje-------------->
- <!--------aqui-codigo-classificados------------->
- <div style="padding: 15px;margin-bottom: 20px;background: #D9D5D5; border-radius: 5px; min-height: 100%; ">
- <img src="https://tnsul.com/wp-content/uploads/2020/09/bloco.jpg" width="100%;"/>
- <div class="clear clearfix"></div>
- <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>
- <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>
- <div class="clear clearfix"></div>
- </div>
- <!-- fim classificados -->
- <!-- aqui vai os novos colunistas
- <!-- inicio colunistas classico -->
- <div style="background: #FFF; padding: 15px;border: 1px solid #ccc; margin-bottom: 15px;">
- <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>
- <div class="slider single-item" style="width:90%; background: #FFF; margin:0 auto; margin-bottom: 10px;">
- <div>
- <table style="border-collapse: collapse; border: none;">
- <tr style="border: none;">
- <td style="border: none;width:40%">
- <img src="https://tnsul.com/wp-content/uploads/2020/08/marco2.jpg" style="border-radius:50%;"/>
- </td>
- <td style="border: none;">
- <div style="float: left; display: inline; margin-bottom: 0px; margin-top: 10px;">
- <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;">
- Marco Búrigo
- </h3>
- <?php
- function clwp_posts_marco(){
- // Defino o Nome da Categoria e a Quantidade de Posts a serem exibidos
- $the_query = new WP_Query( array( 'category_name' => 'marco-burigo', 'posts_per_page' => 1 ) );
- // O Loop
- if ( $the_query->have_posts() ) {
- while ( $the_query->have_posts() ) {
- $the_query->the_post();
- $string .= '<a href="' . get_the_permalink() .'" rel="bookmark"><span class="titulo-post-coluna">' . get_the_title() .'</span></a>';
- }
- } else {
- // Nada será exibido se nenhum Post Relacionado por Categoria foi encontrado
- }
- return $string;
- wp_reset_postdata();
- }
- ?>
- <div class="chama-editoria">
- <?php echo clwp_posts_marco(); ?>
- </div>
- </div>
- </td>
- </tr>
- <tr style="border: none;">
- <td style="border: none;width:40%">
- <img src="https://tnsul.com/wp-content/uploads/2020/07/moacir1.jpg" style="border-radius:50%;"/>
- </td>
- <td style="border: none;">
- <div style="float: left; display: inline; margin-bottom: 0px; margin-top: 10px;">
- <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;">
- Moacir Pereira
- </h3>
- <?php
- function clwp_posts_moacir(){
- // Defino o Nome da Categoria e a Quantidade de Posts a serem exibidos
- $the_query = new WP_Query( array( 'category_name' => 'moacir-pereira', 'posts_per_page' => 1 ) );
- // O Loop
- if ( $the_query->have_posts() ) {
- while ( $the_query->have_posts() ) {
- $the_query->the_post();
- $string .= '<a href="' . get_the_permalink() .'" rel="bookmark"><span class="titulo-post-coluna">' . get_the_title() .'</span></a>';
- }
- } else {
- // Nada será exibido se nenhum Post Relacionado por Categoria foi encontrado
- }
- return $string;
- wp_reset_postdata();
- }
- ?>
- <div class="chama-editoria">
- <?php echo clwp_posts_moacir(); ?>
- </div>
- </div>
- </td>
- </tr>
- </table>
- </div>
- <div>
- <table style="border-collapse: collapse; border: none;">
- <tr style="border: none;">
- <td style="border: none;width:40%">
- <img src="https://tnsul.com/wp-content/uploads/2020/08/vande2.jpg" style="border-radius:50%;"/>
- </td>
- <td style="border: none;">
- <div style="float: left; display: inline; margin-bottom: 0px; margin-top: 10px;">
- <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;">
- Padre Vander
- </h3>
- <?php
- function clwp_posts_padre(){
- // Defino o Nome da Categoria e a Quantidade de Posts a serem exibidos
- $the_query = new WP_Query( array( 'category_name' => 'padre-vander', 'posts_per_page' => 1 ) );
- // O Loop
- if ( $the_query->have_posts() ) {
- while ( $the_query->have_posts() ) {
- $the_query->the_post();
- $string .= '<a href="' . get_the_permalink() .'" rel="bookmark"><span class="titulo-post-coluna">' . get_the_title() .'</span></a>';
- }
- } else {
- // Nada será exibido se nenhum Post Relacionado por Categoria foi encontrado
- }
- return $string;
- wp_reset_postdata();
- }
- ?>
- <div class="chama-editoria">
- <?php echo clwp_posts_padre(); ?>
- </div>
- </div>
- </td>
- </tr>
- <tr style="border: none;">
- <td style="border: none;width:40%">
- <img src="https://tnsul.com/wp-content/uploads/2020/07/cacau1.jpg" style="border-radius:50%;"/>
- </td>
- <td style="border: none;">
- <div style="float: left; display: inline; margin-bottom: 0px; margin-top: 10px;">
- <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;">
- Cacau Menezes
- </h3>
- <?php
- function clwp_posts_cacau(){
- // Defino o Nome da Categoria e a Quantidade de Posts a serem exibidos
- $the_query = new WP_Query( array( 'category_name' => 'cacau-menezes', 'posts_per_page' => 1 ) );
- // O Loop
- if ( $the_query->have_posts() ) {
- while ( $the_query->have_posts() ) {
- $the_query->the_post();
- $string .= '<a href="' . get_the_permalink() .'" rel="bookmark"><span class="titulo-post-coluna">' . get_the_title() .'</span></a>';
- }
- } else {
- // Nada será exibido se nenhum Post Relacionado por Categoria foi encontrado
- }
- return $string;
- wp_reset_postdata();
- }
- ?>
- <div class="chama-editoria">
- <?php echo clwp_posts_cacau(); ?>
- </div>
- </div>
- </td>
- </tr>
- </table>
- </div>
- <div>
- <table style="border-collapse: collapse; border: none;">
- <tr style="border: none;">
- <td style="border: none;width:40%">
- <img src="https://tnsul.com/wp-content/uploads/2020/07/alexandre1.jpg" style="border-radius:50%;"/>
- </td>
- <td style="border: none;">
- <div style="float: left; display: inline; margin-bottom: 0px; margin-top: 10px;">
- <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;">
- Alexandre Garcia
- </h3>
- <?php
- function clwp_posts_garcia(){
- // Defino o Nome da Categoria e a Quantidade de Posts a serem exibidos
- $the_query = new WP_Query( array( 'category_name' => 'alexandre-garcia', 'posts_per_page' => 1 ) );
- // O Loop
- if ( $the_query->have_posts() ) {
- while ( $the_query->have_posts() ) {
- $the_query->the_post();
- $string .= '<a href="' . get_the_permalink() .'" rel="bookmark"><span class="titulo-post-coluna">' . get_the_title() .'</span></a>';
- }
- } else {
- // Nada será exibido se nenhum Post Relacionado por Categoria foi encontrado
- }
- return $string;
- wp_reset_postdata();
- }
- ?>
- <div class="chama-editoria">
- <?php echo clwp_posts_garcia(); ?>
- </div>
- </div>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <script type="text/javascript" src="http://kenwheeler.github.io/slick/slick/slick.min.js"></script>
- <script type="text/javascript" src="http://kenwheeler.github.io/slick/slick/slick.js"></script>
- <script type="text/javascript" src="https://tnsul.com/testes/slick/scripts.js"></script>
- <script type="text/javascript" src="http://kenwheeler.github.io/slick/js/prism.js"></script>
- <div class="clear clearfix"></div>
- </div>
- <!-- fim colunistas classico -->
- <!-- inicio blogs destaque -->
- <!-- inicio tudo em moda -->
- <?php
- $url= "https://tnsul.com/variedades/category/tudo-em-moda";
- // pegar dados
- $dadosSite = file_get_contents($url);
- $moda1 = explode('<div class="tdb_module_cat_grid_1 td-animation-stack tdb-cat-grid-post tdb-cat-grid-post-0">',$dadosSite);
- $tudoemmoda = explode('</div></div>',$moda1[1]);
- $titulomoda1 = explode('<h3 class="entry-title td-module-title">',$tudoemmoda[0]);
- $titulomoda1 = explode('</a>',$titulomoda1[1]);
- $titulo2 = explode('">',$titulomoda1[0]);
- $titulo2 = explode('</',$titulo2[1]);
- $imagemmoda1 = explode('data-img-url="',$tudoemmoda[0]);
- $imagemmoda1 = explode('"',$imagemmoda1[1]);
- ?>
- <div style="display: -ms-flexbox; display: flex;-ms-flex-wrap: wrap;flex-wrap: wrap;margin-right: -15px; margin-left: -15px;">
- <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%;">
- <div style="position: relative; display: block; width:100%; margin-top: 10px;">
- <div style="-ms-flex: 0 0 33.333333%;flex: 0 0 33.333333%; max-width: 33.333333%; float: left!important;padding: 0;margin: 0;">
- <a href="https://tnsul.com/variedades/category/tudo-em-moda/" target="_self">
- <?php echo "<img src='$imagemmoda1[0]' class='img-blogs' style='margin-left:10px; min-width:110px; max-height:82px;'/>"; ?>
- </a>
- </div>
- <div style="-ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%;float: right!important;padding: 0;margin: 0;">
- <a href="https://tnsul.com/variedades/category/tudo-em-moda/" target="_self">
- <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>
- </a>
- <a href="https://tnsul.com/variedades/category/tudo-em-moda/" target="_self">
- <?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>";?>
- </a>
- </div>
- </div>
- </div>
- </div>
- <!-- fim tudo em moda -->
- <!-- inicio destino certo -->
- <?php
- $urldestino= "https://tnsul.com/variedades/category/destino-certo/";
- // pegar dados
- $dadosSitedestino = file_get_contents($urldestino);
- $destino1 = explode('<div class="tdb_module_cat_grid_1 td-animation-stack tdb-cat-grid-post tdb-cat-grid-post-0">',$dadosSitedestino);
- $destinocerto = explode('</div></div>',$destino1[1]);
- $titulodestino1 = explode('<h3 class="entry-title td-module-title">',$destinocerto[0]);
- $titulodestino1 = explode('</a>',$titulodestino1[1]);
- $titulodestino2 = explode('">',$titulodestino1[0]);
- $titulodestino2 = explode('</',$titulodestino2[1]);
- $imagemdestino1 = explode('data-img-url="',$destinocerto[0]);
- $imagemdestino1 = explode('"',$imagemdestino1[1]);
- ?>
- <div style="display: -ms-flexbox; display: flex;-ms-flex-wrap: wrap;flex-wrap: wrap;margin-right: -15px; margin-left: -15px;">
- <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%;">
- <div style="position: relative; display: block; width:100%; margin-top: 10px;">
- <div style="-ms-flex: 0 0 33.333333%;flex: 0 0 33.333333%; max-width: 33.333333%; float: left!important;padding: 0;margin: 0;">
- <a href="https://tnsul.com/variedades/category/destino-certo/" target="_self">
- <?php echo "<img src='$imagemdestino1[0]' class='img-blogs' style='margin-left:10px; min-width:110px; max-height:82px;'/>"; ?>
- </a>
- </div>
- <div style="-ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%;float: right!important;padding: 0;margin: 0;">
- <a href="https://tnsul.com/variedades/category/destino-certo/" target="_self">
- <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>
- </a>
- <a href="https://tnsul.com/variedades/category/destino-certo/" target="_self">
- <?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>";?>
- </a>
- </div>
- </div>
- </div>
- </div>
- <!-- fim destino certo -->
- <!-- anuncio -->
- <?php echo do_shortcode('[metaslider id="150684"]'); ?>
- <!-- fim anuncio -->
- <!-- fim blogs destaque -->
- <!--------aqui-codigo-enquete e cotações---------------->
- <h4 class="block-title" style="margin-bottom: 6px;"><span>INDICADORES ECONÔMICOS</span></h4>
- <?php
- $url= "https://www.4oito.com.br/";
- // pegar dados
- $dadosSite = file_get_contents($url);
- $ibovespa1 = explode('<h5>Ibovespa</h5>',$dadosSite);
- $ibovespa1 = explode('</div>',$ibovespa1[1]);
- $ibovespa2 = explode('<strong class="label">Abertura</strong>',$dadosSite);
- $ibovespa2 = explode('</span>',$ibovespa2[1]);
- $ibovespa3 = explode('<strong class="label">Variação</strong>',$dadosSite);
- $ibovespa3 = explode('</span>',$ibovespa3[1]);
- $dolarc1 = explode('<strong class="label" title="Dólar Comercial">Dólar C.</strong>',$dadosSite);
- $dolarc1 = explode('</span>',$dolarc1[1]);
- $euro1 = explode('<strong class="label" title="Euro">Euro</strong>',$dadosSite);
- $euro1 = explode('</span>',$euro1[1]);
- $libra1 = explode('<strong class="label" title="Libra Esterlina">Libra</strong>',$dadosSite);
- $libra1 = explode('</span>',$libra1[1]);
- $variacao = $ibovespa3[0];
- $valor = '+';
- $ibov = $ibovespa1[0];
- if (strpos($variacao,$valor) !== false) {
- ?>
- <div style="padding: 5px;margin-bottom: 20px;background: #D9D5D5; min-height: 100%; border-radius: 5px;">
- <div style="float:right; width:40%; min-height: 100%; margin-left: 5px;">
- <h1 style="font-size:15px; font-weight: 700; margin-top: -10px;">Ibovespa</h1>
- <h2 style="font-size: 35px; font-weight: 700; color: #004000; margin-bottom: 6px; margin-top:-25px;"><?php echo $ibovespa1[0]; ?></h2>
- <span style="font-size:15px; font-weight: 700;">Abertura</span> <?php echo $ibovespa2[0]; ?>
- <span style="font-size:15px; font-weight: 700;">Variação</span> <?php echo $ibovespa3[0]; ?>
- </div>
- <div style="float: left; width: 55%; min-height: 100%;margin-top: 30px;">
- <table border="0" cellspacing="5px" rules="none" width="100%">
- <tr>
- <td><span style="font-size:15px; font-weight: 700;">Dólar C.</span></td>
- <td> <?php echo $dolarc1[0]; ?></td>
- </tr>
- <tr>
- <td><span style="font-size:15px; font-weight: 700;">Euro</span></td>
- <td> <?php echo $euro1[0]; ?></td>
- </tr>
- <tr>
- <td><span style="font-size:15px; font-weight: 700;">Libra</span></td>
- <td> <?php echo $libra1[0]; ?></td>
- </tr>
- </table>
- </div>
- <div style="clear: both;"></div>
- </div>
- <?php
- }else{
- ?>
- <div style="padding: 15px;margin-bottom: 20px;background: #D9D5D5; min-height: 100%; border-radius: 5px;">
- <div style="float:right; width:40%; min-height: 100%; margin-left: 5px;">
- <h1 style="font-size:15px; font-weight: 700; margin-top: -10px;">Ibovespa</h1>
- <h2 style="font-size: 35px; font-weight: 700; color: red; margin-bottom: 6px; margin-top:-25px;"><?php echo $ibovespa1[0]; ?></h2>
- <span style="font-size:15px; font-weight: 700;">Abertura</span> <?php echo $ibovespa2[0]; ?>
- <span style="font-size:13px; font-weight: 700;">Variação</span> <?php echo $ibovespa3[0]; ?>
- </div>
- <div style="float: left; width: 55%; min-height: 100%;margin-top: 30px;">
- <table border="0" cellspacing="0" rules="none" width="100%">
- <tr>
- <td><span style="font-size:15px; font-weight: 700;">Dólar C.</span></td>
- <td> <?php echo $dolarc1[0]; ?></td>
- </tr>
- <tr>
- <td><span style="font-size:15px; font-weight: 700;">Euro</span></td>
- <td> <?php echo $euro1[0]; ?></td>
- </tr>
- <tr>
- <td><span style="font-size:15px; font-weight: 700;">Libra</span></td>
- <td> <?php echo $libra1[0]; ?></td>
- </tr>
- </table>
- </div>
- <div style="clear: both;"></div>
- </div>
- <?php
- }
- ?>
- <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>
- <!--------aqui- fim codigo-enquete e cotações-------------->
- <?php
- endif;
- if ($i == 8):
- ?>
- <!-- inicio loterias -->
- <script>
- function mostra_oculta_logos(){
- var logos = document.getElementById("logos-loterias");
- var m = document.getElementById("mega");
- var q = document.getElementById("quina");
- var l = document.getElementById("lotofacil");
- var lm = document.getElementById("lotomania");
- var d = document.getElementById("dupla");
- var f = document.getElementById("federal");
- if (logos.style.display === "none") {
- logos.style.display = "block";
- q.style.display = "none";
- l.style.display = "none";
- lm.style.display = "none";
- f.style.display = "none";
- m.style.display = "none";
- d.style.display = "none";
- } else {
- m.style.display = "none";
- q.style.display = "none";
- l.style.display = "none";
- lm.style.display = "none";
- f.style.display = "none";
- d.style.display = "none";
- logos.style.display = "block";
- }
- }
- function mostra_oculta_mega(){
- var logos = document.getElementById("logos-loterias");
- var m = document.getElementById("mega");
- var q = document.getElementById("quina");
- var l = document.getElementById("lotofacil");
- var lm = document.getElementById("lotomania");
- var d = document.getElementById("dupla");
- var f = document.getElementById("federal");
- if (m.style.display === "none") {
- m.style.display = "block";
- q.style.display = "none";
- l.style.display = "none";
- lm.style.display = "none";
- f.style.display = "none";
- d.style.display = "none";
- logos.style.display = "none";
- } else {
- m.style.display = "none";
- q.style.display = "none";
- l.style.display = "none";
- lm.style.display = "none";
- f.style.display = "none";
- d.style.display = "none";
- logos.style.display = "none";
- }
- }
- function mostra_oculta_quina(){
- var logos = document.getElementById("logos-loterias");
- var q = document.getElementById("quina");
- var m = document.getElementById("mega");
- var l = document.getElementById("lotofacil");
- var lm = document.getElementById("lotomania");
- var d = document.getElementById("dupla");
- var f = document.getElementById("federal");
- if (q.style.display === "none") {
- q.style.display = "block";
- m.style.display = "none";
- l.style.display = "none";
- lm.style.display = "none";
- f.style.display = "none";
- d.style.display = "none";
- logos.style.display = "none";
- } else {
- q.style.display = "none";
- m.style.display = "none";
- l.style.display = "none";
- lm.style.display = "none";
- f.style.display = "none";
- d.style.display = "none";
- logos.style.display = "none";
- }
- }
- function mostra_oculta_lotofacil(){
- var logos = document.getElementById("logos-loterias");
- var q = document.getElementById("quina");
- var m = document.getElementById("mega");
- var l = document.getElementById("lotofacil");
- var lm = document.getElementById("lotomania");
- var d = document.getElementById("dupla");
- var f = document.getElementById("federal");
- if (l.style.display === "none") {
- l.style.display = "block";
- m.style.display = "none";
- q.style.display = "none";
- lm.style.display = "none";
- f.style.display = "none";
- d.style.display = "none";
- logos.style.display = "none";
- } else {
- l.style.display = "none";
- m.style.display = "none";
- q.style.display = "none";
- lm.style.display = "none";
- f.style.display = "none";
- d.style.display = "none";
- logos.style.display = "none";
- }
- }
- function mostra_oculta_lotomania(){
- var logos = document.getElementById("logos-loterias");
- var q = document.getElementById("quina");
- var m = document.getElementById("mega");
- var lm = document.getElementById("lotomania");
- var l = document.getElementById("lotofacil");
- var d = document.getElementById("dupla");
- var f = document.getElementById("federal");
- if (lm.style.display === "none") {
- lm.style.display = "block";
- m.style.display = "none";
- q.style.display = "none";
- l.style.display = "none";
- f.style.display = "none";
- d.style.display = "none";
- logos.style.display = "none";
- } else {
- lm.style.display = "none";
- m.style.display = "none";
- q.style.display = "none";
- l.style.display = "none";
- f.style.display = "none";
- d.style.display = "none";
- logos.style.display = "none";
- }
- }
- function mostra_oculta_dupla(){
- var logos = document.getElementById("logos-loterias");
- var q = document.getElementById("quina");
- var m = document.getElementById("mega");
- var lm = document.getElementById("lotomania");
- var l = document.getElementById("lotofacil");
- var d = document.getElementById("dupla");
- var f = document.getElementById("federal");
- if (d.style.display === "none") {
- d.style.display = "block";
- m.style.display = "none";
- q.style.display = "none";
- l.style.display = "none";
- lm.style.display = "none";
- f.style.display = "none";
- logos.style.display = "none";
- } else {
- d.style.display = "none";
- lm.style.display = "none";
- m.style.display = "none";
- q.style.display = "none";
- l.style.display = "none";
- f.style.display = "none";
- logos.style.display = "none";
- }
- }
- function mostra_oculta_federal(){
- var logos = document.getElementById("logos-loterias");
- var q = document.getElementById("quina");
- var m = document.getElementById("mega");
- var lm = document.getElementById("lotomania");
- var l = document.getElementById("lotofacil");
- var d = document.getElementById("dupla");
- var f = document.getElementById("federal");
- if (f.style.display === "none") {
- f.style.display = "block";
- m.style.display = "none";
- q.style.display = "none";
- l.style.display = "none";
- lm.style.display = "none";
- d.style.display = "none";
- logos.style.display = "none";
- } else {
- lm.style.display = "none";
- m.style.display = "none";
- q.style.display = "none";
- l.style.display = "none";
- f.style.display = "none";
- d.style.display = "none";
- logos.style.display = "none";
- }
- }
- </script>
- <style type="text/css">
- .loterias-quadro{
- background: #D9D5D5;
- min-height: 100%;
- margin: 0 auto; display: block;
- border-radius: 5px;
- }
- .lt-number {
- width: 38px;
- height: 38px;
- border: 1px solid;
- border-radius: 50%;
- text-align: center;
- font-size: 20px;
- font-weight: 400;
- margin: auto;
- line-height: 42px;
- float: left;
- }
- .mega-sena-colors.color {
- color: #209869;
- }
- .quina-colors.color {
- color: #260085;
- }
- .loto-facil-colors.color {
- color: #930089;
- }
- .loto-mania-colors.color {
- color: #f8972d;
- }
- .dupla-sena-colors.color {
- color: #a61324;
- }
- .lottery-title{
- color: #fff;
- font-size: 18px;
- line-height: 20px;
- font-weight: 400;
- text-transform: uppercase;
- letter-spacing: -.5px;
- display: block;
- }
- .lottery-title2{
- color: #444;
- font-size: 16px;
- line-height: 5px;
- font-weight: 400;
- text-transform: uppercase;
- letter-spacing: -.5px;
- margin-top:10px;
- display: block;
- float: left;
- }
- .lottery-info{
- text-align: center;
- color: #fff;
- font-size: 11px;
- line-height: 11px;
- font-weight: 400;
- margin-top:-15px;
- text-transform: uppercase;
- }
- .winners{
- font-size: 16px;
- text-align: center;
- color: #444;
- font-weight: 400;
- text-transform: uppercase;
- padding-bottom: 30px;
- margin-top:10px;
- }
- .alignCenterTexto {
- font-size: 14px;
- line-height: 14px;
- text-align: center;
- margin-bottom: 5px;
- color: #000;
- }
- .alignCenterValor {
- font-size: 18px;
- line-height: 18px;
- text-align: center;
- color: #000;
- }
- .overflow {
- display: block;
- margin: 0 auto;
- max-width: 370px;
- }
- .data-table {
- table-layout: fixed;
- margin-bottom: 30px;
- margin-top: 0;
- }
- .data-table .headAlign {
- text-align: center;
- vertical-align: middle;
- }
- .lottery-results-table .data-table .headAlign td, .lottery-results-table .data-table .headAlign tr {
- text-align: center;
- }
- .lottery-results-table .data-table td:nth-child(1) {
- text-align: left;
- color: #1a1a1a;
- }
- .data-table .headAlign td, .lottery-results-table .data-table .headAlign tr {
- text-align: center;
- }
- .data-table td:last-child {
- text-align: right;
- }
- tbody {
- display: table-row-group;
- vertical-align: middle;
- border-color: inherit;
- }
- </style>
- <?php
- $url= "https://noticias.uol.com.br/loterias/";
- // pegar dados
- $dadosSite = file_get_contents($url);
- /* Mega sena */
- $megasena1 = explode('<h2 class="lottery-title">mega sena</h2></div><div class="lottery-info"><span>',$dadosSite);
- $megasena1 = explode('</span>',$megasena1[1]);
- $numerosmega = explode('<div class="lottery-single"><div class="row"> <div class="lt-result no-margin">',$dadosSite);
- $numerosmega = explode('<div class="winners">',$numerosmega[1]);
- $resultadomega = explode('<div class="lottery-single"><div class="row"> <div class="lt-result no-margin">',$dadosSite);
- $resultadomega = explode('</div></a></a>',$resultadomega[1]);
- $resultadomega2 = explode('<div class="winners">',$resultadomega[0]);
- $resultadomega2 = explode('</div>',$resultadomega2[1]);
- /* fim mega sena */
- /* Quina */
- $quina1 = explode('<h2 class="lottery-title">quina</h2></div><div class="lottery-info"><span>',$dadosSite);
- $quina1 = explode('</span>',$quina1[1]);
- $numerosquina = explode('<h2 class="lottery-title">quina</h2>',$dadosSite);
- $numerosquina = explode('<div class="winners">',$numerosquina[1]);
- $numerosquina2 = explode('<div class="lt-result">',$numerosquina[0]);
- $numerosquina2 = explode(' <div class="winners">',$numerosquina2[1]);
- $resultadoquina = explode('<div class="lottery-single"><div class="row"> <div class="lt-result"> <div class="lt-number quina-colors border color">',$dadosSite);
- $resultadoquina = explode('</a>',$resultadoquina[1]);
- $resultadoquina2 = explode('<div class="winners">',$resultadoquina[0]);
- $resultadoquina2 = explode('</div>',$resultadoquina2[1]);
- /* fim Quina */
- /* Lotofacil */
- $lotofacil1 = explode('<h2 class="lottery-title">lotofácil</h2></div><div class="lottery-info"><span>',$dadosSite);
- $lotofacil1 = explode('</span>',$lotofacil1[1]);
- $numeroslotofacil = explode('<h2 class="lottery-title">lotofácil</h2>',$dadosSite);
- $numeroslotofacil = explode('<div class="winners">',$numeroslotofacil[1]);
- $numeroslotofacil2 = explode('<div class="lt-result">',$numeroslotofacil[0]);
- $numeroslotofacil2 = explode(' <div class="winners">',$numeroslotofacil2[1]);
- $resultadolotofacil = explode('<div class="lottery-single"><div class="row"> <div class="lt-result"> <div class="lt-number loto-facil-colors border color">',$dadosSite);
- $resultadolotofacil = explode('</a>',$resultadolotofacil[1]);
- $resultadolotofacil2 = explode('<div class="winners">',$resultadolotofacil[0]);
- $resultadolotofacil2 = explode('</div>',$resultadolotofacil2[1]);
- /* fim lotofacil */
- /* Lotomania */
- $lotomania1 = explode('<h2 class="lottery-title">lotomania</h2></div><div class="lottery-info"><span>',$dadosSite);
- $lotomania1 = explode('</span>',$lotomania1[1]);
- $numeroslotomania = explode('<h2 class="lottery-title">lotomania</h2></div>',$dadosSite);
- $numeroslotomania = explode('<div class="winners">',$numeroslotomania[1]);
- $numeroslotomania2 = explode('<div class="lt-result">',$numeroslotomania[0]);
- $numeroslotomania2 = explode('</div></div>',$numeroslotomania2[1]);
- $resultadolotomania = explode('<div class="lottery-single"><div class="row"> <div class="lt-result"> <div class="lt-number loto-mania-colors border color">',$dadosSite);
- $resultadolotomania = explode('</a>',$resultadolotomania[1]);
- $resultadolotomania2 = explode('<div class="winners">',$resultadolotomania[0]);
- $resultadolotomania2 = explode('</div>',$resultadolotomania2[1]);
- /* fim lotomania */
- /* Dupla sena */
- $duplasena1 = explode('<h2 class="lottery-title">dupla sena</h2></div><div class="lottery-info"><span>',$dadosSite);
- $duplasena1 = explode('</span>',$duplasena1[1]);
- $numerosdupla = explode('<div class="lt-title">1º SORTEIO</div> <div class="lt-result no-margin">',$dadosSite);
- $numerosdupla = explode('</div> <div class="lt-title">',$numerosdupla[1]);
- $numerosdupla2 = explode('<div class="lt-title">2º SORTEIO</div> <div class="lt-result no-margin">',$dadosSite);
- $numerosdupla2 = explode('<div class="winners">',$numerosdupla2[1]);
- $resultadodupla = explode('<div class="lt-title">2º SORTEIO</div>',$dadosSite);
- $resultadodupla = explode('</div></a></a>',$resultadodupla[1]);
- $resultadodupla2 = explode('<div class="winners">',$resultadodupla[0]);
- $resultadodupla2 = explode('</div>',$resultadodupla2[1]);
- /* fim dupla sena */
- /* Federal */
- $federal1 = explode('<h2 class="lottery-title">federal</h2></div><div class="lottery-info"><span>',$dadosSite);
- $federal1 = explode('</span>',$federal1[1]);
- $tabelafederal1 = explode('<div class="overflow">',$dadosSite);
- $tabelafederal1 = explode('</table></div> </div> </div></div></a>',$tabelafederal1[1]);
- /* fim federal */
- ?>
- <div style="background: #FFF; padding: 15px;border: 1px solid #ccc;">
- <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>
- <div id='logos-loterias' style='display:block;'>
- <table style="border-collapse: collapse; border: none;">
- <tr style="border: none;">
- <td style="border: none;">
- <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>
- </td>
- <td style="border: none;">
- <span style="cursor: pointer;" onclick='mostra_oculta_mega()'><p class="lottery-title2">Mega Sena</p></span>
- </td>
- </tr>
- <tr style="border: none;">
- <td style="border: none;">
- <div style="float:right";><img src="https://p2.trrsf.com/image/fget/cf/24/24/images.terra.com/2015/07/24/quinanovo.png"/></div>
- </td>
- <td style="border: none;">
- <span style="cursor: pointer;" onclick='mostra_oculta_quina()'><p class="lottery-title2">Quina</p></span>
- </td>
- </tr>
- <tr style="border: none;">
- <td style="border: none;">
- <div style="float:right";><img src="https://p2.trrsf.com/image/fget/cf/24/24/images.terra.com/2015/07/24/lotofacil.png"/></div>
- </td>
- <td style="border: none;">
- <span style="cursor: pointer;" onclick='mostra_oculta_lotofacil()'><p class="lottery-title2">Lotofácil</p></span>
- </td>
- </tr>
- <tr style="border: none;">
- <td style="border: none;">
- <div style="float:right";><img src="https://p2.trrsf.com/image/fget/cf/24/24/images.terra.com/2015/07/24/lotomania.png"/></div>
- </td>
- <td style="border: none;">
- <span style="cursor: pointer;" onclick='mostra_oculta_lotomania()'><p class="lottery-title2">Lotomania</p></span>
- </td>
- </tr>
- <tr style="border: none;">
- <td style="border: none;">
- <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>
- </td>
- <td style="border: none;">
- <span style="cursor: pointer;" onclick='mostra_oculta_dupla()'><p class="lottery-title2">Dupla Sena</p></span>
- </td>
- </tr>
- <tr style="border: none;">
- <td style="border: none;">
- <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>
- </td>
- <td style="border: none;">
- <span style="cursor: pointer;" onclick='mostra_oculta_federal()'><p class="lottery-title2"> Loteria Federal</p></span>
- </td>
- </tr>
- </table>
- </div>
- <div id='mega' style='display:none;' class="loterias-quadro">
- <div style="background-color: #209869;border-radius: 5px; ">
- <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
- <h2 class="lottery-title">Mega Sena</h2>
- </div>
- <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
- <h2 class="lottery-info"><?php echo $megasena1[0]; ?></h2>
- </div>
- </div>
- <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
- <?php echo $numerosmega[0]; ?>
- <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
- <div class="winners"><?php echo $resultadomega2[0]; ?>
- </div>
- </div>
- <center><p style="cursor: pointer;" onclick='mostra_oculta_logos()'>Voltar</p></center>
- <div style="clear: both;"></div>
- </div>
- <div id='quina' style='display:none;' class="loterias-quadro">
- <div style="background-color: #260085;border-radius: 5px; ">
- <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
- <h2 class="lottery-title">Quina</h2>
- </div>
- <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
- <h2 class="lottery-info"><?php echo $quina1[0]; ?></h2>
- </div>
- </div>
- <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%; padding-top: 10px;">
- <?php echo $numerosquina2[0]; ?>
- <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
- <div class="winners"><?php echo $resultadoquina2[0]; ?>
- </div>
- </div>
- <center><p style="cursor: pointer;" onclick='mostra_oculta_logos()'>Voltar</p></center>
- <div style="clear: both;"></div>
- </div>
- <div id='lotofacil' style='display:none;' class="loterias-quadro">
- <div style="background-color: #930089;border-radius: 5px; ">
- <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
- <h2 class="lottery-title">LotoFácil</h2>
- </div>
- <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
- <h2 class="lottery-info"><?php echo $lotofacil1[0]; ?></h2>
- </div>
- </div>
- <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%; padding-top: 10px;">
- <?php echo $numeroslotofacil2[0]; ?>
- <div class="winners"><?php echo $resultadolotofacil2[0]; ?> <br></div>
- <center><p style="cursor: pointer;" onclick='mostra_oculta_logos()'>Voltar</p></center>
- <div style="clear: both;"></div>
- </div>
- <div id='lotomania' style='display:none;' class="loterias-quadro">
- <div style="background-color: #f8972d;border-radius: 5px; ">
- <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
- <h2 class="lottery-title">Lotomania</h2>
- </div>
- <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
- <h2 class="lottery-info"><?php echo $lotomania1[0]; ?></h2>
- </div>
- </div>
- <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%; padding-top: 10px;">
- <?php echo $numeroslotomania2[0]; ?>
- <div class="winners"><?php echo $resultadolotomania2[0]; ?> <br></div>
- <center><p style="cursor: pointer;" onclick='mostra_oculta_logos()'>Voltar</p></center>
- <div style="clear: both;"></div>
- </div>
- <div id='dupla' style='display:none;' class="loterias-quadro">
- <div style="background-color: #a61324;border-radius: 5px; ">
- <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
- <h2 class="lottery-title">Dupla Sena</h2>
- </div>
- <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
- <h2 class="lottery-info"><?php echo $duplasena1[0]; ?></h2>
- </div>
- </div>
- <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
- <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;" class="lt-title">1º SORTEIO</div>
- <?php echo $numerosdupla[0]; ?>
- <br>
- <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;" class="lt-title">2º SORTEIO</div>
- <?php echo $numerosdupla2[0]; ?>
- <div class="winners"><?php echo $resultadodupla2[0]; ?> <br></div>
- <center><p style="cursor: pointer;" onclick='mostra_oculta_logos()'>Voltar</p></center>
- <div style="clear: both;"></div>
- </div>
- <div id='federal' style='display:none;' class="loterias-quadro">
- <div style="background-color: #103099; border-radius: 5px; ">
- <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
- <h2 class="lottery-title">Federal</h2>
- </div>
- <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%;">
- <h2 class="lottery-info"><?php echo $federal1[0]; ?></h2>
- </div>
- </div>
- <div style="margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; width: 100%; padding-top: 10px;">
- <?php echo $tabelafederal1[0]; ?> </table>
- </div>
- <center><p style="cursor: pointer;" onclick='mostra_oculta_logos()'>Voltar</p></center>
- <div style="clear: both;"></div>
- </div>
- </div>
- <div style="display: flex; flex-direction: row; justify-content: center; align-items: center;">
- <?php echo do_shortcode('[metaslider id="148351"]'); ?>
- </div>
- <!-- fim loterias -->
- <!-- PREVISÃO DO TEMPO -->
- <div style="background: #FFF;padding: 15px;margin-bottom: 5px;margin-top:10px; border-radius: 5px;">
- <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>
- </div>
- <!-- FIM PREVISÃO DO TEMPO -->
- <!-- inserir bloco blogs aqui -->
- <!-- início blog agro -->
- <?php
- $urlagro= "https://tnsul.com/variedades/category/agro-tudo/";
- // pegar dados
- $dadosSiteagro = file_get_contents($urlagro);
- $agro1 = explode('<div class="tdb_module_cat_grid_1 td-animation-stack tdb-cat-grid-post tdb-cat-grid-post-0">',$dadosSiteagro);
- $agrocerto = explode('</div></div>',$agro1[1]);
- $tituloagro1 = explode('<h3 class="entry-title td-module-title">',$agrocerto[0]);
- $tituloagro1 = explode('</a>',$tituloagro1[1]);
- $tituloagro2 = explode('">',$tituloagro1[0]);
- $tituloagro2 = explode('</',$tituloagro2[1]);
- $imagemagro1 = explode('data-img-url="',$agrocerto[0]);
- $imagemagro1 = explode('"',$imagemagro1[1]);
- ?>
- <div style="display: -ms-flexbox; display: flex;-ms-flex-wrap: wrap;flex-wrap: wrap;margin-right: -15px; margin-left: -15px; margin-top:10px;">
- <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%;">
- <div style="position: relative; display: block; width:100%; margin-top: 10px;">
- <div style="-ms-flex: 0 0 33.333333%;flex: 0 0 33.333333%; max-width: 33.333333%; float: left!important;padding: 0;margin: 0;">
- <a href="https://tnsul.com/variedades/category/agro-e-tudo/" target="_self">
- <?php echo "<img src='$imagemagro1[0]' class='img-blogs'style='margin-left:10px; max-height:82px;'/>"; ?>
- </a>
- </div>
- <div style="-ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%;float: right!important;padding: 0;margin: 0;">
- <a href="https://tnsul.com/variedades/category/agro-tudo/" target="_self">
- <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>
- </a>
- <a href="https://tnsul.com/variedades/category/agro-tudo/" target="_self">
- <?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>";?>
- </a>
- </div>
- </div>
- </div>
- </div>
- <!-- fim blog agro -->
- <!-- inicio sobre rodas -->
- <?php
- $urlrodas= "https://tnsul.com/variedades/category/sobre-rodas/";
- // pegar dados
- $dadosSiterodas = file_get_contents($urlrodas);
- $rodas1 = explode('class="td_block_inner td-mc1-wrap">
- <div class="td_module_flex td_module_flex_1 td_module_wrap td-animation-stack">',$dadosSiterodas);
- $rodascerto = explode('</div></div>',$rodas1[1]);
- $titulorodas1 = explode('<h3 class="entry-title td-module-title">',$rodascerto[0]);
- $titulorodas1 = explode('</a>',$titulorodas1[1]);
- $titulorodas2 = explode('">',$titulorodas1[0]);
- $titulorodas2 = explode('</',$titulorodas2[1]);
- $imagemrodas1 = explode('data-img-url="',$rodascerto[0]);
- $imagemrodas1 = explode('"',$imagemrodas1[1]);
- ?>
- <div style="display: -ms-flexbox; display: flex;-ms-flex-wrap: wrap;flex-wrap: wrap;margin-right: -15px; margin-left: -15px;">
- <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%;">
- <div style="position: relative; display: block; width:100%; margin-top: 10px;">
- <div style="-ms-flex: 0 0 33.333333%;flex: 0 0 33.333333%; max-width: 33.333333%; float: left!important;padding: 0;margin: 0;">
- <a href="https://tnsul.com/variedades/category/sobre-rodas/" target="_self">
- <?php echo "<img src='$imagemrodas1[0]' class='img-blogs' style='margin-left:10px; max-height:82px;'/>"; ?>
- </a>
- </div>
- <div style="-ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%;float: right!important;padding: 0;margin: 0;">
- <a href="https://tnsul.com/variedades/category/sobre-rodas/" target="_self">
- <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>
- </a>
- <a href="https://tnsul.com/variedades/category/sobre-rodas/" target="_self">
- <?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>";?>
- </a>
- </div>
- </div>
- </div>
- </div>
- <!-- fim sobre rodas -->
- <!-- fim bloco blogs -->
- <!-- inicio horoscopo -->
- <script async src="//widget.horoscopovirtual.com.br/js/horoscopo.js?background=ffffff&color=29234b&border=ffffff&text=29234b&font=roboto"></script>
- <!-- fim horoscopo -->
- <!-- bloco blogs3 -->
- <!-- inicio grande chefe -->
- <?php
- $urlchefe= "https://tnsul.com/variedades/category/o-grande-chef/";
- // pegar dados
- $dadosSitechefe = file_get_contents($urlchefe);
- $chefe1 = explode('<div class="tdb_module_cat_grid_1 td-animation-stack tdb-cat-grid-post tdb-cat-grid-post-0">',$dadosSitechefe);
- $chefecerto = explode('</div></div>',$chefe1[1]);
- $titulochefe1 = explode('<h3 class="entry-title td-module-title">',$chefecerto[0]);
- $titulochefe1 = explode('</a>',$titulochefe1[1]);
- $titulochefe2 = explode('">',$titulochefe1[0]);
- $titulochefe2 = explode('</',$titulochefe2[1]);
- $imagemchefe1 = explode('data-img-url="',$chefecerto[0]);
- $imagemchefe1 = explode('"',$imagemchefe1[1]);
- ?>
- <div style="display: -ms-flexbox; display: flex;-ms-flex-wrap: wrap;flex-wrap: wrap;margin-right: -15px; margin-left: -15px;">
- <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%;">
- <div style="position: relative; display: block; width:100%; margin-top: 10px;">
- <div style="-ms-flex: 0 0 33.333333%;flex: 0 0 33.333333%; max-width: 33.333333%; float: left!important;padding: 0;margin: 0;">
- <a href="https://tnsul.com/variedades/category/o-grande-chef/" target="_self">
- <?php echo "<img src='$imagemchefe1[0]' class='img-blogs' style='margin-left:10px; width:100%; max-height:82px;'/>"; ?>
- </a>
- </div>
- <div style="-ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%;float: right!important;padding: 0;margin: 0;">
- <a href="https://tnsul.com/variedades/category/o-grande-chef/" target="_self">
- <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>
- </a>
- <a href="https://tnsul.com/variedades/category/o-grande-chef/" target="_self">
- <?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>";?>
- </a>
- </div>
- </div>
- </div>
- </div>
- <!-- fim grande chefe -->
- <!-- inicio fuxicos -->
- <?php
- $urlfuxicos= "https://tnsul.com/variedades/category/fuxicos-e-famosos/";
- // pegar dados
- $dadosSitefuxicos = file_get_contents($urlfuxicos);
- $fuxicos1 = explode('<div class="tdb_module_cat_grid_1 td-animation-stack tdb-cat-grid-post tdb-cat-grid-post-0">',$dadosSitefuxicos);
- $fuxicoscerto = explode('</div></div>',$fuxicos1[1]);
- $titulofuxicos1 = explode('<h3 class="entry-title td-module-title">',$fuxicoscerto[0]);
- $titulofuxicos1 = explode('</a>',$titulofuxicos1[1]);
- $titulofuxicos2 = explode('">',$titulofuxicos1[0]);
- $titulofuxicos2 = explode('</',$titulofuxicos2[1]);
- $imagemfuxicos1 = explode('data-img-url="',$fuxicoscerto[0]);
- $imagemfuxicos1 = explode('"',$imagemfuxicos1[1]);
- ?>
- <div style="display: -ms-flexbox; display: flex;-ms-flex-wrap: wrap;flex-wrap: wrap;margin-right: -15px; margin-left: -15px;">
- <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%;">
- <div style="position: relative; display: block; width:100%; margin-top: 10px;">
- <div style="-ms-flex: 0 0 33.333333%;flex: 0 0 33.333333%; max-width: 33.333333%; float: left!important;padding: 0;margin: 0;">
- <a href="https://tnsul.com/variedades/category/fuxicos-e-famosos/" target="_self">
- <?php echo "<img src='$imagemfuxicos1[0]' class='img-blogs' style='margin-left:10px; width:100%; max-height:82px;'/>"; ?>
- </a>
- </div>
- <div style="-ms-flex: 0 0 66.666667%; flex: 0 0 66.666667%; max-width: 66.666667%;float: right!important;padding: 0;margin: 0;">
- <a href="https://tnsul.com/variedades/category/fuxicos-e-famosos/" target="_self">
- <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>
- </a>
- <a href="https://tnsul.com/variedades/category/fuxicos-e-famosos/" target="_self">
- <?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>";?>
- </a>
- </div>
- </div>
- </div>
- </div>
- <!-- fim fuxicos -->
- <!-- fim bloco blogs3 -->
- <?php
- endif;
- if ($i <= 10):
- echo "<article autoload-id='{$i}' style='display:block;'>";
- else:
- echo "<article autoload-id='{$i}' style='display:none;'>";
- endif;
- if ($i == 3):
- ?>
- <!-- Aquicódigo-tabela-campeonatos
- <script>
- $('body').ready(function () {
- $('#iframe1-seriea').css('display', 'block');
- $('#iframe2-serieb').css('display', 'none');
- $('#link-seriea').click(function () {
- $('#iframe1-seriea').css('display', 'block');
- $('#iframe2-serieb').css('display', 'none');
- });
- $('#link-serieb').click(function () {
- $('#iframe1-seriea').css('display', 'none');
- $('#iframe2-serieb').css('display', 'block');
- });
- });
- </script>
- <div style="background: #FFF;padding: 15px;margin-bottom: 20px;border-radius: 5px;">
- <h4 class="block-title" style="margin-bottom: 6px;"><span>CLASSIFICAÇÃO BRASILEIRÃO</span></h4>
- <a style="float:left;width: 45%;text-align:center;" id="link-seriea">Série A</a>
- <a style="float:right;width: 45%;text-align:center;" id="link-serieb">Série B</a>
- <div class="content-iframe" style="margin-top: 5px;">
- <div id="iframe1-seriea"><iframe src="https://tnsul.com/wp-content/dnsul/tabelas/seriea-g4.php" width="100%" frameborder="0" scrolling="no"></iframe></div>
- <div id="iframe2-serieb"><iframe src="https://tnsul.com/wp-content/dnsul/tabelas/serieb-g4.php" width="100%" frameborder="0" scrolling="no"></iframe></div>
- </div>
- <a href="https://tnsul.com/brasileirao">Ver tabela completa</a>
- <div style="clear:both;"></div>
- </div>
- -->
- <!-----Aquicódigo-tabela-campeonatos---------------------->
- <?php
- endif;
- ?>
- <div style="background: #FFF;padding: 15px;margin-bottom: 20px;border-radius: 5px;">
- <!-- início de cada bloco de notícias -->
- <?php echo $mod->get_category(); ?>
- <?php echo $mod->get_date(); ?>
- <div class="item-details" style="padding-top: 10px;">
- <div class="td-module-meta-info">
- <?php echo $mod->get_title(); ?>
- </div>
- </div>
- <div class="td-module-thumb">
- <?php echo $mod->get_excerpt(); ?>
- <br /><br />
- <?php echo $mod->get_image('td_265x198'); ?>
- <br />
- <br />
- <?php echo $mod->get_social_sharing_top(); ?>
- <br />
- </div>
- </div>
- <!-- fim do início de cada bloco de notícias -->
- <?php
- $args = [
- 'order' => 'ASC',
- 'post_type' => 'dnsul-ads',
- ];
- $post1 = get_posts($args);
- foreach ($post1 as $single):
- $meta = get_post_meta($single->ID);
- if ($meta['ordem'][0] == $i):
- if ($meta['tipo'][0] == 'imagem'):
- echo '<a href="' . $meta['url'][0] . '" target="_blank"><img src="' . $meta['conteudo'][0] . '" style="margin-bottom: 15px;"/></a>';
- elseif ($meta['tipo'][0] == 'youtube'):
- echo '<center>' . $meta['conteudo'][0] . '</center>';
- endif;
- endif;
- endforeach;
- ?>
- </article>
- <?php
- $i++;
- endforeach;
- }
- wp_reset_postdata();
Advertisement
Add Comment
Please, Sign In to add comment