Jump to content
shacapell

XML de slide

Recommended Posts

Olá pessoal!

Entendo um pouco de html e tenho um blog em xml, então preciso da ajuda de vocês.

Eu queria tirar essa função de slide de posts e colocar uma imagem de fundo do mesmo tamanho e um texto com link por cima. Vejam > www.babadeanimais.net

 

Outra coisinha, nos posts e páginas está configurado para a primeira imagem ficar no topo ocupando todo o espaço. Queria tirar isso, mas nem sei onde está no código.

 

#main-slider .slick-prev,.main-gallery .slick-prev,#main-slider .slick-next,.main-gallery .slick-next,.related-stuff .slick-prev,.related-stuff .slick-next{font-size:25px;color:#000;display:block;text-align:center;background:#fff;outline:0;padding:0;width:35px;height:50px;position:absolute;top:50%;margin-top:-15px;cursor:pointer;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;transition:all .3s ease}
button.slick-nav.slick-prev i{color:#252525}
button.slick-nav.slick-next i{color:#252525}
span.feat-cat a{color:#FFF;padding:5px 15px;background-color:$(theme.sec.color);border-radius:40px}
h2.feat-title a{color:#252525}
.feat-readmore a{color:#FFF;padding:6px 10px;background-color:$(theme.color);box-shadow:3px 3px 0 0 $(theme.sec.color)}
.feat-readmore a:hover{box-shadow:none}
.related-stuff .slick-prev,.related-stuff .slick-next{top:30%}
#main-slider .slick-prev{left:200px}
.main-gallery .slick-prev,.related-stuff .slick-prev{left:-40px}
.main-gallery .slick-next,.related-stuff .slick-next{right:-40px}
.main-gallery:hover .slick-prev,.related-stuff:hover .slick-prev{left:0}
.main-gallery:hover .slick-next,.related-stuff:hover .slick-next{right:0}
.slick-prev:before,.slick-next:before{content:''}
#main-slider .slick-next{right:200px}
.item{position:relative}
#section-featured{position:relative;min-height:50px;width:100%}
#main-slider div img{max-width:100%;height:490px;object-fit:cover;width:100%}
#main-slider div span.title{font-size:19px;color:#fff;position:absolute;bottom:0;left:0;width:100%;padding:25px;-webkit-transition:all .3s;-moz-transition:all .3s;-o-transition:all .3s;transition:all .3s}
div#main-slider{width:100%;overflow:hidden}
div#bt-slider-main .title{display:none}
.feat-wrapper{position:absolute;left:10px;bottom:120px;right:10px;padding:20px;width:60%;margin:0 auto}
.feat-wrapper-inner{position:relative;height:100%;z-index:99;width:100%;display:table;padding:40px;vertical-align:middle;text-align:center;border-top:0;background:#fff;color:#fff;-webkit-box-shadow:9px 9px 0 0 #F1F1F1;-moz-box-shadow:9px 9px 0 0 #F1F1F1;box-shadow:9px 9px 0 0 #F1F1F1}
.feat--inner{vertical-align:middle;display:table-cell}
.feat-header{margin-bottom:0;padding:0 20px}
.feat-cat:before{content:'';display:inline-block;height:2px;width:40px;background:#A2A2A2;margin-bottom:5px;margin-right:0}
.feat-cat:after{content:'';display:inline-block;height:2px;width:40px;background:#A2A2A2;margin-bottom:5px;margin-left:0}
span.feat-cat{font-size:12px;letter-spacing:1px;padding-bottom:2px;display:inline-block;margin:0 0 10px 5px;font-weight:400;text-transform:uppercase}
.slick-slide{opacity:1;transition:.2s}
.item.slick-slide.slick-active.slick-center{opacity:1;transition:.2s}
.slick-slider{position:relative;display:block;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none;-khtml-user-select:none;-ms-touch-action:pan-y;touch-action:pan-y;-webkit-tap-highlight-color:transparent}
.slick-list{position:relative;display:block;overflow:hidden;margin:0;padding:0}
.slick-list:focus{outline:none}
.slick-list.dragging{cursor:pointer;cursor:hand}
.slick-slider .slick-track,.slick-slider .slick-list{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}
.slick-track{position:relative;top:0;left:0;display:block}
.slick-track:before,.slick-track:after{display:table;content:''}
.slick-track:after{clear:both}
.slick-loading .slick-track{visibility:hidden}
.slick-slide{display:none;float:left;height:100%;min-height:1px}
[dir='rtl'] .slick-slide{float:right}
.slick-slide img{display:block}
.slick-slide.slick-loading img{display:none}
.slick-slide.dragging img{pointer-events:none}
.slick-initialized .slick-slide{display:block}
.slick-loading .slick-slide{visibility:hidden}
.slick-vertical .slick-slide{display:block;height:auto;border:1px solid transparent}
.slick-prev,.slick-next{font-size:0;line-height:0;position:absolute;top:50%;display:block;width:20px;height:20px;margin-top:-10px;padding:0;cursor:pointer;color:transparent;border:none;outline:none;background:transparent}
.slick-prev:hover,.slick-prev:focus,.slick-next:hover,.slick-next:focus{color:transparent;outline:none;background:transparent}
.slick-prev:hover:before,.slick-prev:focus:before,.slick-next:hover:before,.slick-next:focus:before{opacity:1}
.slick-prev.slick-disabled:before,.slick-next.slick-disabled:before{opacity:.25}
.slick-prev:before,.slick-next:before{font-family:'slick';font-size:20px;line-height:1;opacity:.75;color:#252525;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.slick-prev{left:-25px}
[dir='rtl'] .slick-prev{right:-25px;left:auto}
.slick-next{right:-25px}
[dir='rtl'] .slick-next{right:auto;left:-25px}
.slick-slider{margin-bottom:30px}
.slick-dots{text-align:center}
.slick-dots li{position:relative;display:inline-block;width:20px;height:20px;margin:0 8px;padding:0;cursor:pointer}
.slick-dots li button{font-size:0;line-height:0;display:block;width:20px;height:20px;padding:5px;cursor:pointer;color:transparent;border:0;outline:none;background:transparent}
.slick-dots li button:hover,.slick-dots li button:focus{outline:none}
.slick-dots li button:hover:before,.slick-dots li button:focus:before{opacity:1;background-color:$(theme.color)}
.slick-dots li button:before{position:absolute;top:0;display:block;left:0;content:'';text-align:center;opacity:.35;height:5px;width:22px;background-color:#656464;margin-top:5px;transition:.2s;border-radius:50px}
.slick-dots li.slick-active button:before{opacity:.75;background-color:$(theme.color)}
@media only screen and (max-width:767px) and (min-width:480px) {
#main-slider .slick-prev,.main-gallery .slick-prev,.related-stuff .slick-prev{left:0}
#main-slider .slick-next,.main-gallery .slick-next,.related-stuff .slick-next{right:0}
#main-slider div img{height:350px}
.feat-wrapper{bottom:15px;padding:10px;width:430px}
h2.feat-title{line-height:32px;font-size:23px}
.thumbnail{margin:0 auto}
.item.slick-slide:before{opacity:1;background:0 0}
}
@media only screen and (max-width:479px) {
.fixedheader .grid,span.feat-cat{display:none}
.header img,.thumbnail{margin:0 auto}
#main-slider .slick-next{right:0}
#main-slider .slick-prev{left:0}
#main-slider div img{height:275px}
.gal4 img{height:250px}
.feat-readmore{width:135px}
img.thumb-single{max-height:300px}
h2.feat-title{line-height:32px;font-size:23px}
.feat-wrapper{bottom:15px;padding:5px;width:94%}
}
.large-12.column{text-align:center}
@-webkit-keyframes justified-gallery-show-caption-animation {
from{opacity:0}
to{opacity:.7}
}
@-moz-keyframes justified-gallery-show-caption-animation {
from{opacity:0}
to{opacity:.7}
}
@-o-keyframes justified-gallery-show-caption-animation {
from{opacity:0}
to{opacity:.7}
}
@keyframes justified-gallery-show-caption-animation {
from{opacity:0}
to{opacity:.7}
}
@-webkit-keyframes justified-gallery-show-entry-animation {
from{opacity:0}
to{opacity:1}
}
@-moz-keyframes justified-gallery-show-entry-animation {
from{opacity:0}
to{opacity:1}
}
@-o-keyframes justified-gallery-show-entry-animation {
from{opacity:0}
to{opacity:1}
}
@keyframes justified-gallery-show-entry-animation {
from{opacity:0}
to{opacity:1}
}
.justified-gallery{width:100%;position:relative;overflow:hidden;margin-bottom:30px}
.justified-gallery>a,.justified-gallery>div{position:absolute;display:inline-block;overflow:hidden;opacity:0;filter:alpha(opacity=0)}
.justified-gallery>a>a>img,.justified-gallery>a>img,.justified-gallery>div>a>img,.justified-gallery>div>img{position:absolute;top:50%;left:50%;margin:0;padding:0;border:0}
.justified-gallery>a>.caption,.justified-gallery>div>.caption{display:none;position:absolute;bottom:0;padding:5px;background-color:#000;left:0;right:0;margin:0;color:#fff;font-size:12px;font-weight:300;font-family:sans-serif}
.justified-gallery>a>.caption.caption-visible,.justified-gallery>div>.caption.caption-visible{display:initial;opacity:.7;filter:"-webkit-animation:justified-gallery-show-caption-animation 500ms 0 ease;-moz-animation:justified-gallery-show-caption-animation 500ms 0 ease;-ms-animation:justified-gallery-show-caption-animation 500ms 0 ease}
.justified-gallery>.entry-visible{opacity:1;filter:alpha(opacity=100);-webkit-animation:justified-gallery-show-entry-animation 500ms 0 ease;-moz-animation:justified-gallery-show-entry-animation 500ms 0 ease;-ms-animation:justified-gallery-show-entry-animation 500ms 0 ease}
.justified-gallery>.spinner{position:absolute;bottom:0;margin-left:-24px;padding:10px 0;left:50%;opacity:initial;filter:initial;overflow:initial}
.justified-gallery>.spinner>span{display:inline-block;opacity:0;filter:alpha(opacity=0);width:8px;height:8px;margin:0 4px;background-color:#000;border-radius:6px}
]]></b:skin>

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By Fernando Rafael
      Olá a todos, atualmente estou quebrando a cabeça com 3 campos da geração do XML de NFCE/NFE, são eles:   <SignatureValue> ,  <DigestValue>   e  <X509Certificate>, como  faço para gerar esses 3 campos?
       
      Procurei na internet, mas não achei nada que me ajude, gostaria de fazer 100% com php e de preferência  manualmente (sem a utilização de classes prontas na qual é difícil de entender o código).
       
      Já tenho o certificado em PFX, e já gerei um certificado do tipo PEM.
       
      OBS 1: não precisam explicar ou mandar códigos de como inserir o conteúdo gerado nas tags <SignatureValue>  e  <X509Certificate>.
       
      OBS 2: O campo <DigestValue>  notei em alguns fóruns que é um retorno da Sefaz, é correto isso?
       
      ,
    • By edionas
      como posso exibir os dados do arquivo
      http://api.tcm.ce.gov.br/sim/1_0/municipios.xml
      em uma tabela?
    • By robertolsilva
      Estou tentando importar um xml para mysql, porem, ele importa tudo certo, porem, so importa o primeiro produto, nao tras do segundo pra frente. Sera que alguem pode me ajudar?
      Segue abaixo o script:
       
       
      <?php
      //import.php
      sleep(3);
      $output = '';
      if(isset($_FILES['file']['name']) &&  $_FILES['file']['name'] != '')
      {
       $valid_extension = array('xml');
       $file_data = explode('.', $_FILES['file']['name']);
       $file_extension = end($file_data);
       if(in_array($file_extension, $valid_extension))
       {
        $data = simplexml_load_file($_FILES['file']['tmp_name']);
        $connect = new PDO('mysql:host=localhost;dbname=yemos_back','root', '');
        $query = "
        INSERT INTO tbsaida
         (tbsaida_pedcli, tbsaida_statusped, tbsaida_dt_solic, separacaoDtLimite, separacaoPrioridade, transportadora, tbsaida_idcli, tbsaida_cnpj, tbsaida_destinatario, cnpj, termosCondicoes, tbsaida_prod_codigo, tbsaida_prod_descricao, tbsaida_qtde_solic)
         VALUES(:numPedido, :status, :dtemissao, :separacaoDtLimite, :separacaoPrioridade, :transportadora, :erazaoSocial, :tbsaida_cnpj, :destinatario, :cnpj, :termosCondicoes, :codigo, :descricao, :qtde);
        ";
        $statement = $connect->prepare($query);
        for($i = 0; $i < count($data); $i++)
        {
         $statement->execute(
          array(
           ':numPedido'   => $data->pedido[$i]->numPedido,
           ':status'  => $data->pedido[$i]->status,
           ':dtemissao'  => $data->pedido[$i]->dtEmissao,
           ':separacaoDtLimite' => $data->pedido[$i]->separacaoDtLimite,
           ':separacaoPrioridade'   => $data->pedido[$i]->separacaoPrioridade,
           ':transportadora'   => $data->pedido[$i]->transportadora,
           ':erazaoSocial'   => $data->pedido[$i]->erazaoSocial,
           ':tbsaida_cnpj'   => $data->pedido[$i]->ecnpj,
           ':destinatario'   => $data->pedido[$i]->razaoSocial,
           ':cnpj'   => $data->pedido[$i]->cnpj,
           ':termosCondicoes'  => $data->pedido[$i]->termosCondicoes,
           ':codigo'   => $data->pedido[$i]->produto->codigo,
           ':descricao'   => $data->pedido[$i]->produto->descricao,
           ':qtde'   => $data->pedido[$i]->produto->qtde
          )
         );
        }
        $result = $statement->fetchAll();
        if(isset($result))
        {
         $output = '<div class="alert alert-success">Import Data Done</div>';
        }
       }
       else
       {
        $output = '<div class="alert alert-warning">Invalid File</div>';
       }
      }
      else
      {
       $output = '<div class="alert alert-warning">Please Select XML File</div>';
      }
      echo $output;
      ?>
       
    • By s3c0
      Prezados,
       
      boa noite. Estou precisando de um help!
       
      possuo um script que retorna o seguinte XML:
       
      <tns:phpsysinfo xmlns:tns="http://phpsysinfo.sourceforge.net/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://phpsysinfo.sourceforge.net/ phpsysinfo3.xsd"> <Generation version="3.3.0" timestamp="1554324372"/> <Options tempFormat="c" byteFormat="auto_binary" datetimeFormat="utc" refresh="60000" threshold="90"/> <Vitals Hostname="WIN" IPAddr="127.0.0.1" Kernel="6.1.7600 (64-bit)" Distro="Microsoft Windows Server 2008 R2 Enterprise" Distroicon="WinVista.png" Uptime="204091" Users="0" LoadAvg="" CPULoad="0" SysLang="Portuguese - Brazil (1046)" CodePage="windows-1252" Processes="56" OS="WINNT"/> <Network/> <Hardware Name="VMware, Inc. VMware Virtual Platform"> <PCI> <Device Name="PCI standard PCI-to-PCI bridge" Count="2"/> <Device Name="PCI Express standard Root Port" Count="32"/> <Device Name="Standard AHCI 1.0 Serial ATA Controller" Manufacturer="Standard AHCI 1.0 Serial ATA Controller"/> <Device Name="Intel(R) PRO/1000 MT Network Connection" Manufacturer="Intel"/> <Device Name="Intel(R) PRO/1000 MT Network Connection #2" Manufacturer="Intel"/> <Device Name="Intel(R) PRO/1000 MT Network Connection #3" Manufacturer="Intel"/> <Device Name="LSI Adapter, SAS 3000 series, 8-port with 1068" Manufacturer="LSI"/> <Device Name="Intel 82371AB/EB PCI to ISA bridge (ISA mode)" Manufacturer="Intel"/> <Device Name="VMware SVGA 3D" Manufacturer="VMware, Inc."/> <Device Name="Intel(R) 82371AB/EB PCI Bus Master IDE Controller" Manufacturer="Intel"/> <Device Name="VMware VMCI Bus Device" Manufacturer="VMware, Inc."/> <Device Name="Intel 82443BX Pentium(R) II Processor to PCI Bridge" Manufacturer="Intel"/> </PCI> <IDE> <Device Name="NECVMWar VMware SATA CD00 ATA Device"/> </IDE> <SCSI> <Device Name="VMware Virtual disk SCSI Disk Device" Capacity="128849011200"/> </SCSI> <CPU> <CpuCore Model="Intel(R) Xeon(R) CPU E3-1231 v3 @ 3.40GHz" CpuSpeed="3400" Cache="0"/> <CpuCore Model="Intel(R) Xeon(R) CPU E3-1231 v3 @ 3.40GHz" CpuSpeed="3400" Cache="0"/> <CpuCore Model="Intel(R) Xeon(R) CPU E3-1231 v3 @ 3.40GHz" CpuSpeed="3400" Cache="0"/> <CpuCore Model="Intel(R) Xeon(R) CPU E3-1231 v3 @ 3.40GHz" CpuSpeed="3400" Cache="0"/> </CPU> </Hardware> <Memory Free="1720385536" Used="2574114816" Total="4294500352" Percent="60"> <Swap Free="3048210432" Used="685768704" Total="3733979136" Percent="18"> <Mount MountPointID="1" FSType="swap" Name="SWAP" Free="3048210432" Used="685768704" Total="3733979136" Percent="18" MountPoint="C:\pagefile.sys"/> </Swap> </Memory> <FileSystem> <Mount MountPointID="1" FSType="" Name="Removable Disk (3 1/2 in.)" Free="0" Used="0" Total="0" Percent="0" MountPoint="A:"/> <Mount MountPointID="2" FSType="NTFS" Name="Local Disk" Free="732983296" Used="128009076736" Total="128742060032" Percent="99" MountPoint="C:"/> <Mount MountPointID="3" FSType="" Name="Compact Disc" Free="0" Used="0" Total="0" Percent="0" MountPoint="D:"/> </FileSystem> <MBInfo/> <UPSInfo/> <Plugins/> <Errors/> </tns:phpsysinfo> tenho o seguinte código em ASP:
       
      <% url_server = "http://127.0.0.1/xml.php?plugin=complete" Set xmlhttp = Server.CreateObject("Microsoft.XMLHTTP") Call xmlhttp.open("GET", url_server, false) Call xmlhttp.send() strRetorno = xmlhttp.responseText Set oXmlDom = Server.CreateObject("Msxml2.DOMDocument.3.0") oXmlDom.loadXML strRetorno Set oNodes = oXmlDom.selectNodes("tns:phpsysinfo/FileSystem/Mount") for each oNode in oNodes response.write "Cache " & oNode.selectSingleNode("Percent").Text next Set oXmlDom = Nothing %> ao tentar trazer alguns valores, sempre me retorna o seguinte erro:
       
      Erro de tempo de execução do Microsoft VBScript erro '800a01a8'
      Objeto necessário: 'oNode.selectSingleNode(...)'
       
      Preciso trazer os valores de:
      CPU
      Memory
      HD
       
      Alguém teria alguma dica de como consigo resolver?
       
      Agradeço a atenção de todos.
    • By Gustavo2503
      fgets() não funciona em xml versão 4.00, só funciona na versão 3.10
      $arquivo = $_FILES['arquivo']["tmp_name"]; $xml = fopen($arquivo, 'r'); while(!feof($xml)){ $linha = fgets($xml); if (!$linha){ $linha = "Erro"; } } echo $linha; Ele retorna "Erro" quando o xml está na versão 4.00. Como arruma isso?
×

Important Information

Ao usar o fórum, você concorda com nossos Terms of Use.