<?php echo HHtml::postLink(Yii::t('UserModule.views_account_editModules', 'Disable'), array('//user/account/disableModule', 'moduleId' => $module->getId()), array('class' => 'btn btn-mini btn-danger', 'confirm' => Yii::t('UserModule.views_account_editModules', 'Are you really sure? *ALL* module data for your profile will be deleted!'))); ?> <?php } ?> <?php if ($module->getUserModuleConfigUrl($user)) { ?> <?php echo CHtml::link(Yii::t('UserModule.views_account_editModules', 'Configure'), $module->getUserModuleConfigUrl($user), array('class' => 'btn btn-mini')); ?> <?php } ?> <?php } else { ?> <?php echo HHtml::postLink(Yii::t('UserModule.views_account_editModules', 'Enable'), array('//user/account/enableModule', 'moduleId' => $module->getId()), array('class' => 'btn btn-mini btn-success')); ?> <?php } ?> </div> </li> <?php } ?> </ul> </div>
<p class="help-block"><?php echo Yii::t('AdminModule.views_setting_oembed_edit', 'Use %url% as placeholder for URL. Format needs to be JSON. (e.g. http://www.youtube.com/oembed?url=%url%&format=json)'); ?> </p> </div> <?php echo CHtml::submitButton(Yii::t('AdminModule.views_setting_oembed_edit', 'Save'), array('class' => 'btn btn-primary')); ?> <?php if ($prefix != "") { ?> <?php echo HHtml::postLink(Yii::t('AdminModule.views_setting_oembed_edit', 'Delete'), $this->createUrl('oembedDelete'), array('class' => 'btn btn-danger pull-right'), array('prefix' => $prefix)); ?> <?php } ?> <?php $this->endWidget(); ?> </div> </div>
?> <?php echo $form->textField($category, 'translation_category', array('class' => 'form-control')); ?> <?php echo $form->error($category, 'translation_category'); ?> </div> <hr> <?php echo CHtml::submitButton(Yii::t('AdminModule.views_userprofile_editCategory', 'Save'), array('class' => 'btn btn-primary')); ?> <?php if (!$category->isNewRecord && !$category->is_system) { ?> <?php echo HHtml::postLink(Yii::t('AdminModule.views_userprofile_editCategory', 'Delete'), $this->createUrl('//admin/userprofile/deleteCategory', array('id' => $category->id)), array('class' => 'btn btn-danger')); ?> <?php } ?> <?php $this->endWidget(); ?> </div> </div>
?> <?php if ($module->getSpaceModuleConfigUrl($this->getSpace()) != "") { ?> <?php echo CHtml::link(Yii::t('SpaceModule.views_admin_modules', 'Configure'), $module->getSpaceModuleConfigUrl($this->getSpace()), array('class' => 'btn btn-default')); ?> <?php } ?> <?php } else { ?> <?php echo HHtml::postLink(Yii::t('SpaceModule.views_admin_modules', 'Enable'), array('//space/admin/enableModule', 'moduleId' => $moduleId, 'sguid' => $this->getSpace()->guid), array('class' => 'btn btn-sm btn-primary')); ?> <?php } ?> </div> </div> <!-- Start: Module update message for the future --> <!-- <br> <div class="alert alert-warning"> New Update for this module is available! <a href="#">See details</a> </div>--> <!-- End: Module update message for the future --> <?php }
<div class="panel panel-default"> <div class="panel-heading"><?php echo Yii::t('AdminModule.views_user_delete', 'Delete user: <strong>{username}</strong>', array('{username}' => $model->username)); ?> </div> <div class="panel-body"> <p> <?php echo Yii::t('AdminModule.views_user_delete', 'Are you sure you want to delete this user? If this user is owner of some spaces, <b>you</b> will become owner of these spaces.'); ?> </p> <?php $this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('username', 'firstname', 'lastname', 'email:email', 'created_at'))); ?> <br/> <?php echo HHtml::postLink(Yii::t('AdminModule.views_user_delete', 'Delete user'), $this->createUrl('//admin/user/delete', array('id' => $model->id, 'doit' => 2)), array('class' => 'btn btn-danger')); ?> <?php echo CHtml::link(Yii::t('AdminModule.views_user_delete', 'Back'), $this->createUrl('//admin/user/edit', array('id' => $model->id)), array('class' => 'btn btn-primary')); ?> </div> </div>
<td align="left" valign="top"> <strong><?php echo CHtml::encode($user->displayName); ?> </strong><br> <?php echo CHtml::encode($membership->request_message); ?> <br> <hr> <?php echo HHtml::postLink('Accept', $this->createUrl('//rooms/admin/membersApproveApplicant', array('sguid' => $room->guid, 'userGuid' => $user->guid, 'approve' => true)), array('class' => 'btn btn-success btn-sm', 'id' => 'user_accept_' . $user->guid)); ?> <?php echo HHtml::postLink('Decline', $this->createUrl('//rooms/admin/membersRejectApplicant', array('sguid' => $room->guid, 'userGuid' => $user->guid, 'reject' => true)), array('class' => 'btn btn-danger btn-sm', 'id' => 'user_decline_' . $user->guid)); ?> </td> </tr> <?php if ($user_count < count($room->applicants) - 1) { ?> <hr> <?php } ?> <?php $user_count++; } ?>
<div class="pull-right"> <?php if ($model->status == Room::STATUS_ENABLED) { ?> <?php echo HHtml::postLink(Yii::t('RoomsModule.views_admin_edit', 'Archive'), $model->createUrl('//rooms/room/archive'), array('class' => 'btn btn-warning')); ?> <?php } elseif ($model->status == Room::STATUS_ARCHIVED) { ?> <?php echo HHtml::postLink(Yii::t('RoomsModule.views_admin_edit', 'Unarchive'), $model->createUrl('//rooms/room/unarchive'), array('class' => 'btn btn-warning')); ?> <?php } ?> <?php echo HHtml::postLink(Yii::t('RoomsModule.views_admin_edit', 'Delete'), $model->createUrl('//rooms/room/delete'), array('class' => 'btn btn-danger')); ?> </div> </div> </div> <?php $this->endWidget(); ?>
?> · <?php echo Yii::t('AdminModule.views_module_listOnline', 'Latest compatible version:'); ?> <?php echo $module['latestCompatibleVersion']; ?> <?php } ?> <?php if (!Yii::app()->moduleManager->isInstalled($module['id'])) { ?> · <?php echo HHtml::postLink(Yii::t('AdminModule.views_module_listOnline', 'Install'), $this->createUrl('install', array('moduleId' => $module['id'])), array('style' => 'font-weight:bold')); ?> <?php } ?> <?php } else { ?> · <span style="color:red"><?php echo Yii::t('AdminModule.views_module_listOnline', 'No compatible module version found!'); ?> </span> <?php }
<?php echo Yii::t('UpdaterModule.base', 'The following files seems to be not original (%version%) and will be overwritten or deleted during update process.', array('%version%' => $updatePackage->versionFrom)); ?> <br /> <br /> <ul> <?php foreach ($validationResults['modified'] as $file) { ?> <li><?php echo $file; ?> </li> <?php } ?> </ul> </div> <?php } ?> <?php echo HHtml::postLink(Yii::t("UpdaterModule.base", "Proceed Installation"), $this->createUrl("run"), array('class' => 'btn btn-primary')); ?> <?php } ?> </div> </div>
</h4> <?php echo CHtml::encode($entry->message); ?> </div> </li> <?php } ?> </ul> <?php if ($itemCount != 0) { ?> <div class="pull-right"><?php echo HHtml::postLink(Yii::t('AdminModule.views_logging_index', 'Flush entries'), array('flush'), array('class' => 'btn btn-danger')); ?> </div> <?php } ?> <center> <?php $this->widget('CLinkPager', array('currentPage' => $pagination->getCurrentPage(), 'itemCount' => $itemCount, 'pageSize' => $pageSize, 'maxButtonCount' => 5, 'header' => '', 'nextPageLabel' => '<i class="fa fa-step-forward"></i>', 'prevPageLabel' => '<i class="fa fa-step-backward"></i>', 'firstPageLabel' => '<i class="fa fa-fast-backward"></i>', 'lastPageLabel' => '<i class="fa fa-fast-forward"></i>', 'htmlOptions' => array('class' => 'pagination'))); ?> </center> </div> </div>
class="btn btn-primary">' . Yii::t('RandomSpaceModule.base', 'Become member') . '</a>'; } } } elseif ($membership->status == SpaceMembership::STATUS_INVITED) { $membershipText = '<a href="' . Yii::app()->createUrl("//space/space/inviteAccept", array('sguid' => $space->guid)) . '" class="btn btn-primary">' . Yii::t('RandomSpaceModule.base', 'Accept Invite') . '</a> '; $membershipText .= '<a href="' . Yii::app()->createUrl("//space/space/revokeMembership", array('sguid' => $space->guid)) . '" class="btn btn-primary">' . Yii::t('RandomSpaceModule.base', 'Decline Invite') . '</a> '; } elseif ($membership->status == SpaceMembership::STATUS_APPLICANT) { $membershipText = '<a href="' . Yii::app()->createUrl("//space/space/revokeMembership", array('sguid' => $space->guid)) . '" class="btn btn-primary" id="membership_button">' . Yii::t('RandomSpaceModule.base', 'Cancel pending membership application') . '</a>'; } } // Follow Handling if (!$space->isMember()) { if ($space->isFollowedByUser()) { $followText = HHtml::postLink(Yii::t('RandomSpaceModule.base', "Unfollow"), $space->createUrl('//space/space/unfollow'), array('class' => 'btn btn-danger')); } else { $followText = HHtml::postLink(Yii::t('RandomSpaceModule.base', "Follow"), $space->createUrl('//space/space/follow'), array('class' => 'btn btn-success')); } if (Yii::app()->user->isGuest) { $followText = HHtml::link(Yii::t('RandomSpaceModule.base', "View"), $space->getUrl(), array('class' => 'btn btn-success')); } } ?> <div class="panel panel-default"> <div class="panel-heading"> <?php echo Yii::t('RandomSpaceModule.base', '<strong>Space</strong> of the Moment'); ?> <span class="member-count pull-right"><?php echo Yii::t('RandomSpaceModule.base', 'Members:') . ' ' . number_format(count($members)); ?>
<?php if ($space->isFollowedByUser()) { print HHtml::postLink(Yii::t('SpaceModule.widgets_views_followButton', "Unfollow"), $space->createUrl('//space/space/unfollow'), array('class' => 'btn btn-primary')); } else { print HHtml::postLink(Yii::t('SpaceModule.widgets_views_followButton', "Follow"), $space->createUrl('//space/space/follow'), array('class' => 'btn btn-primary')); }
<div class="panel panel-default"> <div class="panel-heading"><?php echo Yii::t('AdminModule.views_email_whitelist_delete', 'Delete whitelisted domain: <strong>{name}</strong>', array('{name}' => $model->domain)); ?> </div> <div class="panel-body"> <p> <?php echo Yii::t('AdminModule.views_user_delete', 'Are you sure you want to delete this Karma record? Deleting Karma records can cause some unexpected side effects.'); ?> </p> <?php $this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array('domain'))); ?> <br/> <?php echo HHtml::postLink('Delete record', $this->createUrl('//email_whitelist/admin/delete', array('id' => $model->id, 'doit' => 2)), array('class' => 'btn btn-danger')); ?> <?php echo CHtml::link('Back', $this->createUrl('//email_whitelist/admin/edit', array('id' => $model->id)), array('class' => 'btn btn-primary')); ?> </div> </div>
} elseif ($membership->status == SpaceMembership::STATUS_INVITED) { print '<a href="' . Yii::app()->createUrl("//space/space/inviteAccept", array('sguid' => $space->guid)) . '" class="btn btn-primary">' . Yii::t('SpaceModule.views_space_indexPublic', 'Accept Invite') . '</a> '; print '<a href="' . Yii::app()->createUrl("//space/space/revokeMembership", array('sguid' => $space->guid)) . '" class="btn btn-primary">' . Yii::t('SpaceModule.views_space_indexPublic', 'Deny Invite') . '</a> '; } elseif ($membership->status == SpaceMembership::STATUS_APPLICANT) { print '<a href="' . Yii::app()->createUrl("//space/space/revokeMembership", array('sguid' => $space->guid)) . '" class="btn btn-primary" id="membership_button">' . Yii::t('SpaceModule.views_space_indexPublic', 'Cancel pending membership application') . '</a>'; } } ?> <?php // Follow Handling if (!$space->isMember()) { if ($space->isFollowedByUser()) { print HHtml::postLink(Yii::t('SpaceModule.views_space_indexPublic', "Unfollow"), $space->createUrl('//space/space/unfollow'), array('class' => 'btn btn-danger')); } else { print HHtml::postLink(Yii::t('SpaceModule.views_space_indexPublic', "Follow"), $space->createUrl('//space/space/follow'), array('class' => 'btn btn-success')); } } ?> </div> </div> </div> </div> <?php $this->widget('application.modules_core.wall.widgets.WallStreamWidget', array('contentContainer' => $space)); ?> </div> </div>
<?php } else { ?> · <?php echo HHtml::postLink(Yii::t('AdminModule.views_module_list', 'Enable'), array('//admin/module/enable', 'moduleId' => $moduleId), array('style' => 'font-weight:bold')); ?> <?php } ?> <?php if (Yii::app()->moduleManager->canUninstall($moduleId)) { ?> · <?php echo HHtml::postLink(Yii::t('AdminModule.views_module_list', 'Uninstall'), array('//admin/module/uninstall', 'moduleId' => $moduleId), array('confirm' => Yii::t('AdminModule.views_module_list', 'Are you sure? *ALL* module related data and files will be lost!'))); ?> <?php } ?> · <?php echo HHtml::link(Yii::t('AdminModule.views_module_list', 'More info'), array('//admin/module/info', 'moduleId' => $moduleId), array('data-target' => '#globalModal', 'data-toggle' => 'modal')); ?> </div> </div> </div> <?php }
<div class="pull-right"> <?php if ($model->status == Space::STATUS_ENABLED) { ?> <?php echo HHtml::postLink(Yii::t('SpaceModule.views_admin_edit', 'Archive'), $model->createUrl('//space/admin/archive'), array('class' => 'btn btn-warning')); ?> <?php } elseif ($model->status == Space::STATUS_ARCHIVED) { ?> <?php echo HHtml::postLink(Yii::t('SpaceModule.views_admin_edit', 'Unarchive'), $model->createUrl('//space/admin/unarchive'), array('class' => 'btn btn-warning')); ?> <?php } ?> <?php echo HHtml::postLink(Yii::t('SpaceModule.views_admin_edit', 'Delete'), $model->createUrl('//space/admin/delete'), array('class' => 'btn btn-danger')); ?> </div> </div> </div> <?php $this->endWidget(); ?>
?> </a> <div id="database_migration" style="display:none"> <br /> <strong><?php echo Yii::t('UpdaterModule.base', 'Database migration results:'); ?> </strong> <pre style="max-height:350px;overflow:auto"><?php print $migration; ?> </pre> <br /> </div> <br /> <br /> <?php echo HHtml::postLink(Yii::t("UpdaterModule.base", "Check for next update"), $this->createUrl("index"), array('class' => 'btn btn-primary')); ?> </div> </div> <script> $("#showDbResultsLink").click(function () { $("#database_migration").toggle("slow", function () { }); }); </script>
<?php $doc = $hit->getDocument(); $model = $doc->getField("model")->value; $spaceId = $doc->getField('pk')->value; $space = Space::model()->findByPk($spaceId); ?> <li> <div class="media"> <!-- Follow Handling --> <div class="pull-right"> <?php if (!$space->isMember()) { $followed = $space->isFollowedByUser(); echo HHtml::postLink(Yii::t('DirectoryModule.views_directory_members', 'Follow'), 'javascript:setFollow("' . $space->createUrl('//space/space/follow') . '", "' . $space->id . '")', array('class' => 'btn btn-success btn-sm ' . ($followed ? 'hide' : ''), 'id' => 'button_follow_' . $space->id)); echo HHtml::postLink(Yii::t('DirectoryModule.views_directory_members', 'Unfollow'), 'javascript:setUnfollow("' . $space->createUrl('//space/space/unfollow') . '", "' . $space->id . '")', array('class' => 'btn btn-primary btn-sm ' . ($followed ? '' : 'hide'), 'id' => 'button_unfollow_' . $space->id)); } ?> </div> <a href="<?php echo $space->getUrl(); ?> " class="pull-left"> <img class="media-object img-rounded" src="<?php echo $space->getProfileImage()->getUrl(); ?> " width="50" height="50" alt="50x50" data-src="holder.js/50x50" style="width: 50px; height: 50px;">
style="width: 34px; height: 34px;"> </a> </td> <td> <strong><?php echo CHtml::link($user->displayName, $user->getProfileUrl()); ?> </strong> <br/> <?php echo CHtml::encode($user->profile->title); ?> </td> <td width="100px"> <?php echo HHtml::postLink(Yii::t('SpaceModule.views_admin_members', 'Revoke invitation'), $this->createUrl('//space/admin/membersRejectApplicant', array('sguid' => $space->guid, 'userGuid' => $user->guid, 'reject' => true)), array('class' => "btn btn-sm btn-primary")); ?> </td> </tr> <?php } ?> </tbody> </table> </div> </div> <?php } ?>
<?php if ($user->isFollowedByUser()) { print HHtml::postLink(Yii::t("UserModule.widgets_views_followButton", "Unfollow"), $user->createUrl('//user/profile/unfollow'), array('class' => 'btn btn-primary')); } else { print HHtml::postLink(Yii::t("UserModule.widgets_views_followButton", "Follow"), $user->createUrl('//user/profile/follow'), array('class' => 'btn btn-success')); }
</p> <?php if (count($providers) != 0) { ?> <p><strong><?php echo Yii::t('AdminModule.views_setting_oembed', 'Currently active providers:'); ?> </strong></p> <ul> <?php foreach ($providers as $providerUrl => $providerOEmbedAPI) { ?> <li><?php echo HHtml::postLink($providerUrl, $this->createUrl('oembedEdit'), array(), array('prefix' => $providerUrl)); ?> </li> <?php } ?> </ul> <?php } else { ?> <p><strong><?php echo Yii::t('AdminModule.views_setting_oembed', 'Currently no provider active!'); ?> </strong></p> <?php }
if (isset($module['latestCompatibleVersion']) && Yii::app()->moduleManager->isInstalled($module['id'])) { ?> <?php echo Yii::t('AdminModule.views_module_listUpdates', 'Installed version:'); ?> <?php echo Yii::app()->moduleManager->getModule($module['id'])->getVersion(); ?> · <?php echo Yii::t('AdminModule.views_module_listUpdates', 'Latest compatible Version:'); ?> <?php echo $module['latestCompatibleVersion']; ?> · <?php echo HHtml::postLink(Yii::t('AdminModule.views_module_listUpdates', 'Update'), $this->createUrl('update', array('moduleId' => $module['id'])), array('style' => 'font-weight:bold', 'class' => 'process')); ?> · <?php echo HHtml::link(Yii::t('AdminModule.views_module_listOnline', 'More info'), $module['marketplaceUrl'], array('target' => '_blank')); ?> <?php } ?> </div> </div> </div> <?php } ?>
<ul> <li><?php echo Yii::t('UpdaterModule.base', 'Backup all your files & database before proceed'); ?> </li> <li><?php echo Yii::t('UpdaterModule.base', 'Make sure all files are writable by application'); ?> </li> <li><?php echo Yii::t('UpdaterModule.base', 'Please update installed marketplace modules before and after the update'); ?> </li> <li><?php echo Yii::t('UpdaterModule.base', 'Make sure custom modules or themes are compatible with version %version%', array('%version%' => $updatePackage->versionTo)); ?> </li> <li><?php echo Yii::t('UpdaterModule.base', 'Do not use this updater in combination with Git!'); ?> </li> </ul> </div> <?php echo HHtml::postLink(Yii::t('UpdaterModule.base', "Start Installation"), $this->createUrl("start"), array('class' => 'btn btn-primary')); ?> </div> </div>