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
JS: | |
$(".accordeon dd").hide().prev().click(function() { | |
$(this).parents(".accordeon").find("dd").not(this).slideUp().prev().removeClass("active"); | |
$(this).next().not(":visible").slideDown().prev().addClass("active"); | |
}); | |
CSS: | |
.accordeon .active { color: red } | |
HTML: |
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
// Создаем виджет BlogTool.ru | |
class btru_widget extends WP_Widget { | |
function __construct() { | |
parent::__construct( | |
// Выбираем ID для своего виджета | |
'btru_widget', | |
// Название виджета, показано в консоли | |
__('BlogTool Widget', 'btru_widget_domain'), |
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> | |
<head> | |
<meta charset="utf8"> | |
<title> Site news </title> | |
</head> | |
<body> | |
<div> <p>Спасибо за обращение! Ваше сообщение отправлено.</p> </div> |
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 | |
class DB_CONNECT { | |
function __construct() { | |
$this->connect(); | |
} | |
function __destruct() { | |
$this->close(); |
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 | |
define('DB_USER', "root"); //login DB | |
define('DB_PASSWORD', ""); // password DB | |
define('DB_DATABASE', "DataBaseName"); // name DB | |
define('DB_SERVER', "127.0.0.1"); // server IP | |
?> |
NewerOlder