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
// Необходимо вывести поле содержащее текст "Подробнее" | |
//Произвольные поля | |
//Имя: more | |
//Значение: Подробнее | |
$more = get_post_custom_values('more'); | |
<?php echo $more[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
// ------------------------------------------------------------------ | |
// Вешаем все блоки, поля и опции на хук admin_init | |
// ------------------------------------------------------------------ | |
// | |
add_action( 'admin_init', 'site_name_api_init' ); | |
function site_name_api_init() { | |
// Добавляем блок опций на базовую страницу "Общие" | |
add_settings_section( | |
'site_name_section', // секция | |
'Настройки шапки сайта', |
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
{ "keys": ["tab"], "command": "expand_abbreviation_by_tab", "context": | |
[ | |
{ | |
"operand": "source.css, source.sass, source.less, source.scss, source.stylus, source.postcss, source.jade, text.jade, text.slim, text.xml, text.html - source, text.haml, text.scala.html, source string", | |
"operator": "equal", | |
"match_all": true, | |
"key": "selector" | |
}, | |
{ | |
"operand": "storage.type.templatetag.django", |
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
Меняем в файле /home/ohranactr/public_html/catalog/controller/common/header.php | |
это: | |
foreach ($children as $child) { | |
$filter_data = array( | |
'filter_category_id' => $child['category_id'], | |
'filter_sub_category' => true | |
); | |
$children_data[] = array( |
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
$url = drupal_lookup_path('alias', 'taxonomy/term/'.$known_tid, $lang_code); |
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
file: sendmail.php | |
<?php | |
session_start(); | |
if (isset($_POST["send"])) { | |
$from = $_POST["from"]; | |
$to = $_POST["to"]; | |
$subject = $_POST["subject"]; | |
$message = $_POST["message"]; | |
$_SESSION["from"] = $from; | |
$_SESSION["to"] = $to; |
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 echo get_bloginfo('description');?> |
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 echo get_bloginfo('name');?> |
NewerOlder