-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
246 additions
and
33 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<div class="media media_card" <?php if (!empty($css_id)) { print "id=\"$css_id\""; } ?>> | ||
|
||
<?php if (!empty($content['media_left'])): ?> | ||
<div class="media-left"> | ||
<?php print $content['media_left']; ?> | ||
</div> | ||
<?php endif; ?> | ||
|
||
<div class="media-body"> | ||
<?php if (!empty($content['media_heading'])): ?> | ||
<div class="media-heading"> | ||
<?php print $content['media_heading']; ?> | ||
</div> | ||
<?php endif; ?> | ||
|
||
<?php if (!empty($content['media_body'])): ?> | ||
<div class="media-body"> | ||
<?php print $content['media_body']; ?> | ||
</div> | ||
<?php endif; ?> | ||
</div> | ||
</div> |
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,22 @@ | ||
<?php | ||
|
||
/** | ||
* Implements hook_panels_layouts(). | ||
*/ | ||
function suitcase_interim_media_card_panels_layouts() { | ||
$items['media_card'] = array( | ||
'title' => t('Media Card'), | ||
'category' => t('Suitcase: Media Card'), | ||
'icon' => 'media_card.jpg', | ||
'theme' => 'media_card', | ||
'admin css' => 'media_card_admin.css', | ||
'regions' => array( | ||
'media_left' => t('Left'), | ||
'media_heading' => t('Heading'), | ||
'media_body' => t('Body'), | ||
), | ||
); | ||
return $items; | ||
} | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,35 @@ | ||
.media { | ||
/* Overrides blog_blog.css */ | ||
display: flex !important; | ||
align-items: center; | ||
margin-bottom: 1rem; | ||
margin-right: 1rem; | ||
} | ||
|
||
.media.media_card { | ||
wdith: 100%; | ||
margin-top: 0.5rem; | ||
margin-bottom: 0.5rem; | ||
align-items: flex-start; | ||
} | ||
|
||
.media-left { | ||
min-width: 250px; | ||
flex: 0 0 auto; | ||
margin-right: 1rem; | ||
margin-bottom: 0.5rem; | ||
padding: 0; | ||
} | ||
|
||
.media-left img { | ||
border: 1px solid #ddd; | ||
} | ||
|
||
.media-body { | ||
flex-grow: 1; | ||
} | ||
|
||
.media-heading { | ||
margin-top: 0; | ||
margin-bottom: 0; | ||
} |
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,12 @@ | ||
<?php | ||
|
||
/* | ||
* Implements THEMENAME_alpha_preprocess_block | ||
*/ | ||
function suitcase_interim_alpha_preprocess_block(&$vars) { | ||
// Support aria-labelledby | ||
if ($vars['block']->subject) { | ||
$vars['title_attributes_array']['id'] = drupal_html_id($vars['block']->subject); | ||
$vars['attributes_array']['aria-labelledby'] = $vars['title_attributes_array']['id']; | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
/** | ||
* @file | ||
* Template file for the example display. | ||
* | ||
* Variables available: | ||
* | ||
* $plugin: The pager plugin object. This contains the view. | ||
* | ||
* $plugin->view | ||
* The view object for this navigation. | ||
* | ||
* $nav_title | ||
* The formatted title for this view. In the case of block | ||
* views, it will be a link to the full view, otherwise it will | ||
* be the formatted name of the year, month, day, or week. | ||
* | ||
* $prev_url | ||
* $next_url | ||
* Urls for the previous and next calendar pages. The links are | ||
* composed in the template to make it easier to change the text, | ||
* add images, etc. | ||
* | ||
* $prev_options | ||
* $next_options | ||
* Query strings and other options for the links that need to | ||
* be used in the l() function, including rel=nofollow. | ||
*/ | ||
?> | ||
<?php if (!empty($pager_prefix)) : ?> | ||
<?php print $pager_prefix; ?> | ||
<?php endif; ?> | ||
<div class="date-nav-wrapper clearfix<?php if (!empty($extra_classes)): print $extra_classes; endif; ?>"> | ||
<div class="date-nav item-list"> | ||
<div class="date-heading"> | ||
<h1><?php print $nav_title ?></h1> | ||
</div> | ||
<ul class="pager"> | ||
<?php if (!empty($prev_url)) : ?> | ||
<li class="date-prev"> | ||
<?php | ||
$text = '«'; | ||
$text .= $mini ? '' : ' ' . t('Prev', array(), array('context' => 'date_nav')); | ||
print l(t($text), $prev_url, $prev_options); | ||
?> | ||
</li> | ||
<?php endif; ?> | ||
<?php if (!empty($next_url)) : ?> | ||
<li class="date-next"> | ||
<?php print l(($mini ? '' : t('Next', array(), array('context' => 'date_nav')) . ' ') . '»', $next_url, $next_options); ?> | ||
</li> | ||
<?php endif; ?> | ||
</ul> | ||
</div> | ||
</div> |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<ul class="menu"> | ||
<li class="first leaf"> | ||
<a href="<?php print (module_exists('token_filter') ? '[site:url]' : $GLOBALS['base_path']); ?>site-index"><i class="fa fa-list-ul" aria-hidden="true"></i>Site Index</a> | ||
<a href="<?php print (module_exists('token_filter') ? '[site:url]' : $GLOBALS['base_path']); ?>site-index"><span class="fa fa-list-ul" aria-hidden="true"></span>Site Index</a> | ||
</li> | ||
<li class="last leaf"> | ||
<a href="<?php print (module_exists('token_filter') ? '[site:url]' : $GLOBALS['base_path']); ?>sitemap" title="Display a site map with RSS feeds."><i class="fa fa-sitemap" aria-hidden="true"></i>Site map</a> | ||
<a href="<?php print (module_exists('token_filter') ? '[site:url]' : $GLOBALS['base_path']); ?>sitemap" title="Display a site map with RSS feeds."><span class="fa fa-sitemap" aria-hidden="true"></span>Site map</a> | ||
</li> | ||
</ul> |
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
Oops, something went wrong.