本文整理匯總了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>