Merge pull request #568 from marc1706/ticket/527

[ticket/527] Move calendar arrow icons to styles/all/
This commit is contained in:
Marc Alexander
2015-06-05 10:56:07 +02:00
7 changed files with 34 additions and 2 deletions

View File

@@ -188,8 +188,8 @@ class calendar extends module_base
// output our general calendar bits // output our general calendar bits
$down = $this->mini_cal_month - 1; $down = $this->mini_cal_month - 1;
$up = $this->mini_cal_month + 1; $up = $this->mini_cal_month + 1;
$prev_month = '<a href="' . $this->modules_helper->route('board3_portal_controller') . "?m$module_id=$down#minical$module_id" . '" rel="nofollow"><img src="' . $this->portal_root_path . 'styles/' . $this->user->style['style_path'] . '/theme/images/portal/cal_icon_left_arrow.png' . '" title="' . $this->user->lang['VIEW_PREVIOUS_MONTH'] . '" height="16" width="16" alt="&lt;&lt;" /></a>'; $prev_month = '<a href="' . $this->modules_helper->route('board3_portal_controller') . "?m$module_id=$down#minical$module_id" . '" rel="nofollow"><span class="portal-arrow-left-icon" title="' . $this->user->lang['VIEW_PREVIOUS_MONTH'] . '"></span></a>';
$next_month = '<a href="' . $this->modules_helper->route('board3_portal_controller') . "?m$module_id=$up#minical$module_id" . '" rel="nofollow"><img src="' . $this->portal_root_path . 'styles/' . $this->user->style['style_path'] . '/theme/images/portal/cal_icon_right_arrow.png' . '" title="' . $this->user->lang['VIEW_NEXT_MONTH'] . '" height="16" width="16" alt="&gt;&gt;" /></a>'; $next_month = '<a href="' . $this->modules_helper->route('board3_portal_controller') . "?m$module_id=$up#minical$module_id" . '" rel="nofollow"><span class="portal-arrow-right-icon" title="' . $this->user->lang['VIEW_NEXT_MONTH'] . '"></span></a>';
$this->template->assign_block_vars('minical', array( $this->template->assign_block_vars('minical', array(
'S_SUNDAY_FIRST' => ($this->config['board3_sunday_first_' . $module_id]) ? true : false, 'S_SUNDAY_FIRST' => ($this->config['board3_sunday_first_' . $module_id]) ? true : false,

View File

Before

Width:  |  Height:  |  Size: 744 B

After

Width:  |  Height:  |  Size: 744 B

View File

Before

Width:  |  Height:  |  Size: 676 B

After

Width:  |  Height:  |  Size: 676 B

View File

@@ -63,6 +63,22 @@
float: right; float: right;
} }
.portal-arrow-left-icon {
background-image: url('../../all/theme/images/portal/cal_icon_left_arrow.png');
padding-left: 16px;
padding-top: 16px;
float: left;
margin-bottom: 2px;
}
.portal-arrow-right-icon {
background-image: url('../../all/theme/images/portal/cal_icon_right_arrow.png');
padding-left: 16px;
padding-top: 16px;
float: right;
margin-bottom: 2px;
}
.portal-user-span { .portal-user-span {
float: left; float: left;
padding-left: 5px; padding-left: 5px;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 744 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 676 B

View File

@@ -204,3 +204,19 @@
padding-top: 16px; padding-top: 16px;
margin-bottom: 2px; margin-bottom: 2px;
} }
.portal-arrow-left-icon {
background-image: url('../../all/theme/images/portal/cal_icon_left_arrow.png');
padding-left: 16px;
padding-top: 16px;
float: left;
margin-bottom: 2px;
}
.portal-arrow-right-icon {
background-image: url('../../all/theme/images/portal/cal_icon_right_arrow.png');
padding-left: 16px;
padding-top: 16px;
float: right;
margin-bottom: 2px;
}