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


PHP NewsletterControls::media方法代码示例

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


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

示例1:

                <table class="form-table">
                    <tr valign="top">
                        <th>
                            Header logo
                    <div class="tnp-tip">
                        <span class="tip-button">Tip</span>
                        <span class="tip-content">
                            Keep the file lightweight and ideally smaller than 500px in width and 200px in height.
                            Remember that .png images provide best performances with text and shapes logos.
                        </span>
                    </div>
                    </th>
                    <td>
                        <?php 
$controls->media('header_logo');
?>
                        <p class="description">
                            Click to change. This should be your logo in .png or .jpg format.
                        </p>
                    </td>
                    </tr>
                    <tr>
                        <th>Header title</th>
                        <td>
                            <?php 
$controls->text('header_title', 40);
?>
                            <p class="description">Appears only when no logo has been uploaded or when it's blocked by email clients.</p>
                        </td>
                    </tr>
开发者ID:jekv,项目名称:devia,代码行数:30,代码来源:main.php

示例2:

                <table class="form-table">
                    <tr valign="top">
                        <th>
                            Header logo
                    <div class="tnp-tip">
                        <span class="tip-button">Tip</span>
                        <span class="tip-content">
                            This image will be placed on top of email templates as-is, eventually stretched to
                            match the template width.
                        </span>
                    </div>
                    </th>
                    <td>
                        <?php 
$controls->media('header_logo', 'full');
?>
                        <p class="description">
                            Click to change. This should be your logo in .png or .jpg format. The image shown is a resized preview.
                        </p>
                    </td>
                    </tr>
                    <tr>
                        <th>Header title</th>
                        <td>
                            <?php 
$controls->text('header_title', 40);
?>
                            <p class="description">Appears only when no logo has been uploaded or when it's blocked by email clients.</p>
                        </td>
                    </tr>
开发者ID:lenguyenitc,项目名称:donations,代码行数:30,代码来源:main.php

示例3:

                <table class="form-table">
                    <tr valign="top">
                        <th>
                            Logo
                    <div class="tnp-tip">
                        <span class="tip-button">Tip</span>
                        <span class="tip-content">
                            Keep the file lightweight and ideally smaller than 500px in width and 200px in height.
                            Remember that .png images provide best performances with text and shapes logos.
                        </span>
                    </div>
                    </th>
                    <td>
                        <?php 
$controls->media('header_logo', 'medium');
?>
                        <p class="description">
                            Click to change. This should be your logo in .png or .jpg format.
                        </p>
                    </td>
                    </tr>
                    <tr>
                        <th>Title</th>
                        <td>
                            <?php 
$controls->text('header_title', 40);
?>
                            <p class="description">Appears only when no logo has been uploaded or when it's blocked by email clients.</p>
                        </td>
                    </tr>
开发者ID:ilke-zilci,项目名称:newcomers-wp,代码行数:30,代码来源:info.php


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