+ $('.termDefinition dd').each(function(){
+ $(this).replaceWith('
' + $(this).html() + '
');
+ });
+
+ $('.inner-wrapper').before('
');
+
+
+ // Glossary toggle
+ $('.term-list a:not(.active)').click(function() {
+
+ // match each trigger (term link) with its own definition
+ trigger = $(this).attr('href').replace(/#/g, '');
+ defClass = '.terminology .' + trigger;
+
+ // this term definition is already open
+ if ($(this).hasClass('active') ) {
+ $('.term-list a.active').removeClass('active');
+ $('.termDefinition').slideUp();
+ }
+
+ // this term definition is not already open
+ else {
+ // another term definition is open, close it first
+ if ($('.term-list a.active').length > 0) {
+ $('.term-list a.active').removeClass('active');
+ $('.terminology .current-term').removeClass('current-term').slideUp();
+ }
+
+ // add .active class to current trigger
+ $(this).addClass('active');
+
+ // slide down new term definition
+ $(defClass).addClass('current-term').slideDown();
+ }
+ return false;
+ });
+
+ // "Hide button"
+ $('.close-button a').bind('click', function() {
+ $('.term-list a.active').removeClass('active');
+ $('.termDefinition').slideUp();
+ return false;
+ });
+
+ // Equal height for any_vote widget blocks
+ $('#main_content_container .block-any_vote').equalHeight();
+
+});
diff --git a/level_omega/js/jquery.equalHeight.js b/level_omega/js/jquery.equalHeight.js
new file mode 100644
index 0000000..a953610
--- /dev/null
+++ b/level_omega/js/jquery.equalHeight.js
@@ -0,0 +1,58 @@
+/***
+@title:
+Equal Height
+
+@version:
+2.0
+
+@author:
+Andreas Lagerkvist
+
+@date:
+2008-09-16
+
+@url:
+http://andreaslagerkvist.com/jquery/equal-height/
+
+@license:
+http://creativecommons.org/licenses/by/3.0/
+
+@copyright:
+2008 Andreas Lagerkvist (andreaslagerkvist.com)
+
+@requires:
+jquery
+
+@does:
+This plug-in makes HTML-elements equal height by adjusting their min-height CSS properties. Of course IE6 has no clue what min-height means so the plug-in uses height for that crappy old dinosaur.
+
+@howto:
+jQuery('#content, #secondary-content').equalHeight(); would make the elements with IDs 'content' and 'secondary-content' equal height.
+
+@exampleHTML:
+
Hi
+
+
Hi
Bye!
+
+@exampleJS:
+jQuery('#jquery-equal-height-example p').equalHeight();
+***/
+jQuery.fn.equalHeight = function () {
+ var height = 0;
+ var maxHeight = 0;
+
+ // Store the tallest element's height
+ this.each(function () {
+ height = jQuery(this).outerHeight();
+ maxHeight = (height > maxHeight) ? height : maxHeight;
+ });
+
+ // Set element's min-height to tallest element's height
+ return this.each(function () {
+ var t = jQuery(this);
+ var minHeight = maxHeight - (t.outerHeight() - t.height());
+ var property = jQuery.browser.msie && jQuery.browser.version < 7 ? 'height' : 'min-height';
+
+ t.css(property, minHeight + 'px');
+ });
+};
\ No newline at end of file
diff --git a/level_omega/level_omega.info b/level_omega/level_omega.info
index 652b03e..8e7f87c 100644
--- a/level_omega/level_omega.info
+++ b/level_omega/level_omega.info
@@ -15,12 +15,15 @@ stylesheets[all][] = css/grid.css
stylesheets[all][] = css/960.css ; To block out 960s grid and use our own.
stylesheets[all][] = css/jquery-ui.css
stylesheets[all][] = css/static.css
+stylesheets[all][] = css/dev.css
; ------- Declare default javascript includes
scripts[] = js/fb-connect.js
scripts[] = js/superfish.js
+scripts[] = js/jquery.equalHeight.js
+scripts[] = js/dev.js
; ------- Declare default theme regions
diff --git a/level_omega/node-images/accounts_explained/terminology.jpg b/level_omega/node-images/accounts_explained/terminology.jpg
new file mode 100644
index 0000000..aee4063
Binary files /dev/null and b/level_omega/node-images/accounts_explained/terminology.jpg differ
diff --git a/level_omega/node-images/team/advisors.jpg b/level_omega/node-images/team/advisors.jpg
new file mode 100644
index 0000000..ba2b3da
Binary files /dev/null and b/level_omega/node-images/team/advisors.jpg differ
diff --git a/level_omega/node-images/team/ceo.jpg b/level_omega/node-images/team/ceo.jpg
new file mode 100644
index 0000000..c3db70c
Binary files /dev/null and b/level_omega/node-images/team/ceo.jpg differ
diff --git a/level_omega/node-images/team/cmo.jpg b/level_omega/node-images/team/cmo.jpg
new file mode 100644
index 0000000..5449972
Binary files /dev/null and b/level_omega/node-images/team/cmo.jpg differ
diff --git a/level_omega/node-images/team/cto.jpg b/level_omega/node-images/team/cto.jpg
new file mode 100644
index 0000000..15ec5fa
Binary files /dev/null and b/level_omega/node-images/team/cto.jpg differ
diff --git a/level_omega/node-images/team/eden-ventures.jpg b/level_omega/node-images/team/eden-ventures.jpg
new file mode 100644
index 0000000..1e97b6e
Binary files /dev/null and b/level_omega/node-images/team/eden-ventures.jpg differ
diff --git a/level_omega/node-images/team/index-ventures.jpg b/level_omega/node-images/team/index-ventures.jpg
new file mode 100644
index 0000000..f2ef548
Binary files /dev/null and b/level_omega/node-images/team/index-ventures.jpg differ
diff --git a/level_omega/node-images/team/team.jpg b/level_omega/node-images/team/team.jpg
new file mode 100644
index 0000000..32189b3
Binary files /dev/null and b/level_omega/node-images/team/team.jpg differ
diff --git a/level_omega/node-images/work_with_us/how-we-work.jpg b/level_omega/node-images/work_with_us/how-we-work.jpg
new file mode 100644
index 0000000..0279c5d
Binary files /dev/null and b/level_omega/node-images/work_with_us/how-we-work.jpg differ
diff --git a/level_omega/node-images/work_with_us/tech.jpg b/level_omega/node-images/work_with_us/tech.jpg
new file mode 100644
index 0000000..614624c
Binary files /dev/null and b/level_omega/node-images/work_with_us/tech.jpg differ
diff --git a/level_omega/node-images/work_with_us/work-environment.jpg b/level_omega/node-images/work_with_us/work-environment.jpg
new file mode 100644
index 0000000..c14a674
Binary files /dev/null and b/level_omega/node-images/work_with_us/work-environment.jpg differ
diff --git a/level_omega/page-linkedin-register-create.tpl.php b/level_omega/page-linkedin-register-create.tpl.php
new file mode 100644
index 0000000..779267b
--- /dev/null
+++ b/level_omega/page-linkedin-register-create.tpl.php
@@ -0,0 +1,189 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ ';
+ print '
';
+ print '
';
+ // TODO: change this to be just http://levelbusiness.com
+ print '
';
+ }
+ if (arg(1) == 'person') {
+ global $base_root;
+ $path = $base_root . request_uri();
+ print '
';
+ print '
';
+ print '
';
+ // TODO: change this to be just http://levelbusiness.com
+ print '
';
+
+ }
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Please Login so that we can identify the account you want to connect to LinkedIn.
+
+
If you don't yet have a LevelBusiness account to connect to then please register.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/level_omega/page-register.tpl.php b/level_omega/page-register.tpl.php
new file mode 100644
index 0000000..2b4d44b
--- /dev/null
+++ b/level_omega/page-register.tpl.php
@@ -0,0 +1,182 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ ';
+ print '
';
+ print '
';
+ // TODO: change this to be just http://levelbusiness.com
+ print '
';
+ }
+ if (arg(1) == 'person') {
+ global $base_root;
+ $path = $base_root . request_uri();
+ print '
';
+ print '
';
+ print '
';
+ // TODO: change this to be just http://levelbusiness.com
+ print '
';
+
+ }
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/level_omega/page-user.tpl.php b/level_omega/page-user.tpl.php
new file mode 100644
index 0000000..cbe4202
--- /dev/null
+++ b/level_omega/page-user.tpl.php
@@ -0,0 +1,185 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ ';
+ print '
';
+ print '
';
+ // TODO: change this to be just http://levelbusiness.com
+ print '
';
+ }
+ if (arg(1) == 'person') {
+ global $base_root;
+ $path = $base_root . request_uri();
+ print '
';
+ print '
';
+ print '
';
+ // TODO: change this to be just http://levelbusiness.com
+ print '
';
+
+ }
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/level_omega/template.php b/level_omega/template.php
index a40c598..47fb0a4 100644
--- a/level_omega/template.php
+++ b/level_omega/template.php
@@ -122,6 +122,22 @@ function level_omega_preprocess(&$vars, $hook) {
break;
}
+
+ /* Check LinkedIn account associated */
+ /* See linkedin.inc module file linkedin_get_profile_fields() */
+
+ if (module_exists('linkedin')) {
+ global $user;
+
+ $vars['user'] = $user->uid;
+
+ $associated = db_fetch_array(db_query("SELECT * FROM {linkedin_token} WHERE uid = %d AND type = 'access'", $vars['user']));
+ // if drupal account was not associated
+ if (!$associated) {
+ // add js to show dialog box which has link to linkedin
+ drupal_add_js(drupal_get_path('theme', 'level_omega').'/js/linkedin-connect.js', 'theme', 'header');
+ }
+ }
}
@@ -181,6 +197,29 @@ function level_omega_preprocess_block(&$vars, $hook) {
}
+ // any_vote
+ //$vars['vote_value'] = '';
+ //if (module_exists('votingapi')) {
+ //global $vote;
+ //$vars['vote_value'] = votingapi_current_user_identifier();
+ if ($vars['block']->module == 'any_vote') {
+
+ if ((arg(0) == 'node') && is_numeric(arg(1))) {
+
+ //$node = node_load(arg(1));
+ $content_type = $node->type;
+ $content_id = arg(1);
+
+
+ //$vars['vote_value'] = votingapi_recalculate_results($content_type, $content_id, $force_calculation = FALSE);
+
+ $vars['vote_value'] = votingapi_select_single_result_value($criteria = array());
+ }
+ }
+
+
+ //}
+
}
function level_omega_preprocess_views_view_field(&$vars, $hook) {
@@ -225,10 +264,14 @@ function level_omega_preprocess_page(&$vars, $hook) {
elseif (arg(1) == 'person') {
$vars['main_content_attributes']['typeof'] = 'v:Person';
}
-
+
+ // Dynamic insert additional content and change page titles for anonymous user.
+ $vars['obj'] = _level_omega_user_form_elements($vars['obj'] = array(), $vars['title'], $vars['content'], $vars['tabs']);
+
}
+
/**
* Override or insert variables into the node templates.
*
@@ -346,12 +389,70 @@ function level_omega_form_element($element, $value) {
if (!empty($element['#description'])) {
$output .= '
'. $element['#description'] ."
\n";
}
-
- $output .= " $value\n";
-
-
+
+ $output .= "$value\n";
$output .= "
\n";
return $output;
}
+
+/* Override LinkedIn button text to "Login with LinkedIn" */
+function level_omega_linkedin_auth_display_login_block_button($display = NULL, $path = 'linkedin/login/0', $text = 'Login with LinkedIn') {
+ drupal_add_css(drupal_get_path('module', 'linkedin_auth') . '/linkedin_auth.css', 'module');
+ $data = l(t($text), $path);
+ $class = 'linkedin-button';
+ $items[] = array(
+ 'data' => $data,
+ 'class' => $class,
+ );
+ return theme('item_list', $items);
+}
+
+/* Dynamic display page & user form elements */
+function _level_omega_user_form_elements($obj = array(), $title, $content, $tabs) {
+
+ // Get Drupal paths
+ $path = drupal_get_path_alias($_GET['q']);
+
+ // Additional content for login page
+ $login_add_contents = '
+