| Сообщения | Источник |
|---|---|
| 321 | Из ICQ |
| 230 | Из #ulway |
| 2 | Из реплаев @ulway |
| 1 | С сайта |
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
| <html> | |
| <head> | |
| <title>Чанки, сниппеты и какие-то телевизоры.</title> | |
| <meta name="description" content="После того как один мой знакомый спросил у меня про то, что за телевизоры используются в шаблонах, я решил отложить все дела на вечер и написать эту статью. Речь пойдёт о том из чего состоит MODx, как его лучше "готовить", "подавать" и "употреблять". "/> | |
| </head> | |
| <body> | |
| <h1>Чанки, сниппеты и какие-то телевизоры.</h1> | |
| ID страницы: 18<br/> | |
| Анонс: После того как один мой знакомый спросил у меня про то, что за телевизоры используются в шаблонах, я решил отложить все дела на вечер и написать эту статью. Речь пойдёт о том из чего состоит MODx, как его лучше "готовить", "подавать" и "употреблять". <br/> | |
| Заголовок в меню: |
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
| #!/bin/bash | |
| USAGE="Usage: -p Project path" | |
| while getopts p: options; do | |
| case $options in | |
| p ) PROJECT="$OPTARG";; | |
| esac | |
| done |
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
| #!/usr/bin/php | |
| <?php | |
| if (!empty($argv[1])) { | |
| $commit_message = file_get_contents($argv[1]); | |
| if (!preg_match("/\[.\]\s.*?/", $commit_message)) { | |
| echo "\n Cannot commit. \n Wrong commit message format."; | |
| } else { | |
| exit (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
| #!/usr/bin/env ruby | |
| require 'fileutils' | |
| require 'tempfile' | |
| if ARGV[0] == nil | |
| path = '**' | |
| else | |
| path = File.join(ARGV[0], '**') | |
| end |
Обязательно к прочтению перед работой.
Обязательно к прочтению перед работой.
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 | |
| // Сука сет через гет | |
| if ($count_cache_parent_items_path < SEO_RUNTIME_CACHE_COUNT) { | |
| $reg = & Registry::get("runtime.seo.parent_items"); | |
| $reg[$object_type][$object_id] = $id_path; | |
| $count_cache_parent_items_path++; | |
| } | |
| // Чётко вообще. | |
| if (is_array($templates)) { |
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 | |
| 'test_block' => array ( | |
| 'content' => array( | |
| 'some_value' => array( | |
| 'type' => 'text', | |
| ) | |
| ) | |
| ) |
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 | |
| array( | |
| // Название динамического объекта, будет использоваться в качестве object_type | |
| 'products' => array ( | |
| // Страница редактирования динамического объекта, на которой должна отобразиться вкладка Blocks в административной части сайта | |
| 'admin_dispatch' => 'products.update', | |
| // Адрес страницы на которой в клинтской зоне и в панели управления блоками будет доступна работа с динамическим объектом | |
| 'customer_dispatch' => 'products.view', |