Skip to content

Commit

Permalink
Merge pull request backdrop-ops#3 from CuBoulder/feature/2
Browse files Browse the repository at this point in the history
Issue backdrop-ops#2: Adding SEO Bundle
  • Loading branch information
kreynen authored Aug 16, 2018
2 parents 417dedb + 1606b58 commit c568acc
Show file tree
Hide file tree
Showing 411 changed files with 36,647 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ sites/*/settings*.php
/private
sites/*/files
sites/*/private

# IntelliJ files
*.idea
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"_config_name": "cu_dashboard_seo.settings",
"checklist_google_analytics": 0
}
19 changes: 19 additions & 0 deletions modules/cu_seo_bundle/cu_dashboard_seo/css/cu-dashboard-seo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.seo-checklist-item {
margin-bottom: 20px;
border:1px solid #e7e7e7;
padding:10px;
}
.seo-dashboard-container .fa-times {
color: #e51c23;
}

.seo-dashboard-container .fa-check {
color: #1D881A;
}

.seo-checklist-item h3 {
margin-bottom: 10px;
}
.seo-checklist-item p:last-child {
margin-bottom: 0;
}
9 changes: 9 additions & 0 deletions modules/cu_seo_bundle/cu_dashboard_seo/cu_dashboard_seo.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name = CU SEO Dashboard
description = Adds a SEO dashbaord
package = SEO
type = module
backdrop = 1.x

dependencies[] = express_dashboards

stylesheets[all][] = css/cu-dashboard-seo.css
16 changes: 16 additions & 0 deletions modules/cu_seo_bundle/cu_dashboard_seo/cu_dashboard_seo.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

/**
* @file
* Install hooks for the cu_dashboard_seo module.
*/

/**
* Implements hook_install().
*/
function cu_dashboard_seo_install() {
// Set cu_seo_checklist_google_analytics variable.
if (config_get('googleanalytics.settings', 'account') !== 'UA-') {
config_set('cu_dashboard_seo.settings', 'checklist_google_analytics', 1);
}
}
Loading

0 comments on commit c568acc

Please sign in to comment.