Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | {* |
2 | +--------------------------------------------------------------------+ | |
2c4c49ca | 3 | | CiviCRM version 4.7 | |
6a488035 | 4 | +--------------------------------------------------------------------+ |
fa938177 | 5 | | Copyright CiviCRM LLC (c) 2004-2016 | |
6a488035 TO |
6 | +--------------------------------------------------------------------+ |
7 | | This file is a part of CiviCRM. | | |
8 | | | | |
9 | | CiviCRM is free software; you can copy, modify, and distribute it | | |
10 | | under the terms of the GNU Affero General Public License | | |
11 | | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. | | |
12 | | | | |
13 | | CiviCRM is distributed in the hope that it will be useful, but | | |
14 | | WITHOUT ANY WARRANTY; without even the implied warranty of | | |
15 | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | | |
16 | | See the GNU Affero General Public License for more details. | | |
17 | | | | |
18 | | You should have received a copy of the GNU Affero General Public | | |
19 | | License and the CiviCRM Licensing Exception along | | |
20 | | with this program; if not, contact CiviCRM LLC | | |
21 | | at info[AT]civicrm[DOT]org. If you have questions about the | | |
22 | | GNU Affero General Public License or the licensing of CiviCRM, | | |
23 | | see the CiviCRM license FAQ at http://civicrm.org/licensing | | |
24 | +--------------------------------------------------------------------+ | |
25 | *} | |
d383174a CW |
26 | {strip}{literal} |
27 | <style type="text/css"> | |
28 | #civicrm-blog-feed .collapsed .crm-accordion-header { | |
29 | text-overflow: ellipsis; | |
30 | text-wrap: none; | |
31 | white-space: nowrap; | |
32 | overflow: hidden; | |
33 | } | |
34 | #civicrm-blog-feed .crm-blog-preview { | |
35 | color: #8d8d8d; | |
36 | display: none; | |
37 | } | |
38 | #civicrm-blog-feed .collapsed .crm-blog-preview { | |
39 | display: inline; | |
40 | } | |
41 | </style> | |
42 | {/literal} | |
6a488035 | 43 | <div id="civicrm-blog-feed"> |
d383174a | 44 | {foreach from=$blog item=article} |
6a488035 | 45 | <div class="crm-accordion-wrapper collapsed"> |
d383174a CW |
46 | <div class="crm-accordion-header"> |
47 | <span class="crm-blog-title">{$article.title}</span> | |
48 | <span class="crm-blog-preview"> - {$article.description|strip_tags|substr:0:100}…</span> | |
49 | </div> | |
50 | <div class="crm-accordion-body"> | |
6a488035 | 51 | <div>{$article.description}</div> |
d383174a | 52 | <div><a target="_blank" href="{$article.link}" title="{$article.title}"><i class="crm-i fa-external-link"></i> {ts}read more{/ts}…</a></div> |
6a488035 TO |
53 | </div> |
54 | </div> | |
6a488035 | 55 | {/foreach} |
d383174a CW |
56 | </div> |
57 | {/strip} |