Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
🛠 修改文章 & 独立页的操作弹出框位置
Browse files Browse the repository at this point in the history
  • Loading branch information
bakaomg committed Apr 18, 2021
1 parent 3975667 commit 449ea5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions page.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Castle Page
* Last Update: 2021/04/13
* Last Update: 2021/04/18
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
if (@$_SERVER['HTTP_X_PJAX'] == true) {
Expand Down Expand Up @@ -42,7 +42,7 @@
<div class="mdui-card-header-subtitle"><?php $this->date($GLOBALS['CastleLang']['page']['time']); ?></div>
<div class="mdui-card-menu">
<?php if ($this->user->hasLogin()) {
echo '<button class="mdui-btn mdui-btn-icon" mdui-menu="{target: \'#postEditMenu\', align: \'right\', position: \'top\'}"><i class="mdui-icon material-icons">edit</i></button>';
echo '<button class="mdui-btn mdui-btn-icon" mdui-menu="{target: \'#postEditMenu\', align: \'right\'}"><i class="mdui-icon material-icons">edit</i></button>';
echo '<ul class="mdui-menu" id="postEditMenu">
<li class="mdui-menu-item">
<a href="' . $this->options->adminUrl . 'write-page.php?cid=' . $this->cid . '" class="mdui-ripple" target="_blank">
Expand Down
4 changes: 2 additions & 2 deletions post.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Castle Post
* Last Update: 2021/04/13
* Last Update: 2021/04/18
*/
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
if (@$_SERVER['HTTP_X_PJAX'] == true) {
Expand Down Expand Up @@ -42,7 +42,7 @@
<div class="mdui-card-header-subtitle"><?php $this->date($GLOBALS['CastleLang']['post']['time']); ?></div>
<div class="mdui-card-menu">
<?php if ($this->user->hasLogin()) {
echo '<button class="mdui-btn mdui-btn-icon" mdui-menu="{target: \'#postEditMenu\', align: \'right\', position: \'top\'}"><i class="mdui-icon material-icons">edit</i></button>';
echo '<button class="mdui-btn mdui-btn-icon" mdui-menu="{target: \'#postEditMenu\', align: \'right\'}"><i class="mdui-icon material-icons">edit</i></button>';
echo '<ul class="mdui-menu" id="postEditMenu">
<li class="mdui-menu-item">
<a href="' . $this->options->adminUrl . 'write-post.php?cid=' . $this->cid . '" class="mdui-ripple" target="_blank">
Expand Down

0 comments on commit 449ea5c

Please sign in to comment.