This repository has been archived by the owner on May 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
105 additions
and
517 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,44 @@ | ||
<?php if ($result): ?> | ||
<div class="pure-g typecho-list"> | ||
<?php foreach ($result->packages as $plugin): ?> | ||
<div class="pure-u-1-4 as-card" data-name="<?php echo $plugin->name; ?>" data-existed="<?php echo $plugin->existed ?>"> | ||
<h3><?php echo $plugin->name; ?></h3> | ||
<p class="as-description" title="<?php echo $plugin->versions[0]->description; ?>"> | ||
<?php echo $plugin->versions[0]->description; ?> | ||
</p> | ||
<p class="as-author"> | ||
<?php echo _t('作者'); ?>: | ||
<cite><?php echo $plugin->versions[0]->author; ?></cite> | ||
|
||
</p> | ||
<p class="as-versions"> | ||
<?php echo _t('版本'); ?>: | ||
<select class="as-version-selector"> | ||
<?php foreach ($plugin->versions as $version): ?> | ||
<option value="<?php echo $version->version; ?>" data-activated="<?php echo $version->activated; ?>" data-author="<?php echo $version->author; ?>" data-require="<?php echo $version->require; ?>" data-description="<?php echo $version->description; ?>"><?php echo $version->version; ?></option> | ||
<?php endforeach; ?> | ||
</select> | ||
</p> | ||
|
||
<p class="as-require"> | ||
<?php echo _t('版本要求'); ?>: | ||
<cite><?php echo $plugin->versions[0]->require; ?></cite> | ||
</p> | ||
<p class="as-operations"> | ||
<?php if ($this->installale): ?> | ||
<button class="btn-s as-install"><?php echo _t("安装"); ?></button> | ||
<?php else: ?> | ||
<a class="btn-s" onclick="return confirm('没有写入权限或者运行在云平台中\n点击确认后将进行下载,请手动传到服务器上!');" href="<?php echo $this->server.'archive/'.$plugin->name.'/'.str_replace(' ', '%20', $version->version);?>"><?php echo _t('下载'); ?></a> | ||
<?php endif; ?> | ||
<span class="as-status" style=""> | ||
<?php if ($plugin->existed): ?> | ||
<i class="fa fa-check-circle as-activated as-existed active" title="<?php echo _t('已安装'); ?>"></i> | ||
<?php else: ?> | ||
<i class="fa fa-check-circle as-activated" title="<?php echo _t('未安装'); ?>"></i> | ||
<?php endif; ?> | ||
</span> | ||
</p> | ||
</div> | ||
<?php endforeach; ?> | ||
<div class="col-mb-12 typecho-list"> | ||
<h4 class="typecho-list-table-title">已安装的插件</h4> | ||
<div class="typecho-table-wrap"> | ||
<?php if ($result): ?> | ||
<table class="typecho-list-table"> | ||
<thead> | ||
<?php include 'row-title.php'; ?> | ||
</thead> | ||
<tbody> | ||
<?php foreach ($result->packages as $plugin): | ||
if ($plugin->existed) { | ||
include 'row.php'; | ||
} | ||
endforeach; ?> | ||
</tbody> | ||
</table> | ||
<?php else: ?> | ||
<div class="message" style="width:20em;text-align: center;margin:0 auto"> | ||
<h3 style="font-size: 2em">没有找到任何插件</h3> | ||
</div> | ||
<?php endif; ?> | ||
</div> | ||
<?php else: ?> | ||
<div class="message" style="width:20em;text-align: center;margin:0 auto"> | ||
<p><i class="fa fa-frown-o" style="font-size: 5em"></i></p> | ||
<h3 style="font-size: 2em">没有找到任何插件</h3> | ||
<h4 class="typecho-list-table-title">未安装的插件</h4> | ||
<div class="typecho-table-wrap"> | ||
<?php if ($result): ?> | ||
<table class="typecho-list-table"> | ||
<thead> | ||
<?php include 'row-title.php'; ?> | ||
</thead> | ||
<tbody> | ||
<?php foreach ($result->packages as $plugin): | ||
if (!$plugin->existed) { | ||
include 'row.php'; | ||
} | ||
endforeach; ?> | ||
</tbody> | ||
</table> | ||
<?php else: ?> | ||
<div class="message" style="width:20em;text-align: center;margin:0 auto"> | ||
<h3 style="font-size: 2em">没有找到任何插件</h3> | ||
</div> | ||
<?php endif; ?> | ||
</div> | ||
<?php endif; ?> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<tr> | ||
<th><?php echo _t('名称'); ?></th> | ||
<th><?php echo _t('描述'); ?></th> | ||
<th><?php echo _t('版本'); ?></th> | ||
<th><?php echo _t('版本要求'); ?></th> | ||
<th><?php echo _t('作者'); ?></th> | ||
<th><?php echo _t('操作'); ?></th> | ||
</tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<tr class="as-card" data-name="<?php echo $plugin->name; ?>" data-existed="<?php echo $plugin->existed ?>"> | ||
<td class="as-name"><?php echo $plugin->name; ?></td> | ||
<td class="as-description"><?php echo $plugin->versions[0]->description; ?></td> | ||
<td class="as-versions"> | ||
<select class="as-version-selector"> | ||
<?php foreach ($plugin->versions as $version): ?> | ||
<option value="<?php echo $version->version; ?>" data-activated="<?php echo $version->activated; ?>" data-author="<?php echo $version->author; ?>" data-require="<?php echo $version->require; ?>" data-description="<?php echo $version->description; ?>"><?php echo $version->version; ?></option> | ||
<?php endforeach; ?> | ||
</select> | ||
</td> | ||
<td class="as-require" ><?php echo $plugin->versions[0]->require; ?></td> | ||
<td class="as-author"><?php echo $plugin->versions[0]->author; ?></td> | ||
<td class="as-operations"> | ||
<?php if ($this->installale): ?> | ||
<?php if ($plugin->existed): ?> | ||
<a class="as-install" href="javascript:;"><?php echo _t("重装"); ?></a> | ||
<?php else: ?> | ||
<a class="as-install" href="javascript:;"><?php echo _t("安装"); ?></a> | ||
<?php endif; ?> | ||
<?php else: ?> | ||
<a onclick="return confirm('没有写入权限或者运行在云平台中\n点击确认后将进行下载,请手动传到服务器上!');" href="<?php echo $this->server.'archive/'.$plugin->name.'/'.str_replace(' ', '%20', $version->version);?>"><?php echo _t('下载'); ?></a> | ||
<?php endif; ?> | ||
</td> | ||
</tr> |