diff --git a/inc/frame/config/framework.config.php b/inc/frame/config/framework.config.php
index bd4c7cd..215e3ab 100644
--- a/inc/frame/config/framework.config.php
+++ b/inc/frame/config/framework.config.php
@@ -88,11 +88,19 @@
'default' => false,
),
array(
- 'id' => 'is_qr',
- 'type' => 'switcher',
- 'title' => '显示二维码',
- 'after' => '
网址块弹窗提示替换为二维码
', - 'default' => false, + 'id' => 'po_prompt', + 'type' => 'radio', + 'title' => '网址块弹窗提示', + 'desc' => '网址块默认的弹窗提示内容', + 'default' => 'url', + 'class' => 'horizontal', + 'options' => array( + 'null' => '无', + 'url' => '链接', + 'summary' => '简介', + 'qr' => '二维码' + ), + 'after' => '如果网址添加了自定义二维码,此设置无效', ), array( 'id' => 'columns', diff --git a/style.css b/style.css index 9ada080..6f484af 100644 --- a/style.css +++ b/style.css @@ -2,7 +2,7 @@ Theme Name:WebStack Theme URI:https://www.iowen.cn Description:by 一为!官方网站:一为忆 -Version:1.1227 +Version:1.1231 Author:iowen Author URI: https://www.iowen.cn/ */ diff --git a/templates/site-card.php b/templates/site-card.php index 267f80d..e61827f 100644 --- a/templates/site-card.php +++ b/templates/site-card.php @@ -1,48 +1,68 @@ - ID, '_wechat_qr', true)){ - $qrurl=""; - $is_html = 'true'; - } else if($link_url=="") { - $qrurl = '地址错误!'; - } else if(io_get_option('is_qr')) { - $qrurl = ""; - $is_html = 'true'; - } - - $url = ''; - $blank = '_blank'; - if(io_get_option('details_page')){ - $url=get_permalink(); - }else{ + ID, '_wechat_qr', true)){ + $title=""; + $is_html = 'data-html="true"'; + } else { + switch(io_get_option('po_prompt')) { + case 'null': + $title = get_the_title(); + $tooltip = ''; + break; + case 'url': + if($link_url=="") + $title = '地址错误!'; + break; + case 'summary': + $title = get_post_meta($post->ID, '_sites_sescribe', true); + break; + case 'qr': + if($link_url=="") + $title = '地址错误!'; + else{ + $title = ""; + $is_html = 'data-html="true"'; + } + break; + default: + } + } + $url = ''; + $blank = '_blank'; + if(io_get_option('details_page')){ + $url=get_permalink(); + }else{ if($link_url==""){ - $url = 'javascript:'; - $blank = ''; + $url = 'javascript:'; + $blank = ''; }else{ - if(io_get_option('is_go')) - $url = '/go/?url='.base64_encode($link_url) ; - else - $url = $link_url; + if(io_get_option('is_go')) + $url = '/go/?url='.base64_encode($link_url) ; + else + $url = $link_url; } - } - ?> - + } + + ?> + title="">
ID, '_sites_sescribe', true) ?>
ID, '_sites_sescribe', true) ?>
-