This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .wrap-video { | |
| position: relative; | |
| padding-bottom: 56.25%; /* 16:9 */ | |
| padding-top: 25px; | |
| height: 0; | |
| iframe { | |
| position: absolute; | |
| top: 0; | |
| left: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| $('.ttabs').on("click", " .ttab", function () { | |
| $(this).siblings().removeClass('active'); | |
| $(this).addClass('active'); | |
| var tabID = $(this).attr('data-ttab'); | |
| var tabSelected = $(this).closest('.ttabs-wrap').find("[data-ttab='" + tabID + "']"); | |
| tabSelected.siblings().removeClass('active'); | |
| tabSelected.addClass('active'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*-------------------------------------------------*/ | |
| /* = Scroll between sections | |
| /*-------------------------------------------------*/ | |
| var $root = $('html, body'); | |
| $('a.anchor[href*=#]').on("click",function(event) { | |
| event.preventDefault(); | |
| var offset = -150; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RewriteEngine On | |
| Redirect 301 pagina1.html http://www.miosito.com/pagina2.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| Header( "HTTP/1.1 301 Moved Permanently" ); | |
| Header( "Location: https://newlocation/" ); | |
| ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //$d è un oggetto stdClass | |
| //$newd = new stdClass; | |
| //$newd->ID = "MAIN"; | |
| //$newd->NAME = "Look - The Concept Factory"; | |
| //$newd->ADDRESS = "Zona industriale Villanova, 19 32013 Longarone (BL) ITALY"; | |
| //$newd->TEL = "+390437573060"; | |
| //$newd->MAIL = "info@lookocchiali.it"; | |
| //$newd->WEBSITE = "www.lookocchiali.it"; | |
| //$newd->DISTANCE = ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| My url: https://www.test.com/inc/example.xml | |
| RewriteRule ^inc/example.xml - [F] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RewriteEngine On | |
| RewriteCond %{HTTPS} !=on | |
| RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| # redirect to subfolder /it if language is it | |
| RewriteCond %{HTTP:Accept-Language} ^it [NC] | |
| RewriteRule ^/?$ https://domain.com/it/ [R,NC,L] | |
| # remove the .html extension | |
| RewriteCond %{THE_REQUEST} ^GET\ (.*)\.html\ HTTP | |
| RewriteRule (.*)\.html$ $1 [R=301] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
| $args = array( | |
| 'posts_per_page' => 8, | |
| 'paged' => $paged, | |
| 'post__not_in' => array($idPostToExlude) ); | |
| $the_query = new WP_Query( $args ); |