first import

This commit is contained in:
Bachir Soussi Chiadmi
2015-04-08 11:40:19 +02:00
commit 1bc61b12ad
8435 changed files with 1582817 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
.font-1 { font-family: Arial, Helvetica, "Nimbus Sans L", "Liberation Sans", "FreeSans", sans-serif; }
.font-2 { font-family: "Lucida Grande", "Lucida Sans Unicode", "DejaVu Sans", Arial, sans-serif; }

View File

@@ -0,0 +1,13 @@
name = Skinr Testing
description = A test module used for testing Skinr.
package = Testing
core = 7.x
hidden = TRUE
dependencies[] = skinr
; Information added by drupal.org packaging script on 2012-01-20
version = "7.x-2.0-alpha1"
core = "7.x"
project = "skinr"
datestamp = "1327086045"

View File

@@ -0,0 +1,3 @@
/**
* Non-functional JS file to test for inclusion on page.
*/

View File

@@ -0,0 +1,104 @@
<?php
/**
* @file
* Skinr testing module.
*
* Other modules should be able to place their Skinr support/integration code
* into a conditionally loaded $module.skinr.inc file, so this .module file
* only exists, because Drupal requires a .module file to exist.
*/
/**
* Implements hook_menu().
*/
function skinr_test_menu() {
$items['skinr-test/hook-dynamic-loading'] = array(
'title' => 'Test hook dynamic loading (skinr_hook)',
'page callback' => 'skinr_test_hook_dynamic_loading',
'access arguments' => array('access content'),
);
return $items;
}
/**
* Page callback for 'hook dynamic loading' test.
*
* If the hook is dynamically loaded correctly, the menu callback should
* return 'success!'.
*/
function skinr_test_hook_dynamic_loading() {
if (skinr_hook('skinr_test', 'skinr_group_info') && function_exists('skinr_test_skinr_group_info')) {
return 'success!';
}
return 'failed!';
}
/**
* Implements hook_system_theme_info().
*
* @see http://drupal.org/node/953336
*/
function skinr_test_system_theme_info() {
$path = drupal_get_path('module', 'skinr_test');
$test_themes = array('basetheme', 'subtheme', 'basetheme_other', 'subtheme_other');
foreach ($test_themes as $theme) {
$themes["skinr_test_{$theme}"] = $path . "/themes/skinr_test_{$theme}/skinr_test_{$theme}.info";
}
return $themes;
}
//
// Presave hooks
//
/**
* Implements hook_skinr_skin_presave().
*/
function skinr_test_skinr_skin_presave() {
$_SESSION['skinr_test'][] = (__FUNCTION__ . ' called');
}
//
// Insert hooks
//
/**
* Implements hook_skinr_skin_insert().
*/
function skinr_test_skinr_skin_insert() {
$_SESSION['skinr_test'][] = (__FUNCTION__ . ' called');
}
//
// Load hooks
//
/**
* Implements hook_skinr_skin_load().
*/
function skinr_test_skinr_skin_load() {
$_SESSION['skinr_test'][] = (__FUNCTION__ . ' called');
}
//
// Update hooks
//
/**
* Implements hook_skinr_skin_update().
*/
function skinr_test_skinr_skin_update() {
$_SESSION['skinr_test'][] = (__FUNCTION__ . ' called');
}
//
// Delete hooks
//
/**
* Implements hook_skinr_skin_delete().
*/
function skinr_test_skinr_skin_delete() {
$_SESSION['skinr_test'][] = (__FUNCTION__ . ' called');
}

View File

@@ -0,0 +1,47 @@
<?php
/**
* Implements hook_skinr_api_VERSION().
*/
function skinr_test_skinr_api_2() {
return array(
'directory' => 'skins',
);
}
/**
* Implements hook_skinr_group_info().
*/
function skinr_test_skinr_group_info() {
$groups['skinr_test'] = array(
'title' => t('skinr_test'),
);
}
/**
* Implements hook_skinr_skin_info().
*/
function skinr_test_skinr_skin_info() {
$skins['skinr_test_font'] = array(
'title' => t('Font family'),
'type' => 'select',
'group' => 'typography',
'theme hooks' => array('block', 'region'),
'default status' => 1,
'attached' => array(
'css' => array('skinr_test.css'),
'js' => array('skinr_test.js'),
),
'options' => array(
'font_1' => array(
'title' => 'Arial, Helvetica, Nimbus Sans L, Liberation Sans, FreeSans',
'class' => array('font-1'),
),
'font_2' => array(
'title' => 'Lucida Grande, Lucida Sans Unicode, DejaVu Sans, Tahoma',
'class' => array('font-2'),
),
),
);
return $skins;
}

View File

@@ -0,0 +1,11 @@
<?php
/**
* Implements hook_skinr_skin_PLUGIN_info().
*/
function skinr_test_skinr_skin_example_info() {
$skins['skinr_test_example'] = array(
'title' => t('Example skin plugin'),
);
return $skins;
}

View File

@@ -0,0 +1,13 @@
name = Skinr test base theme
description = Test theme which acts as a base theme for other test subthemes.
core = 7.x
hidden = TRUE
skinr[api] = 2
; Information added by drupal.org packaging script on 2012-01-20
version = "7.x-2.0-alpha1"
core = "7.x"
project = "skinr"
datestamp = "1327086045"

View File

@@ -0,0 +1,15 @@
<?php
/**
* Implements hook_skinr_skin_info().
*/
function skinr_test_basetheme_skinr_skin_info() {
$skins['skinr_test_basetheme'] = array(
'title' => 'Base theme skin',
'default status' => 0,
'status' => array(
'skinr_test_basetheme' => 1,
),
);
return $skins;
}

View File

@@ -0,0 +1,11 @@
name = Skinr test base theme (other)
description = Test theme which acts as a normal base theme for other test subthemes. It does not include any skins.
core = 7.x
hidden = TRUE
; Information added by drupal.org packaging script on 2012-01-20
version = "7.x-2.0-alpha1"
core = "7.x"
project = "skinr"
datestamp = "1327086045"

View File

@@ -0,0 +1,12 @@
<?php
/**
* Implements hook_skinr_skin_info().
*/
function skinr_test_basetheme_other_skinr_skin_info() {
$skins['skinr_test_basetheme_other'] = array(
'title' => 'Other base theme skin',
'default status' => 1,
);
return $skins;
}

View File

@@ -0,0 +1,14 @@
name = Skinr test subtheme
description = Test theme which uses skinr_test_basetheme as the base theme.
core = 7.x
base theme = skinr_test_basetheme
hidden = TRUE
skinr[api] = 2
; Information added by drupal.org packaging script on 2012-01-20
version = "7.x-2.0-alpha1"
core = "7.x"
project = "skinr"
datestamp = "1327086045"

View File

@@ -0,0 +1,12 @@
<?php
/**
* Implements hook_skinr_skin_info().
*/
function skinr_test_subtheme_skinr_skin_info() {
$skins['skinr_test_subtheme'] = array(
'title' => 'Subtheme skin',
'default status' => 1,
);
return $skins;
}

View File

@@ -0,0 +1,12 @@
name = Skinr test subtheme (other)
description = Test theme which uses skinr_test_basetheme_other as the base theme. Neither include any skins.
core = 7.x
base theme = skinr_test_basetheme_other
hidden = TRUE
; Information added by drupal.org packaging script on 2012-01-20
version = "7.x-2.0-alpha1"
core = "7.x"
project = "skinr"
datestamp = "1327086045"

View File

@@ -0,0 +1,12 @@
<?php
/**
* Implements hook_skinr_skin_info().
*/
function skinr_test_subtheme_other_skinr_skin_info() {
$skins['skinr_test_subtheme_other'] = array(
'title' => 'Other subtheme skin',
'default status' => 1,
);
return $skins;
}