示例#1
0
 public function __construct($apiKey, $listID)
 {
     // handles module registration in UserBase
     parent::__construct();
     $this->apiKey = $apiKey;
     $this->listID = $listID;
     $pos = strpos($apiKey, '-');
     if ($pos === FALSE) {
         throw new MailChimpException("Wrong API key. Expected '-' in it somewhere.");
     }
     $datacenter = substr($apiKey, $pos + 1);
     $this->endpoint = 'http://' . $datacenter . '.api.mailchimp.com/1.3/';
 }
示例#2
0
    <title><?php 
echo CHtml::encode($this->pageTitle);
?>
</title>
</head>
<body>

<?php 
$items = array();
foreach (array_keys($this->module->controllerMap) as $controllerName) {
    $items[] = array('label' => Yii::t('email', ucfirst($controllerName)), 'url' => array($controllerName . '/index'), 'active' => $this->id == $controllerName);
}
$this->widget('bootstrap.widgets.TbNavbar', array('brandLabel' => $this->module->getName(), 'brandUrl' => array('/' . $this->module->id), 'fluid' => true, 'items' => array(array('class' => 'bootstrap.widgets.TbNav', 'items' => $items), array('class' => 'bootstrap.widgets.TbNav', 'htmlOptions' => array('class' => 'pull-right'), 'items' => array(array('label' => Yii::app()->name, 'url' => Yii::app()->homeUrl))))));
echo CHtml::tag('div', array('class' => 'container-fluid'), $this->widget('bootstrap.widgets.TbBreadcrumb', array('links' => array_merge($this->getBreadcrumbs(), array($this->pageTitle))), true));
echo $content;
?>

<div id="footer" class="container-fluid small text-center">
    <?php 
if (Yii::app()->hasModule('audit')) {
    $this->renderPartial('audit.views.request.__footer');
    echo '<br/>';
}
echo EmailModule::powered();
echo '<br/>A product of <a href="http://mrphp.com.au">Mr PHP</a>.';
?>
</div>

</body>
</html>