本文整理汇总了PHP中NewsletterControls::errors方法的典型用法代码示例。如果您正苦于以下问题:PHP NewsletterControls::errors方法的具体用法?PHP NewsletterControls::errors怎么用?PHP NewsletterControls::errors使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NewsletterControls
的用法示例。
在下文中一共展示了NewsletterControls::errors方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: newsletter_get_theme_file
$newsletter->send($email, $users);
}
}
$options_main = get_option('newsletter_main', array());
$options_profile = get_option('newsletter_profile', array());
$lists = array('0' => 'To all subscribers', '-1' => 'To WordPress users');
for ($i = 1; $i <= 9; $i++) {
$lists['' . $i] = '(' . $i . ') ' . $options_profile['list_' . $i];
}
// Themes
$themes[''] = 'Packaged themes';
$themes['blank'] = 'Empty email';
$themes['theme-1'] = 'Newsletter theme 1';
//$themes['theme-2'] = 'Newsletter theme 2';
$themes['theme-3'] = 'Newsletter theme 3';
$nc->errors($errors);
$nc->messages($messages);
function newsletter_get_theme_file($theme)
{
if ($theme[0] == '*') {
$file = ABSPATH . 'wp-content/plugins/newsletter-custom/themes/' . substr($theme, 1) . '/theme.php';
} else {
$file = dirname(__FILE__) . '/themes/' . $theme . '/theme.php';
}
}
function newsletter_get_theme_css_url($theme)
{
if ($theme[0] == '*') {
$file = 'newsletter-custom/themes/' . substr($theme, 1) . '/style.css';
} else {
$file = 'newsletter/themes/' . $theme . '/style.css';