Skip to content

Commit

Permalink
design updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jdsimcoe committed Aug 29, 2012
1 parent 0b42114 commit 75185d0
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
);

public $dsParamINCLUDEDELEMENTS = array(
'passage'
'passage',
'tags: description'
);


Expand All @@ -35,11 +36,11 @@ public function about(){
return array(
'name' => 'Verses: Entries by tag',
'author' => array(
'name' => 'Kirk Strobeck',
'website' => 'http://72.10.33.203',
'email' => 'kirk@strobeck.com'),
'name' => 'Jonathan Simcoe',
'website' => 'http://atheycreek',
'email' => 'jdsimcoe@gmail.com'),
'version' => 'Symphony 2.2.5',
'release-date' => '2012-05-24T21:10:36+00:00'
'release-date' => '2012-08-29T21:38:43+00:00'
);
}

Expand Down
76 changes: 76 additions & 0 deletions www/httpdocs/workspace/data-sources/data.verses_entry_by_id.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<?php

require_once(TOOLKIT . '/class.datasource.php');

Class datasourceverses_entry_by_id extends Datasource{

public $dsParamROOTELEMENT = 'verses-entry-by-id';
public $dsParamORDER = 'desc';
public $dsParamPAGINATERESULTS = 'yes';
public $dsParamLIMIT = '1';
public $dsParamSTARTPAGE = '1';
public $dsParamREDIRECTONEMPTY = 'no';
public $dsParamSORT = 'system:id';
public $dsParamHTMLENCODE = 'yes';
public $dsParamASSOCIATEDENTRYCOUNTS = 'no';

public $dsParamFILTERS = array(
'id' => '{$pt1:43}',
'211' => 'no',
);

public $dsParamINCLUDEDELEMENTS = array(
'passage',
'tags: description'
);


public function __construct(&$parent, $env=NULL, $process_params=true){
parent::__construct($parent, $env, $process_params);
$this->_dependencies = array();
}

public function about(){
return array(
'name' => 'Verses: Entry by ID',
'author' => array(
'name' => 'Jonathan Simcoe',
'website' => 'http://atheycreek',
'email' => 'jdsimcoe@gmail.com'),
'version' => 'Symphony 2.2.5',
'release-date' => '2012-08-29T21:52:45+00:00'
);
}

public function getSource(){
return '4';
}

public function allowEditorToParse(){
return true;
}

public function grab(&$param_pool=NULL){
$result = new XMLElement($this->dsParamROOTELEMENT);

try{
include(TOOLKIT . '/data-sources/datasource.section.php');
}
catch(FrontendPageNotFoundException $e){
// Work around. This ensures the 404 page is displayed and
// is not picked up by the default catch() statement below
FrontendPageNotFoundExceptionHandler::render($e);
}
catch(Exception $e){
$result->appendChild(new XMLElement('error', $e->getMessage()));
return $result;
}

if($this->_force_empty_result) $result = $this->emptyXMLSet();



return $result;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function about(){
'website' => 'http://atheycreek',
'email' => 'jdsimcoe@gmail.com'),
'version' => 'Symphony 2.2.5',
'release-date' => '2012-08-29T17:25:45+00:00'
'release-date' => '2012-08-29T21:31:38+00:00'
);
}

Expand Down
7 changes: 4 additions & 3 deletions www/httpdocs/workspace/themes/active/css/common.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion www/httpdocs/workspace/themes/active/less/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -506,11 +506,15 @@ h3 {

&.sub, &.sub.active {

* {
letter-spacing: 0;
}

&:hover {
color: darken(@color-mast, 35%);
background: @dropdownBackground;
.border-radius(1px 1px 0 0);
.box-shadow(0 5px 10px rgba(0,0,0,.2));
.box-shadow(0 4px 8px rgba(0,0,0,.1));

a {
color: darken(@color-mast, 35%) !important;
Expand Down Expand Up @@ -546,6 +550,7 @@ h3 {

&:hover .dropdown-menu {
display: block;
.box-shadow(0);
}

.dropdown-menu {
Expand All @@ -558,9 +563,11 @@ h3 {
text-transform: none;
font-size: 14px;
width: 200px;
.box-shadow(0 4px 8px rgba(0,0,0,.1));

li {
display: block;
padding: 5px 10px;

> a {
display: block;
Expand Down

0 comments on commit 75185d0

Please sign in to comment.