diff --git a/modules/commerce_kickstart/commerce_kickstart_block/commerce_kickstart_block.install b/modules/commerce_kickstart/commerce_kickstart_block/commerce_kickstart_block.install
index 71dc07d..68b1bb3 100644
--- a/modules/commerce_kickstart/commerce_kickstart_block/commerce_kickstart_block.install
+++ b/modules/commerce_kickstart/commerce_kickstart_block/commerce_kickstart_block.install
@@ -27,6 +27,9 @@ function commerce_kickstart_block_enable() {
drupal_static_reset();
_block_rehash($default_theme);
+ $admin_theme = variable_get('admin_theme', 'shiny');
+ _block_rehash($admin_theme);
+
// Footer navigation.
db_update('block')
->fields(array(
@@ -93,4 +96,32 @@ function commerce_kickstart_block_enable() {
->condition('delta', 'powered_drupal_commerce')
->condition('theme', $default_theme)
->execute();
+
+ // Powered by Drupal Commerce block for admin.
+ db_update('block')
+ ->fields(array(
+ 'region' => 'footer',
+ 'status' => '1',
+ 'visibility' => '0',
+ 'pages' => '',
+ 'weight' => -30,
+ ))
+ ->condition('module', 'commerce_kickstart_block')
+ ->condition('delta', 'powered_drupal_commerce')
+ ->condition('theme', $admin_theme)
+ ->execute();
+
+ // Proudly built by CG block.
+ db_update('block')
+ ->fields(array(
+ 'region' => 'footer',
+ 'status' => '1',
+ 'visibility' => '0',
+ 'pages' => '',
+ 'weight' => -31,
+ ))
+ ->condition('module', 'commerce_kickstart_block')
+ ->condition('delta', 'proudly_built_by_cg')
+ ->condition('theme', $admin_theme)
+ ->execute();
}
diff --git a/modules/commerce_kickstart/commerce_kickstart_block/commerce_kickstart_block.module b/modules/commerce_kickstart/commerce_kickstart_block/commerce_kickstart_block.module
index d521cf5..926ec0d 100644
--- a/modules/commerce_kickstart/commerce_kickstart_block/commerce_kickstart_block.module
+++ b/modules/commerce_kickstart/commerce_kickstart_block/commerce_kickstart_block.module
@@ -30,6 +30,11 @@ function commerce_kickstart_block_block_info() {
'weight' => '0',
'cache' => DRUPAL_CACHE_PER_ROLE,
);
+ $blocks['proudly_built_by_cg'] = array(
+ 'info' => t('Proudly built by Commerce Guys'),
+ 'weight' => '0',
+ 'cache' => DRUPAL_CACHE_PER_ROLE,
+ );
return $blocks;
}
@@ -67,6 +72,14 @@ function commerce_kickstart_block_block_view($delta = '') {
$content = t('Powered by Drupal Commerce', array('@url' => 'http://www.drupalcommerce.org'));
$block['content'] = commerce_kickstart_block_build_element($content, 'powered_by_drupal_commerce');
break;
+
+ case 'proudly_built_by_cg':
+ $items = array(
+ commerce_kickstart_block_build_element(t('Proudly built by'), 'footer-credit-message', 'message', 'div'),
+ commerce_kickstart_block_build_element(t('Commerce Guys', array('@url' => 'http://www.commerceguys.com')), 'footer-credit-logo', 'logo', 'div'),
+ );
+ $block['content'] = commerce_kickstart_block_build_element(implode(' ', $items), 'credit', 'clearfix', 'div');
+ break;
}
return $block;
}