当前位置: 首页>>代码示例>>PHP>>正文


PHP app::setCssForEmailContent方法代码示例

本文整理汇总了PHP中app::setCssForEmailContent方法的典型用法代码示例。如果您正苦于以下问题:PHP app::setCssForEmailContent方法的具体用法?PHP app::setCssForEmailContent怎么用?PHP app::setCssForEmailContent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在app的用法示例。


在下文中一共展示了app::setCssForEmailContent方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: replaceTextToLinks

          <td style="vertical-align: top; font-family:  Arial; font-size: 13px; color: black; padding: 2px; border-bottom:1px dashed LightGray">
            <?php 
    echo replaceTextToLinks($c->getDescription());
    ?>
            <div><?php 
    include_component('attachments', 'attachmentsList', array('bind_type' => 'discussionsComments', 'bind_id' => $c->getId()));
    ?>
</div>
            <div><?php 
    include_component('discussionsComments', 'info', array('c' => $c));
    ?>
</div>
          </td>
          <td style="width:25%; vertical-align: top; font-family:  Arial; font-size: 13px; color: black; padding: 2px; border-bottom:1px dashed LightGray"><?php 
    echo app::dateTimeFormat($c->getCreatedAt()) . '<br>' . $c->getUsers()->getName() . '<br>' . renderUserPhoto($c->getUsers()->getPhoto());
    ?>
</td>      
        </tr>      
    <?php 
}
?>
    </table>
  </td>
  <td width="30%" valign="top">            
      <?php 
echo app::setCssForEmailContent('<div>' . get_component('discussions', 'details', array('discussions' => $discussions, 'is_email' => true)) . '</div>');
?>
    
  </td>
</tr>
</table>
开发者ID:noikiy,项目名称:qdpm,代码行数:31,代码来源:_emailBody.php

示例2: link_to

<?php

echo app::setCssForEmailContent('<h1>' . link_to($projects->getName(), 'projectsComments/index?projects_id=' . $projects->getId(), array('absolute' => true)) . '</h1>');
?>

<table width="100%">
<tr>
  <td style="vertical-align: top; font-family:  Arial; font-size: 13px; color: black; padding: 2px;">
    <?php 
echo replaceTextToLinks($projects->getDescription());
?>
<br>
    <?php 
include_component('attachments', 'attachmentsList', array('bind_type' => 'projects', 'bind_id' => $projects->getId()));
?>
  </td>
  <td width="30%" valign="top">            
      <?php 
echo app::setCssForEmailContent('<div>' . get_component('projects', 'details', array('projects' => $projects)) . '</div>');
?>
    
  </td>
</tr>
</table>
开发者ID:noikiy,项目名称:qdpm,代码行数:24,代码来源:_emailBody.php

示例3: link_to

<?php

echo app::setCssForEmailContent('<h1>' . link_to($tasks->getProjects()->getName(), 'projectsComments/index?projects_id=' . $tasks->getProjectsId(), array('absolute' => true)) . ': ' . link_to($tasks->getName(), 'tasksComments/index?projects_id=' . $tasks->getProjectsId() . '&tasks_id=' . $tasks->getId(), array('absolute' => true)) . '</h1>');
?>

<table width="100%">
<tr>
  <td style="vertical-align: top; font-family:  Arial; font-size: 13px; color: black; padding: 2px;">
    <?php 
echo replaceTextToLinks($tasks->getDescription());
?>
<br>
    <?php 
include_component('attachments', 'attachmentsList', array('bind_type' => 'tasks', 'bind_id' => $tasks->getId()));
?>
  </td>
  <td width="30%" valign="top">            
      <?php 
echo app::setCssForEmailContent('<div>' . get_component('tasks', 'details', array('tasks' => $tasks, 'is_email' => true)) . '</div>');
?>
    
  </td>
</tr>
</table>
开发者ID:noikiy,项目名称:qdpm,代码行数:24,代码来源:_emailBody.php


注:本文中的app::setCssForEmailContent方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。