</a></li> </ul> <div id="tabs-1"> <div class="inside"> <?php echo CHtml::beginForm('', 'post', array('class' => 'formee')); ?> <div class="in"> <?php bp('staff message'); ?> <?php Yii::app()->customEditor->getEditor(array('name' => 'dashboard_staff_message', 'value' => getParam('dashboard_staff_message'))); ?> <?php ep('staff message'); ?> </div> <!--Form footer begin--> <section class="box_footer"> <div class="grid-12-12"> <input type="submit" name='submit' class="right button green" value="<?php echo at('Update'); ?> " /> </div> <div class="clear"></div> </section> <!--Form footer end--> <?php
<?php echo CHtml::submitButton(at('Search')); ?> <?php echo CHtml::endForm(); ?> </div> <div class="clear"></div> <div class="grid_12"> <?php bp('PM Index'); ?> <?php $this->widget('bootstrap.widgets.BootGridView', array('type' => 'striped bordered condensed', 'dataProvider' => $model->search(getRParam('term')), 'columns' => array(array('name' => 'id', 'header' => '#'), array('name' => 'title', 'header' => 'Title', 'type' => 'raw', 'value' => '$data->getTopicTitle()'), array('name' => 'type', 'header' => 'Type', 'value' => '$data->getType()'), array('name' => 'repliesCount', 'header' => 'Replies', 'value' => '$data->repliesCount'), array('name' => 'participantsCount', 'header' => 'Participants', 'value' => '$data->participantsCount'), array('name' => 'created_at', 'header' => 'Created Date', 'value' => 'timeSince($data->created_at)'), array('name' => 'author_id', 'header' => 'Author', 'type' => 'raw', 'htmlOptions' => array('style' => 'width: 100px'), 'value' => '$data->getAuthorLink()'), array('name' => 'last_reply_created_at', 'header' => 'Last Reply Date', 'value' => 'timeSince($data->last_reply_created_at)'), array('name' => 'last_reply_author_id', 'header' => 'Last Reply Author', 'type' => 'raw', 'htmlOptions' => array('style' => 'width: 100px'), 'value' => '$data->lastReplyAuthor->getUserLink()'), array('template' => '{remove}', 'class' => 'bootstrap.widgets.BootButtonColumn', 'htmlOptions' => array('style' => 'width: 50px'), 'buttons' => array('remove' => array('label' => '<i class="icon-trash"></i>', 'options' => array('title' => at('Delete Topic'), 'class' => 'delete'), 'url' => 'Yii::app()->createUrl("/admin/personalmessages/delete", array("id"=>$data->id))', 'visible' => 'Yii::app()->user->id == $data->author_id || checkAccess("op_personalmessages_manage_topics")')))))); ?> <?php ep('PM Index'); ?> <?php $this->widget('bootstrap.widgets.BootButton', array('label' => 'Create New Message', 'url' => array('create'), 'type' => 'primary')); ?> </div> <div class="clear"></div> </div> </div> </div> </section> <div class="clear"></div>
/** * Format a tide item * * Note: We need to cast the item values to string to avoid getting e.g. * `SimpleXMLElement Object ( [0] => 12:46 AM ) ` * when we just want 12:46 AM * * * @param SimpleXMLElement $item */ function us_format_item($item) { bw_trace2($item, "item", false, BW_TRACE_DEBUG); sp("item"); sepan("time", (string) $item->time); e(" "); sepan("ft", (string) $item->predictions_in_ft); e(" "); if ($item->highlow == 'L') { sepan("highlow low", "Low Tide"); } else { sepan("highlow high", "High Tide"); } ep(); }
if ($pte_iframe) { echo 'var ajaxurl = "' . admin_url('admin-ajax.php') . '";'; } ?> </script> <link rel="stylesheet" href="<?php ep(); ?> apps/font-awesome/css/font-awesome.min.css"/> <link rel="stylesheet" href="<?php ep(); ?> apps/jcrop/css/jquery.Jcrop.css"/> <link rel="stylesheet" href="<?php ep(); ?> css/pte.css"/> <div class="wrap ng-cloak" ng-init="currentThumbnailBarPosition='<?php echo $options['pte_thumbnail_bar']; ?> '" ng-controller="PteCtrl"> <?php if (!isset($_GET['title']) || $_GET['title'] != 'false') { ?> <?php screen_icon('upload'); ?> <h2><?php _e("Post Thumbnail Editor", PTE_DOMAIN);