This file contains 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
body:not(h1){ | |
background-color: aquamarine; | |
background-image: url("boy.png") ; | |
background-repeat: no-repeat; | |
background-size: 90%; | |
background-position-y: 100px; | |
} | |
h1{ |
This file contains 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
/*div/table/tr/td/a*/ | |
div{ | |
background-color:darkorange; | |
margin-top: 10px; | |
padding: 5px; | |
display: inline-block ; | |
border-width: 30px; | |
} |
This file contains 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
/*div/table/li/a*/ | |
a{ | |
color: white; | |
text-decoration-line: none; | |
display: block; | |
} | |
#menu a:hover { | |
font-weight: bold; | |
color: black; |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> | |
<style> |
This file contains 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
$( document ).ready(function() { | |
/*Your code must be here | |
it's exept intresting situation what happens with jQuery*/ | |
}); |
This file contains 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
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> $('.menu-btn').on('click',function(e){ | |
e.preventDefautl(); | |
$(this).toggleClass('menu-btn-active'); | |
$('.menu').toggleClass('.menu-active'); | |
}); | |
This file contains 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 | |
//MAKE YOUR CHOICE!!!!!!!! | |
//PDO SQL | |
error_reporting(E_ALL); | |
try { | |
$dsn="mysql:host=host;dbname=db_name; charset=utf8"; | |
$dbh=new PDO($dsn,'root',''); | |
} | |
catch(PDOException $e ){ | |
print "Error".$e->getMessage()."<br/>"; |
This file contains 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 | |
$product_cat_slugs = array(); | |
foreach (get_the_terms($product->ID, 'product_cat') as $term) { | |
array_push($product_cat_slugs, $term->slug); | |
} | |
$args = array( | |
'posts_per_page' => carbon_get_theme_option('numbers'),//or carbon_get_the_post_meta('numbers')//or just number | |
'tax_query' => array( | |
'relation' => 'OR', |
This file contains 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 $main_menu = get_field( 'repeater_1','option' ); //Главный повторитель | |
//option это не обязательный параметр, он показывает что настройка находяится в отдельном элементе меню | |
foreach( $main_menu as $element ): //Первый цикл получения значений ?> | |
<li class="dropdown"> | |
<a href="<?php echo $element['element_of_repeater_1']; ?>" data-toggle="dropdown" class="dropdown-toggle"><?php echo $element['element_of_repeater_1']; ?></a> | |
<?php |
This file contains 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 $logo = get_field('logo_image_and_url','option'); //Получаем поля в группе | |
//option это не обязательный параметр, он показывает что настройка находяится в отдельном элементе меню | |
if( $logo ): ?> | |
<li> | |
<a href="<?php echo $logo['logo_image_url'] ; ?>" class="logoPage"> | |
<img src="<?php echo esc_url ($logo['logo_image']['url'] );//Пример отображения ИЗОБРАЖЕНИЙ из группы ?>" alt="logo"> | |
</a> | |
</li> | |
<?php endif; | |
?> |
OlderNewer