forked from concretecms/concretecms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging grid framework updates, adding foundation
- Loading branch information
Showing
3 changed files
with
93 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
web/concrete/src/Page/Theme/GridFramework/Type/Foundation.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<?php | ||
namespace Concrete\Core\Page\Theme\GridFramework\Type; | ||
|
||
use Concrete\Core\Page\Theme\GridFramework\GridFramework; | ||
|
||
defined('C5_EXECUTE') or die(_("Access Denied.")); | ||
|
||
class Foundation extends GridFramework | ||
{ | ||
|
||
public function getPageThemeGridFrameworkName() | ||
{ | ||
return t('Foundation'); | ||
} | ||
|
||
public function getPageThemeGridFrameworkRowStartHTML() | ||
{ | ||
return '<div class="row">'; | ||
} | ||
|
||
public function getPageThemeGridFrameworkRowEndHTML() | ||
{ | ||
return '</div>'; | ||
} | ||
|
||
public function getPageThemeGridFrameworkContainerStartHTML() | ||
{ | ||
return ''; | ||
} | ||
|
||
public function getPageThemeGridFrameworkContainerEndHTML() | ||
{ | ||
return ''; | ||
} | ||
|
||
public function getPageThemeGridFrameworkColumnClasses() | ||
{ | ||
$columns = array( | ||
'small-1 ', | ||
'small-2 ', | ||
'small-3', | ||
'small-4', | ||
'small-5', | ||
'small-6', | ||
'small-7', | ||
'small-8', | ||
'small-9', | ||
'small-10', | ||
'small-11', | ||
'small-12', | ||
); | ||
return $columns; | ||
} | ||
|
||
public function getPageThemeGridFrameworkColumnOffsetClasses() | ||
{ | ||
$offsets = array( | ||
'small-offset-1', | ||
'small-offset-2', | ||
'small-offset-3', | ||
'small-offset-4', | ||
'small-offset-5', | ||
'small-offset-6', | ||
'small-offset-7', | ||
'small-offset-8', | ||
'small-offset-9', | ||
'small-offset-10', | ||
'small-offset-11', | ||
'small-offset-12', | ||
); | ||
return $offsets; | ||
} | ||
|
||
public function getPageThemeGridFrameworkColumnAdditionalClasses() | ||
{ | ||
return 'columns'; | ||
} | ||
|
||
public function getPageThemeGridFrameworkColumnOffsetAdditionalClasses() | ||
{ | ||
return 'columns'; | ||
} | ||
|
||
} |