-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing attachments and extract some of them. (#2)
- Loading branch information
Showing
493 changed files
with
18,137 additions
and
257 deletions.
There are no files selected for viewing
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
Binary file not shown.
Binary file added
BIN
+730 Bytes
blog/2012/12/31/ubuntu-12-web-server/attachment/add_alias_indomain13-10.sh.zip
Binary file not shown.
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
Binary file added
BIN
+3.8 MB
blog/2013/01/24/drupal-7-for-beginners-translating-drupal/attachment/translate_drupal.zip
Binary file not shown.
Binary file added
BIN
+3.83 MB
blog/2013/01/25/drupal-7-for-beginners-working-with-content/attachment/materials.zip
Binary file not shown.
Binary file added
BIN
+3.86 MB
blog/2013/01/28/drupal-7-for-beginners-configuring-site/attachment/dfbeginners_site.zip
Binary file not shown.
Binary file added
BIN
+3.83 MB
...pal-7-for-beginners-creating-custom-content-types/attachment/dfbeginners_contenttypes.zip
Binary file not shown.
Binary file added
BIN
+3.95 MB
blog/2013/02/01/drupal-7-for-beginners-working-with-fields/attachment/dfbeginners_fields.zip
Binary file not shown.
Binary file added
BIN
+4.67 MB
...l-7-for-beginners-display-management-and-image-handling/attachment/dfbeginers_display.zip
Binary file not shown.
Binary file added
BIN
+7.54 MB
blog/2013/02/14/drupal-7-for-beginners-modules/attachment/dfbeginners.tar.gz
Binary file not shown.
Binary file added
BIN
+7.07 MB
blog/2013/02/16/drupal-7-for-beginners-views/attachment/dfbeginners.tar.gz
Binary file not shown.
Binary file added
BIN
+7.73 MB
blog/2013/02/22/drupal-7-for-beginners-path-aliases/attachment/dfbeginners.dev.tar.gz
Binary file not shown.
Binary file added
BIN
+7.91 MB
blog/2013/02/27/drupal-7-for-beginners-contact-form/attachment/dfbeginners.tar.gz
Binary file not shown.
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
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
Binary file added
BIN
+193 Bytes
...upal-7-integrating-color-module-guide/example/result/color_theme/color/base.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions
20
.../04/17/drupal-7-integrating-color-module-guide/example/result/color_theme/color/color.css
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* bg */ | ||
body { | ||
background: #f1f1f1; | ||
} | ||
|
||
/* link_color */ | ||
a { | ||
color: #2158ce; | ||
} | ||
|
||
/* page_bg */ | ||
#page-wrapper { | ||
background: #ffffff; | ||
} | ||
|
||
/* menu_bg_color && menu_link_color */ | ||
#navigation ul.menu li a { | ||
background: #ececec; | ||
color: #000000; | ||
} |
77 changes: 77 additions & 0 deletions
77
.../04/17/drupal-7-integrating-color-module-guide/example/result/color_theme/color/color.inc
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<?php | ||
|
||
// Массив со всеми настройками. | ||
$info = array(); | ||
|
||
// Оъявляем все переменные-цвета. | ||
// Каждая переменная - поле для выбора цвета. | ||
// Имеют вид: 'ключ' => 'метка'. | ||
// Можно использовать функцию t(). | ||
$info['fields'] = array( | ||
'bg' => 'Фон сайта', | ||
'page_bg' => 'Фон страницы', | ||
'link_color' => 'Цвет ссылок', | ||
'menu_bg_color' => 'Цвет фона пунктов меню', | ||
'menu_link_color' => 'Цвет ссылок пунктов-меню', | ||
); | ||
|
||
// Объявляем базовые цветовые схемы (предустановленные). | ||
$info['schemes'] = array( | ||
// Объявляем обязательную схему, которая будет использовать по-умолчанию, и | ||
// от которой будет отталкиваться модуль Color. | ||
'default' => array( | ||
// Название цветовой схемы. Будет отображаться в списке всех схем. | ||
'title' => 'Цветовая схема по-умолчанию', | ||
// Задаем цвета для каждого ключа ($info['fields']). | ||
// Все стандартные значения я беру из CSS. | ||
// Цвет должен быть в HEX формате, начинаться с решетки и быть в нижнем | ||
// регистре. | ||
'colors' => array( | ||
'bg' => '#f1f1f1', | ||
'page_bg' => '#ffffff', | ||
'link_color' => '#2158ce', | ||
'menu_bg_color' => '#ececec', | ||
'menu_link_color' => '#000000', | ||
), | ||
), | ||
// Добавляем еще одну цветовую схему, но уже с нужными нам цветами. | ||
'example' => array( | ||
'title' => 'Пример дополнительной схемы', | ||
// Делаем её полностью белой. | ||
'colors' => array( | ||
'bg' => '#ffffff', | ||
'page_bg' => '#ffffff', | ||
'link_color' => '#ffffff', | ||
'menu_bg_color' => '#ffffff', | ||
'menu_link_color' => '#ffffff', | ||
), | ||
), | ||
); | ||
|
||
/** | ||
* Настройки ниже - пустышки. Они нужны модулю color, даже если мы их не | ||
* используем в своей теме. | ||
*/ | ||
|
||
// Путь указывается относительно корня темы. | ||
$info['css'] = array('color/color.css'); | ||
|
||
// Файлы для копирования. (color.css - копируется автоматически) | ||
$info['copy'] = array(); | ||
|
||
// Файлы которые будут использоваться в превью. | ||
$info['preview_css'] = 'color/preview.css'; | ||
$info['preview_js'] = 'color/preview.js'; | ||
$info['preview_html'] = 'color/preview.html'; | ||
|
||
// Объявление градиентов. | ||
$info['gradients'] = array(); | ||
|
||
// Координаты для заливки. | ||
$info['fill'] = array(); | ||
|
||
// Координаты для нарезки изображения. | ||
$info['slices'] = array(); | ||
|
||
// Базовая картинка. | ||
$info['base_image'] = 'color/base.png'; |
12 changes: 12 additions & 0 deletions
12
...04/17/drupal-7-integrating-color-module-guide/example/result/color_theme/color_theme.info
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name = Пример Color-темы | ||
description = <a href="http://niklan.net/" target="_blank">Пример Color-темы</a> | ||
core = 7.x | ||
|
||
; Регионы | ||
regions[header] = Шапка | ||
regions[content] = Контент | ||
regions[footer] = Footer | ||
|
||
; Стили | ||
stylesheets[all][] = css/style.css | ||
stylesheets[all][] = color/color.css |
40 changes: 40 additions & 0 deletions
40
...13/04/17/drupal-7-integrating-color-module-guide/example/result/color_theme/css/style.css
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
body { | ||
font-size: 16px; | ||
font-family: sans-serif; | ||
background: #f1f1f1; /* bg */ | ||
} | ||
|
||
h1,h2,h3,h4,h5,h6 { | ||
color: #333333; | ||
} | ||
|
||
a { | ||
color: #2158ce; /* link_color */ | ||
} | ||
|
||
#page-wrapper { | ||
width: 1000px; | ||
margin: 0 auto; | ||
padding: 20px; | ||
border-radius: 5px; | ||
border: 1px solid #dbdbdb; | ||
background: #ffffff; /* page_bg */ | ||
} | ||
|
||
#navigation ul.menu { | ||
padding: 0; | ||
margin: 0; | ||
list-style: none; | ||
} | ||
|
||
#navigation ul.menu li { | ||
display: inline; | ||
} | ||
|
||
#navigation ul.menu li a { | ||
padding: 10px; | ||
background: #ececec; /* menu_bg_color */ | ||
color: #000000; /* menu_link_color */ | ||
text-decoration: none; | ||
border-radius: 3px; | ||
} |
14 changes: 14 additions & 0 deletions
14
...013/04/17/drupal-7-integrating-color-module-guide/example/result/color_theme/html.tpl.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<?php print $head; ?> | ||
<title><?php print $head_title; ?></title> | ||
<?php print $styles; ?> | ||
<?php print $scripts; ?> | ||
</head> | ||
<body class="<?php print $classes; ?>" <?php print $attributes;?>> | ||
<?php print $page_top; ?> | ||
<?php print $page; ?> | ||
<?php print $page_bottom; ?> | ||
</body> | ||
</html> |
59 changes: 59 additions & 0 deletions
59
...013/04/17/drupal-7-integrating-color-module-guide/example/result/color_theme/page.tpl.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php /*<div id="page"> | ||
<div id="site-menu"> | ||
<?php | ||
$block = module_invoke('system', 'block_view', 'main-menu'); | ||
echo render($block['content']); | ||
?> | ||
</div> | ||
<div id="main"> | ||
<?php print render($title_prefix); ?> | ||
<?php if ($title): ?> | ||
<h1 class="title" id="page-title"><?php print $title; ?></h1> | ||
<?php endif; ?> | ||
<?php print render($title_suffix); ?> | ||
<?php if ($tabs): ?> | ||
<div class="tabs"><?php print render($tabs); ?></div> | ||
<?php endif; ?> | ||
<?php print $messages; ?> | ||
<div id="main-content" class="region clearfix"> | ||
<?php print render($page['content']); ?> | ||
</div> | ||
</div> | ||
<div id="footer"> | ||
<?php if ($page['footer']): ?> | ||
<?php print render($page['footer']); ?> | ||
<?php endif; ?> | ||
</div> | ||
</div> | ||
*/?> | ||
<div id="page-wrapper"> | ||
<header id="header"> | ||
<hgroup id="site-name-slogan"> | ||
<h1 id="site-name"><?php print $site_name; ?></h1> | ||
<h2 id="site-slogan"><?php print $site_slogan; ?></h2> | ||
</hgroup> | ||
|
||
<nav id="navigation"> | ||
<?php | ||
$block = module_invoke('system', 'block_view', 'main-menu'); | ||
echo render($block['content']); | ||
?> | ||
</nav> | ||
</header> | ||
|
||
<div id="content"> | ||
<?php if ($title): ?> | ||
<h1 id="page-title"><?php print $title; ?></h1> | ||
<?php endif; ?> | ||
<?php print render($page['content']); ?> | ||
</div> | ||
|
||
<footer id="footer"> | ||
© 2013 | ||
<?php print render($page['footer']); ?> | ||
</footer> | ||
</div> |
18 changes: 18 additions & 0 deletions
18
...013/04/17/drupal-7-integrating-color-module-guide/example/result/color_theme/template.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
/** | ||
* Использум template_preprocess_html(). | ||
*/ | ||
function color_theme_process_html(&$variables) { | ||
if (module_exists('color')) { | ||
_color_html_alter($variables); | ||
} | ||
} | ||
|
||
/** | ||
* Используем template_process_page(). | ||
*/ | ||
function color_theme_process_page(&$variables, $hook) { | ||
if (module_exists('color')) { | ||
_color_page_alter($variables); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
.../04/17/drupal-7-integrating-color-module-guide/example/start/color_theme/color_theme.info
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name = Пример Color-темы | ||
description = <a href="http://niklan.net/" target="_blank">Пример Color-темы</a> | ||
core = 7.x | ||
|
||
; Регионы | ||
regions[header] = Шапка | ||
regions[content] = Контент | ||
regions[footer] = Footer | ||
|
||
; Стили | ||
stylesheets[all][] = css/style.css |
40 changes: 40 additions & 0 deletions
40
...013/04/17/drupal-7-integrating-color-module-guide/example/start/color_theme/css/style.css
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
body { | ||
font-size: 16px; | ||
font-family: sans-serif; | ||
background: #f1f1f1; /* bg */ | ||
} | ||
|
||
h1,h2,h3,h4,h5,h6 { | ||
color: #333333; | ||
} | ||
|
||
a { | ||
color: #2158ce; /* link_color */ | ||
} | ||
|
||
#page-wrapper { | ||
width: 1000px; | ||
margin: 0 auto; | ||
padding: 20px; | ||
border-radius: 5px; | ||
border: 1px solid #dbdbdb; | ||
background: #ffffff; /* page_bg */ | ||
} | ||
|
||
#navigation ul.menu { | ||
padding: 0; | ||
margin: 0; | ||
list-style: none; | ||
} | ||
|
||
#navigation ul.menu li { | ||
display: inline; | ||
} | ||
|
||
#navigation ul.menu li a { | ||
padding: 10px; | ||
background: #ececec; /* menu_bg_color */ | ||
color: #000000; /* menu_link_color */ | ||
text-decoration: none; | ||
border-radius: 3px; | ||
} |
14 changes: 14 additions & 0 deletions
14
...2013/04/17/drupal-7-integrating-color-module-guide/example/start/color_theme/html.tpl.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<?php print $head; ?> | ||
<title><?php print $head_title; ?></title> | ||
<?php print $styles; ?> | ||
<?php print $scripts; ?> | ||
</head> | ||
<body class="<?php print $classes; ?>" <?php print $attributes;?>> | ||
<?php print $page_top; ?> | ||
<?php print $page; ?> | ||
<?php print $page_bottom; ?> | ||
</body> | ||
</html> |
Oops, something went wrong.