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


PHP MailChimp::get方法代码示例

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


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

示例1: subscribeCount

 public function subscribeCount()
 {
     $MailChimp = new MailChimp($this->api_key);
     $params = ['fields' => 'stats.member_count'];
     $result = $MailChimp->get('lists/' . $this->list_key, ['fields' => 'id,name,stats.member_count']);
     return JsonResponse::create($result);
 }
开发者ID:bakgat,项目名称:klimtoren-portal,代码行数:7,代码来源:MailChimpController.php

示例2: sssoon_admin_settings

/**
 * Create the options page
 */
function sssoon_admin_settings()
{
    global $select_options, $radio_options;
    if (!isset($_REQUEST['settings-updated'])) {
        $_REQUEST['settings-updated'] = false;
    }
    ?>
    <div class="wrap">

        <h2 class="wpmm-title"><?php 
    _e('Coming Sssoon Page', 'soon');
    ?>
</h2>

        <?php 
    if (false !== $_REQUEST['settings-updated']) {
        ?>
            <div class="updated fade"><p><strong><?php 
        _e('Options saved', 'sssoon');
        ?>
</strong></p></div>
        <?php 
    }
    ?>

        <div class="nav-tab-wrapper">
            <a class="nav-tab nav-tab-active" href="#general"><?php 
    _e('General Settings', 'sssoon');
    ?>
</a>
            <a class="nav-tab" href="#content"><?php 
    _e('Page Content', 'sssoon');
    ?>
</a>
            <a class="nav-tab" href="#design"><?php 
    _e('Design Page', 'sssoon');
    ?>
</a>
            <a class="nav-tab" href="#maillist"><?php 
    _e('Mail List Options', 'sssoon');
    ?>
</a>
        </div>

        <div class="wpmm-wrapper">
            <div id="content" class="wrapper-cell">
                <div class="tabs-content">
                    <div id="tab-general" class="">
                        <form method="post" id="genralform" action="options.php">
                            <?php 
    settings_fields('sssoon_general');
    ?>
                            <?php 
    $options = get_option('sssoon_options_settings');
    ?>

                            <table class="form-table">
                                <tr valign="top">
                                    <th scope="row"><?php 
    _e('Mode', 'sssoon');
    ?>
</th>
                                    <td>
                                        <fieldset>
                                            <legend class="screen-reader-text">
                                                <span><?php 
    _e('Radio buttons', 'sssoon');
    ?>
</span></legend>
                                            <?php 
    if (!isset($checked)) {
        $checked = '';
    }
    foreach ($radio_options as $option) {
        $radio_setting = $options['radioinput'];
        if ('' != $radio_setting) {
            if ($options['radioinput'] == $option['value']) {
                $checked = "checked=\"checked\"";
            } else {
                $checked = '';
            }
        }
        ?>
                                                <label class="description"><input type="radio"
                                                                                  name="sssoon_options_settings[radioinput]"
                                                                                  value="<?php 
        esc_attr_e($option['value']);
        ?>
" <?php 
        echo $checked;
        ?>
 /> <?php 
        echo $option['label'];
        ?>
                                                </label><br/>
                                                <?php 
    }
//.........这里部分代码省略.........
开发者ID:timcreative,项目名称:coming-sssoon-wordpress-plugin,代码行数:101,代码来源:sssoon-options.php


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