summaryrefslogtreecommitdiff
path: root/www/crm/wp-content/uploads/civicrm/templates_c/es_ES/%%3C/3CB/3CB281B1%%Blog.tpl.php
blob: 17b147bd689b05bcd11a250fdd9be98a4a8d4986 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php /* Smarty version 2.6.31, created on 2019-08-30 20:23:49
         compiled from CRM/Dashlet/Page/Blog.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'crmScope', 'CRM/Dashlet/Page/Blog.tpl', 1, false),array('block', 'ts', 'CRM/Dashlet/Page/Blog.tpl', 68, false),array('modifier', 'escape', 'CRM/Dashlet/Page/Blog.tpl', 52, false),array('modifier', 'strip_tags', 'CRM/Dashlet/Page/Blog.tpl', 64, false),array('modifier', 'mb_substr', 'CRM/Dashlet/Page/Blog.tpl', 64, false),)), $this); ?>
<?php $this->_tag_stack[] = array('crmScope', array('extensionKey' => "")); $_block_repeat=true;smarty_block_crmScope($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><?php echo ''; ?><?php echo '
<style type="text/css">
  #civicrm-news-feed {
    border: 0 none;
  }
  #civicrm-news-feed .collapsed .crm-accordion-header {
    text-overflow: ellipsis;
    text-wrap: none;
    white-space: nowrap;
    overflow: hidden;
  }
  #civicrm-news-feed .crm-news-feed-item-preview {
    color: #8d8d8d;
    display: none;
  }
  #civicrm-news-feed .collapsed .crm-news-feed-item-preview {
    display: inline;
  }
  #civicrm-news-feed .crm-news-feed-item-link {
    margin-bottom: 0;
  }
</style>
'; ?><?php echo '<div id="civicrm-news-feed"><ul>'; ?><?php $_from = $this->_tpl_vars['feeds']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['channel']):
?><?php echo '<li class="ui-corner-all crm-tab-button" title="'; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['channel']['description'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?><?php echo '"><a href="#civicrm-news-feed-'; ?><?php echo $this->_tpl_vars['channel']['name']; ?><?php echo '">'; ?><?php echo $this->_tpl_vars['channel']['title']; ?><?php echo '</a></li>'; ?><?php endforeach; endif; unset($_from); ?><?php echo '</ul>'; ?><?php $_from = $this->_tpl_vars['feeds']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['channel']):
?><?php echo '<div id="civicrm-news-feed-'; ?><?php echo $this->_tpl_vars['channel']['name']; ?><?php echo '">'; ?><?php $_from = $this->_tpl_vars['channel']['items']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['article']):
?><?php echo '<div class="crm-accordion-wrapper collapsed"><div class="crm-accordion-header"><span class="crm-news-feed-item-title">'; ?><?php echo $this->_tpl_vars['article']['title']; ?><?php echo '</span><span class="crm-news-feed-item-preview"> - '; ?><?php if (function_exists ( 'mb_substr' )): ?><?php echo ''; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['article']['description'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)))) ? $this->_run_mod_handler('mb_substr', true, $_tmp, 0, 100) : mb_substr($_tmp, 0, 100)); ?><?php echo ''; ?><?php else: ?><?php echo ''; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['article']['description'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)); ?><?php echo ''; ?><?php endif; ?><?php echo '</span></div><div class="crm-accordion-body"><div>'; ?><?php echo $this->_tpl_vars['article']['description']; ?><?php echo '</div><p class="crm-news-feed-item-link"><a target="_blank" href="'; ?><?php echo $this->_tpl_vars['article']['link']; ?><?php echo '" title="'; ?><?php echo ((is_array($_tmp=$this->_tpl_vars['article']['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?><?php echo '"><i class="crm-i fa-external-link"></i> '; ?><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><?php echo 'read more'; ?><?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?><?php echo '…</a></p></div></div>'; ?><?php endforeach; endif; unset($_from); ?><?php echo '</div>'; ?><?php endforeach; endif; unset($_from); ?><?php echo ''; ?><?php if (! $this->_tpl_vars['feeds']): ?><?php echo '<div class="messages status no-popup"><div class="icon inform-icon"></div>'; ?><?php $this->_tag_stack[] = array('ts', array()); $_block_repeat=true;smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><?php echo 'Sorry but we are not able to provide this at the moment.'; ?><?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?><?php echo '</div>'; ?><?php endif; ?><?php echo '</div></div>'; ?><?php echo '<script type="text/javascript">
  (function($, _) {
    $(function() {
      $(\'#civicrm-news-feed\').tabs();
      if (window.localStorage) {
        var opened = localStorage.newsFeed ? JSON.parse(localStorage.newsFeed) : {};
        $(\'#civicrm-news-feed ul.ui-tabs-nav a\').each(function() {
          var
            $tab = $(this),
            href = $tab.attr(\'href\'),
            $content = $(href),
            $items = $(\'.crm-accordion-wrapper\', $content),
            key = href.substring(19),
            count = 0;
          if (!opened[key]) opened[key] = [];
          if ($items.length) {
            $items.each(function () {
              var itemKey = $(\'.crm-news-feed-item-link a\', this).attr(\'href\');
              if ($.inArray(itemKey, opened[key]) < 0) {
                $(\'.crm-news-feed-item-title\', this).css(\'font-weight\', \'bold\');
                ++count;
                $(this).one(\'crmAccordion:open\', function () {
                  $(\'.crm-news-feed-item-title\', this).css(\'font-weight\', \'\');
                  $(\'em\', $tab).text(--count);
                  if (!count) {
                    $(\'em\', $tab).remove();
                  }
                  opened[key].push(itemKey);
                  localStorage.newsFeed = JSON.stringify(opened);
                });
              }
            });
            if (count) {
              $tab.html($tab.text() + \' <em>\' + count + \'</em>\');
            }
            // Remove items from localstorage that are no longer in the current feed
            $.each(opened[key], function(i, itemKey) {
              if (!$(\'a[href="\' + itemKey + \'"]\', $content).length) {
                opened[key][i] = null;
              }
            });
            _.remove(opened[key], function(n) {return !n});
          }
        });
      }
    });
  })(CRM.$, CRM._);
</script>'; ?><?php echo ''; ?>

<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_crmScope($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>