本文整理汇总了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>
示例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>
示例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>