插件目录

变更集2870031


忽略:
时间戳:
2023年2月23日下午01:57:25(16个月(之前)
作者:
flowdee公司
消息:

从GitHub更新到1.1.3版

位置:
点击鲸
文件夹:
26已编辑
已复制1个

图例:

未修改
补充
远离的
  • clickwhale/tags/1.1.3/admin/class-clickwhole-admin.php

    2864265兰特 2870031元  
    245245textToCopy=jQuery(this).parent().find('input').val();
    246246
    247 textToCopy=单击whale_admin.siteurl+“/”+textToCopy;
     247textToCopy=单击whale_admin.siteurl+“/”+textToCopy + '/';
    248248jQuery('body').append($temp);
    249249$temp.val(textToCopy).select();
  • clickwhale/tags/1.1.3/admin/class-clickwhole-ajax.php

    2864265兰特 2870031元  
    7777$options_migrate[$plugin]=true;
    7878更新选项('单击whale_hide_notice_migrate',$options_migraate);
    79 }其他 if($type===“停用”){
     79}其他if($type===“停用”){
    8080$options_deactive=获取选项('单击whale_hide_notice_deactivity');
    8181$options_deactive[$plugin]=true;
     
    262262
    263263    /**
     264*@返回无效
    264265*@自1.1.0起
    265 *@返回无效
    266266     */
    267267公共函数get_posts_by_post_type(){
     
    301301
    302302    /**
     303*@返回无效
    303304*@自1.1.0起
    304 *@返回无效
    305305     */
    306306公共函数get_cw_links(){
     
    325325
    326326    /**
     327*@返回无效
    327328*@自1.1.0起
    328 *@返回无效
    329329     */
    330330公共函数track_custom_link(){
  • clickwhale/tags/1.1.3/admin/class-clickwhare-settings.php

    2831969兰特 2870031元  
    7373“nofollow”=>1,
    7474“赞助商”=>0,
    75 “slug”=>“”
     75“slug”=>“”,
     76'random_slug'=>0,
    7677                )
    7778            ),
     
    309310308=>__('308重定向:永久重定向',$this->plugin_name)
    310311                ),
    311 'description'=>__('设置将用于新链接的默认重定向类型。',$this->plugin_name),
     312'描述'=>__('设置将用于新链接的默认重定向类型。',
     313$this->plugin_name),
    312314            )
    313315        );
     
    343345添加设置字段(
    344346“slug”,
    345 __('链接鼻塞',$this->plugin_name),
     347__('链接前缀',$this->plugin_name),
    346348数组($this,'render_controls'),
    347349'单击whale_general_options',
     
    354356“value”=>$general_options['slug'],
    355357“占位符”=>“”,
    356 “description”=>__(“此时,您可以输入新链接的默认slug。<br><strong>重要提示:</strong>如果您更改slug,现有链接将不会更改。”,$this->plugin_name),
     358“description”=>__('在这里,您可以输入一个前缀,该前缀将在创建新链接时添加。例如:<em>链接</em>。<br><strong>重要提示:</strong>如果更改前缀,它将不会影响现有链接。',
     359$this->plugin_name),
     360            )
     361        );
     362添加设置字段(
     363'随机插入',
     364__(“随机Slug”,$this->plugin_name),
     365数组($this,'render_controls'),
     366'单击whale_general_options',
     367'通用设置节',
     368阵列(
     369“控制”=>“复选框”,
     370“id”=>“random_slug”,
     371'name'=>'clickwhale_general_options[random_slug]',
     372“value”=>设置($general_options['random_slug'])?1 : 0,
     373“label”=>__(“创建新链接时,选择<u>不</u>建议使用随机链接段塞”,
     374$this->plugin_name),
    357375            )
    358376        );
     
    367385“id”=>“tracking_duration”,
    368386“name”=>“clickwhale_tracking_options[tracking_duration]”,
    369 “值”=>设置($tracking_options['tracking_duration'])$tracking_options['tracking_duration']:$defaults['tracking']['options']['跟踪持续时间'],
     387“值”=>$tracking_options['tracking_duration']??$defaults['tracking']['options']['跟踪持续时间'],
    370388“选项”=>$duration
    371389            )
     
    397415“value”=>设置($tracking_options['exclude_user_by_role'])$tracking_options['exclude_user_by_role']:0,
    398416“选项”=>单击whale_WP_User::get_all_roles(),
    399 “description”=>__(“检查应该从跟踪中排除的用户角色。”,$this->plugin_name),
     417'描述'=>__('检查应该从跟踪中排除的用户角色。',
     418$this->plugin_name),
    400419            )
    401420);
  • clickwhale/tags/1.1.3/admin/controllers/linkpages/class-clickwhale-linkpage-edit.php

    2864265兰特 2870031元  
    6464
    6565    /**
    66 *@自1.1.0起
    6766*@return数组
     67*@自1.1.0起
    6868     */
    6969公共静态函数get_post_types():数组{
     
    273273
    274274jQuery(“#添加链接类型”).select2({
    275 占位符:“<?php(_e)(“选择链接类型”、“clickwhale”) ?>',
     275占位符:“<?php(_e)(“选择链接类型”、“clickwhale”) ?>',
    276276宽度:“100%”,
    277277搜索的最小结果:-1
    278278                });
    279279jQuery(“#add-links-select”).select2({
    280 占位符:“<?php(_e)(“选择项目”,“点击鲸鱼”) ?>',
     280占位符:“<?php(_e)('选择项目','点击鲸') ?>',
    281281宽度:“100%”,
    282282搜索的最小结果:10
     
    442442倍数:false
    443443}).on('select',function(){//它也有“open”和“close”事件
    444 var attachment=custom_uploader.state().get('selection').first().toJSON();
    445 button.html('<img src=“'+attachment.url+'”>').next.().show().next().val(attachment.id);
     444var attachment=custom_uploader.state().get('selection').first().toJSON(),
     445mediaInput=button.parent().find('input');
     446button.html('<img src=“'+attachment.url+'”>').next().show();
     447mediaInput.val(attachment.id).trigger(“更改”);
    446448}).open();
    447449
     
    455457button.next().val(“”);//清空隐藏字段
    456458button.hide().prev().html('上传图像');
     459                    })
     460.on('keyup change blur','input',function(){
     461禁用_ogpreview_button();
    457462});
     463
     464jQuery('input[type=“hidden”]').bind(“change”,function(){
     465禁用_ogpreview_button();
     466                });
     467jQuery(“.linkpage-logo-remove”)点击(函数(){
     468禁用_ogpreview_button();
     469                });
    458470
    459471                /**
     
    569581                    }
    570582                }
     583
     584函数disable_ogpreview_button(){
     585jQuery(“#opengraph-live-preview”)
     586.addClass(“禁用”)
     587.next()
     588.text(“保存页面以查看打开的图形预览”,“clickwhale”)?>”);
     589                }
    571590            });
    572591</script>
  • clickwhale/tags/1.1.3/admin/controllers/linkpages/class-clickwhale-linkpages-list-table.php

    2864265兰特 2870031元  
    4343'edit'=>sprintf('<a href=“?page=clickwhale编辑链接页面&id=%s”>%s</a>',$item['id'],
    4444__(“编辑”,“点击鲸”),
    45 '视图'=>'<a href=“'.get_bloginfo('url').'/'.$item['slug']。'“target=”_blank“>查看</a>',
     45'视图'=>'<a href=“'.get_bloginfo('url').'/'.$item['slug']。'/“target=”_blank“>查看</a>',
    4646“删除”=>sprintf('<a href=“?page=%s&action=delete&id=%s”>%s</a>',
    4747sanitize_text_field($_REQUEST['page']),$item['id'],__('Delete','clickwhale')),
  • clickwhale/tags/1.1.3/admin/controllers/links/class-clickwhale-link-edit.php

    2831969兰特 2870031元  
    4545
    4646if(isset($request['id']){
    47 $item=$wpdb->get_row($wpdb->prepare(“SELECT*FROM{$wpdb->prefix}clickwhale_links WHERE id=%d”,intval($request['id'])),ARRAY_A);
     47$item=$wpdb->get_row($wpdb->prepare(“SELECT*FROM{$wpdb->prefix}clickwhale_links WHERE id=%d”,
     48intval($request['id']),ARRAY_A);
    4849if(!$item){
    4950$item=$defaults;
     
    125126公共静态函数check_slug($slug,$id){
    126127全局$wpdb;
    127 if($wpdb->get_row($wddb->prepare(“SELECT slug FROM{$wpdb->prefix}clickwhale_links WHERE slug=%s AND id!=%d”,$slug,$id),'ARRAY_A')){
     128如果($wpdb->get_row($wddb->prepare(“SELECT slug FROM{$wpdb->prefix}clickwhale_links WHERE slug=%s AND id!=%d”),
     129$slug,$id),'ARRAY_A')){
    128130返回true;
    129131}其他{
     
    174176
    175177公共函数admin_scripts(){
    176 $nonce=wp_create_nonce('check_slug');
     178$nonce=wp_create_nonce('check_slug');
     179$nonce_random=wp_create_nonce('random_slug');
    177180        ?>
    178181<script type='text/javascript'>
     
    194197“type”:“link”,
    195198“slug”:slug.val(),
    196 “id”:<?php echo esc_attr(intval(isset($_GET['id'])$_获取['id']:0 ) ); ?>
     199“id”:<?php echo esc_attr(intval($_GET['id']??0 ) ); ?>
    197200},函数(响应){
    198201//slug存在
    199202if(response.data===真){
    200203slug.addClass(“错误”);
    201 jQuery('#cw-slug--description').text('<?php_e('此slug已在使用中!请输入另一个slug','clickwhale')?>');
     204jQuery('#cw-slug--description').text('<?php_e('此slug已被使用!请输入另一个slug',
     205“点击鲸鱼”)?>);
    202206                        }
    203207//段塞不存在
     
    214218                    })
    215219                });
    216 
    217220            });
    218221</script>
  • clickwhale/tags/1.1.3/admin/css/clickwhole-admin.css

    2864265兰特 2870031元  
    2121顶部:5px;
    2222颜色:#bbbbbb;
     23}
     24
     25.slag-input-edit--换行{
     26显示器:柔性;
     27对齐项目:居中;
     28justify-content:灵活启动;
     29间距:15px;
     30最大宽度:95%;
     31}
     32
     33.slag-input-edit--换行范围{
     34字体大小:13px;
     35不透明度:.7;
    2336}
    2437
  • clickwhale/tags/1.1.3/admin/helpers/class-clickwhale-links-helper.php

    2831969兰特 2870031元  
    1212    }
    1313
     14    /**
     15*@throws异常
     16     */
     17公共静态函数get_random_slug(int$length=6):string{
     18$characters='abcdefghijklmnopqrstuvwxyz';
     19$string=“”;
     20
     21对于($i=0;$i<$length;$i++){
     22$string.=$字符[random_int(0,strlen($个字符)-1)];
     23        }
     24
     25返回$string;
     26    }
     27
    1428}
  • 单击鲸鱼/tags/1.1.3/admin/views/linkpages/linkpage-edit.php

    2864265兰特 2870031元  
    5959$seoOGImageId=$social['seo']['gimage']??'';
    6060
     61$seoOGPreviewVendorURL='https://www.opengraph.xyz/url/';
     62$seoOGLPURL=get_bloginfo('url')。'/'。esc_attr($item['slug']).'/';
     63
    6164//横幅
    6265do_action('单击whale_admin_banner');
     
    7679
    7780        <?php if(isset($item['slug'])&&$item['slug']!==''){ ?>
    78 <a href=“<?php echo trailingslashit(get_bloginfo('url')).$item['slug']?>
     81<a href=“<?php echo trailingslashit(get_bloginfo('url')).$item['slug']?>/
    7982target=“_blank”rel=“noopener”
    8083class=“page-title-action”><?php_e(“查看页面”,$this->plugin_name)?></a>
     
    150153                                    <?php$url=__(“url预览”,
    151154$this->plugin_name)。':'。get_bloginfo(“url”).'/';?>
    152                                     <?php echo eschtml($url)?><span><?php-echo-esc_html($item['slug'])?></span>
     155                                    <?php echo eschtml($url)?><span><?php-echo-esc_html($item['slug'])?></span>/
    153156</p>
    154157</td>
     
    382385<tr class=“form-field”>
    383386<th scope=“row”>
    384 <label for=“socialSeoTitle”><?php _(搜索引擎优化le’,$this->plugin_name);?></标签>
     387<label for=“socialSeoTitle”><?php _(搜索引擎优化le’,$this->plugin_name);?></标签>
    385388</th>
    386389<td>
     
    418421</th>
    419422<td>
    420                               <?php if(!get_option('blog_public')||get_option('blog_public')==='0'){?>
     423                              <?php if(!get_option('blog_public')||get_option['blog_public')==='0'){?>
    421424<div class=“links-info”>
    422425                                        <?php打印(
     
    533536</td>
    534537</tr>
     538<tr class=“form-field”>
     539<th scope=“row”>
     540<label for=“ogimage”><?php_e(“打开图形预览”,$this->plugin_name)?></标签>
     541</th>
     542<td>
     543<a class=“button”
     544id=“opengraph-live-preview”
     545href=“<?php echo$seoOGPreviewVendorURL.$seoGOGLPURL?>”
     546target=“_blank”
     547rel=“noopener”>
     548                                    <?php_e(“查看实时预览”,$this->plugin_name)?>
     549</a>
     550<p class=“description”></p>
     551</td>
     552</tr>
    535553</tbody>
    536554</表格>
  • 单击鲸鱼/tags/1.1.3/admin/views/links/link-edit.php

    2831969兰特 2870031元  
    66$item_categories=$link_edit->获取链接类别();
    77$options_general=获取选项('单击whale_general_options');
     8
     9//鼻塞
    810if($item['slu']){
    911$slug=$item['slug'];
    1012}其他{
    11 $slug=isset($options_general['slug'])&&$options\general['slug']!==''$options_general['slug'].'/':'';
     13if(!isset($options_general['random_slug'])|$options_general[“随机段”]){
     14$randomSlug=单击whaleLinksHelper::get_random_slug();
     15}其他{
     16$randomSlug=“”;
     17    }
     18$slug=isset($options_general['slug'])&&$options\general['slug']!==''
     19$options_general['slug'].'/'$随机Slug
     20:$randomSlug;
    1221}
     22
    1323$message=get_transient('link-'.$item['id']);
    1424
     
    2838
    2939<a class=“page-title-action”
    30 href=“<?php echo get_admin_url(get_current_blog_id(),'admin.php?page=clickwhale');?>”><?php_e(“返回列表”,$this->plugin_name)?></a>
     40href=“<?php echo get_admin_url(get_current_blog_id(),
     41'管理员.php?页面=点击鲸鱼');?>“><?php_e('返回列表',$this->plugin_name)?></a>
    3142<a href=“<?php echo get_admin_url(get_current_blog_id(),'admin.php?page=clickwhale-edit-link');?>”
    3243class=“页面标题操作”><?php_e(“添加新内容”,$this->plugin_name)?></a>
     
    8596<p id=“cw-slug--description”></p>
    8697<p id=“cw-slug--text”>
    87                                     <?php$url=__('url预览',$this->plugin_name)。':'。get_bloginfo(“url”).'/';?>
    88                                     <?php echo eschtml($url)?><span><?php-echo-esc_html($item['slug'])?></span>
     98                                    <?php$url=__(“url预览”,
     99$this->plugin_name)。':'。get_bloginfo('url').'/';?>
     100                                    <?php echo eschtml($url)?><span><?php-echo-esc_html($slug)?></span>/
    89101</p>
    90102</td>
     
    107119<tr class=“form-field”>
    108120<th scope=“row”>
    109 <label for=“link_redirection”><?php_e(“重定向类型”,$this->plugin_name)?></标签>
     121<标签=“link_redirection”><?php_e('重定向类型',
     122$this->plugin_name)?></标签>
    110123</th>
    111124<td>
     
    147160                                        ?>
    148161                                    />
    149 <label for=“nofollow”><?php_e('选中以将链接标记为nofollow&noindex',$this->plugin_name)?></标签>
     162<label for=“nofollow”><?php _e('选中以将链接标记为nofollow&noindex',
     163$this->plugin_name)?></标签>
    150164</fieldset>
    151165</td>
     
    169183                                        ?>
    170184                                    />
    171 <label for=“赞助商”><?php_e('选中以将链接标记为赞助商',$this->plugin_name)?></标签>
     185<label for=“赞助商”><?php _ e('选中以将链接标记为赞助商',
     186$this->plugin_name)?></标签>
    172187</fieldset>
    173188</td>
     
    193208                                <?php(电话)
    194209if($item_categories){
    195 $current_categories=isset($item['categories'])?爆炸(',',$item['类别']):[];
     210$current_categories=isset($item['categories'])?爆炸(',',
     211$item[“类别”]):[];
    196212foreach($item_categories作为$category){
    197213                                        ?>
     
    213229}其他{
    214230                                    ?>
    215 <标签><?php_e(“尚未创建类别”,$this->plugin_name)?></标签>
     231<标签><?php _e('尚未创建类别',
     232$this->plugin_name)?></标签>
    216233                                <?php}?>
    217234</td>
  • clickwhale/tags/1.1.3/clickwhare.php

    2865486元 870031兰特  
    1717*插件URI:https://clickwhale.pro
    1818*描述:最佳链接缩短器,点击WordPress的Tracker&Link Pages插件。
    19 *版本:1.1。2
     19*版本:1.1。
    2020*作者:ClickWhale
    2121*作者URI:https://clickwhale.pro
     
    3636*为插件重命名此名称,并在发布新版本时进行更新。
    3737 */
    38 定义('CLICKWHALE_VERSION','1.1。2' );
     38定义('CLICKWHALE_VERSION','1.1。' );
    3939
    4040/**
  • clickwhale/tags/1.1.3/public/class-clickwhale-linkpage.php

    2865486元 2870031元  
    230230阵列_A
    231231                    );
    232 $网址=get_bloginfo(“url”)。“/”$链接数据[“插入”];
     232$网址=拖尾斜杠(get_bloginfo('url').'/'$链接数据[“插入”]);
    233233
    234234if($link_data){
  • clickwhale/tags/1.1.3/readme.txt

    2865486元 870031兰特  
    66需要PHP:7.0.0
    77测试达到:6.1.1
    8 稳定标签:1.1。2
     8稳定标签:1.1。
    99许可证:GPLv2或更高版本
    1010许可证URI:http://www.gnu.org/licenses/gpl-2.0.html
     
    8080==变更日志==
    8181
     82=版本1.1.3(2023年2月23日)=
     83*新建:新链接的随机段塞
     84*新建:链接页面打开图形实时预览
     85*修复:链接和链接页面URL的结束斜杠
     86*信息:小改进
     87
    8288=版本1.1.2(2023年2月15日)=
    83 *微小改进
     89*信息:微小改进
    8490
    8591=版本1.1.1(2023年2月14日)=
     
    9399*新建:按视图和单击次数对链接页进行排序
    94100*新建:按单击对链接排序
     101*调整:CSS/JS
    95102*修复:查看链接页面时出现错误500
    96 *调整:CSS/JS
    97103*信息:PHP版本从5.6.0更改为7.0.0
    98104
  • 单击鲸鱼/trunk/admin/class-clickwhale-admin.php

    2864265兰特 2870031元  
    245245textToCopy=jQuery(this).parent().find('input').val();
    246246
    247 textToCopy=单击whale_admin.siteurl+“/”+textToCopy;
     247textToCopy=单击whale_admin.siteurl+“/”+textToCopy + '/';
    248248jQuery('body').append($temp);
    249249$temp.val(textToCopy).select();
  • 单击鲸鱼/trunk/admin/class-clickwhale-ajax.php

    2864265兰特 2870031元  
    7777$options_migrate[$plugin]=true;
    7878更新选项('单击whale_hide_notice_migrate',$options_migraate);
    79 }其他 if($type===“停用”){
     79}其他if($type===“停用”){
    8080$options_deactive=获取选项('单击whale_hide_notice_deactivity');
    8181$options_deactive[$plugin]=true;
     
    262262
    263263    /**
     264*@返回无效
    264265*@自1.1.0起
    265 *@返回无效
    266266     */
    267267公共函数get_posts_by_post_type(){
     
    301301
    302302    /**
     303*@返回无效
    303304*@自1.1.0起
    304 *@返回无效
    305305     */
    306306公共函数get_cw_links(){
     
    325325
    326326    /**
     327*@返回无效
    327328*@自1.1.0起
    328 *@返回无效
    329329     */
    330330公共函数track_custom_link(){
  • 单击鲸鱼/trunk/admin/class-clickwhale-settings.php

    2831969兰特 2870031元  
    7373“nofollow”=>1,
    7474“赞助商”=>0,
    75 “slug”=>“”
     75“slug”=>“”,
     76'random_slug'=>0,
    7677                )
    7778            ),
     
    309310308=>__('308重定向:永久重定向',$this->plugin_name)
    310311                ),
    311 'description'=>__('设置将用于新链接的默认重定向类型。',$this->plugin_name),
     312'描述'=>__('设置将用于新链接的默认重定向类型。',
     313$this->plugin_name),
    312314            )
    313315        );
     
    343345添加设置字段(
    344346“slug”,
    345 __('链接鼻塞',$this->plugin_name),
     347__('链接前缀',$this->plugin_name),
    346348数组($this,'render_controls'),
    347349'单击whale_general_options',
     
    354356“value”=>$general_options['slug'],
    355357“占位符”=>“”,
    356 “description”=>__(“此时,您可以输入新链接的默认slug。<br><strong>重要提示:</strong>如果您更改slug,现有链接将不会更改。”,$this->plugin_name),
     358“description”=>__('在这里,您可以输入一个前缀,该前缀将在创建新链接时添加。例如:<em>链接</em>。<br><strong>重要提示:</strong>如果更改前缀,它将不会影响现有链接。',
     359$this->plugin_name),
     360            )
     361        );
     362添加设置字段(
     363'随机插入',
     364__(“随机Slug”,$this->plugin_name),
     365数组($this,'render_controls'),
     366'单击whale_general_options',
     367'通用设置节',
     368阵列(
     369“控制”=>“复选框”,
     370“id”=>“random_slug”,
     371'name'=>'clickwhale_general_options[random_slug]',
     372“value”=>设置($general_options['random_slug'])?1 : 0,
     373“label”=>__(“创建新链接时,选择<u>不</u>建议使用随机链接段塞”,
     374$this->plugin_name),
    357375            )
    358376        );
     
    367385“id”=>“tracking_duration”,
    368386“name”=>“clickwhale_tracking_options[tracking_duration]”,
    369 “值”=>设置($tracking_options['tracking_duration'])$tracking_options['tracking_duration']:$defaults['tracking']['options']['跟踪持续时间'],
     387“值”=>$tracking_options['tracking_duration']??$defaults['tracking']['options']['跟踪持续时间'],
    370388“选项”=>$duration
    371389            )
     
    397415“value”=>设置($tracking_options['exclude_user_by_role'])$tracking_options['exclude_user_by_role']:0,
    398416“选项”=>单击whale_WP_User::get_all_roles(),
    399 “description”=>__(“检查应该从跟踪中排除的用户角色。”,$this->plugin_name),
     417'描述'=>__('检查应该从跟踪中排除的用户角色。',
     418$this->plugin_name),
    400419            )
    401420);
  • 单击鲸鱼/trunk/admin/controllers/linkpages/class-clickwhale-linkpage-edit.php

    2864265兰特 2870031元  
    6464
    6565    /**
    66 *@自1.1.0起
    6766*@return数组
     67*@自1.1.0起
    6868     */
    6969公共静态函数get_post_types():数组{
     
    273273
    274274jQuery(“#添加链接类型”).select2({
    275 占位符:“<?php(_e)(“选择链接类型”、“clickwhale”) ?>',
     275占位符:“<?php(_e)(“选择链接类型”、“clickwhale”) ?>',
    276276宽度:“100%”,
    277277搜索的最小结果:-1
    278278                });
    279279jQuery(“#add-links-select”).select2({
    280 占位符:“<?php(_e)(“选择项目”,“点击鲸鱼”) ?>',
     280占位符:“<?php(_e)('选择项目','点击鲸') ?>',
    281281宽度:“100%”,
    282282搜索的最小结果:10
     
    442442倍数:false
    443443}).on('select',function(){//它也有“open”和“close”事件
    444 var attachment=custom_uploader.state().get('selection').first().toJSON();
    445 button.html('<img src=“'+attachment.url+'”>').next.().show().next().val(attachment.id);
     444var attachment=custom_uploader.state().get('selection').first().toJSON(),
     445mediaInput=button.parent().find('input');
     446button.html('<img src=“'+attachment.url+'”>').next().show();
     447mediaInput.val(attachment.id).trigger(“更改”);
    446448}).open();
    447449
     
    455457button.next().val(“”);//清空隐藏字段
    456458button.hide().prev().html('上传图像');
     459                    })
     460.on('keyup change blur','input',function(){
     461禁用_ogpreview_button();
    457462});
     463
     464jQuery('input[type=“hidden”]').bind(“change”,function(){
     465禁用_ogpreview_button();
     466                });
     467jQuery(“.linkpage-logo-remove”)点击(函数(){
     468禁用_ogpreview_button();
     469                });
    458470
    459471                /**
     
    569581                    }
    570582                }
     583
     584函数disable_ogpreview_button(){
     585jQuery(“#opengraph-live-preview”)
     586.addClass(“禁用”)
     587.next()
     588.text(“保存页面以查看打开的图形预览”,“clickwhale”)?>”);
     589                }
    571590            });
    572591</script>
  • 单击鲸鱼/trunk/admin/controllers/linkpages/class-clickwhale-linkpages-list-table.php

    2864265兰特 2870031元  
    4343'edit'=>sprintf('<a href=“?page=clickwhale编辑链接页面&id=%s”>%s</a>',$item['id'],
    4444__(“编辑”,“点击鲸”),
    45 '视图'=>'<a href=“'.get_bloginfo('url').'/'.$item['slug']。'“target=”_blank“>查看</a>',
     45'视图'=>'<a href=“'.get_bloginfo('url').'/'.$item['slug']。'/“target=”_blank“>查看</a>',
    4646“删除”=>sprintf('<a href=“?page=%s&action=delete&id=%s”>%s</a>',
    4747sanitize_text_field($_REQUEST['page']),$item['id'],__('Delete','clickwhale')),
  • 单击whale/trunk/admin/controllers/links/class-clickwhale-link-edit.php

    2831969兰特 2870031元  
    4545
    4646if(isset($request['id']){
    47 $item=$wpdb->get_row($wpdb->prepare(“SELECT*FROM{$wpdb->prefix}clickwhale_links WHERE id=%d”,intval($request['id'])),ARRAY_A);
     47$item=$wpdb->get_row($wpdb->prepare(“SELECT*FROM{$wpdb->prefix}clickwhale_links WHERE id=%d”,
     48intval($request['id']),ARRAY_A);
    4849if(!$item){
    4950$item=$defaults;
     
    125126公共静态函数check_slug($slug,$id){
    126127全局$wpdb;
    127 if($wpdb->get_row($wddb->prepare(“SELECT slug FROM{$wpdb->prefix}clickwhale_links WHERE slug=%s AND id!=%d”,$slug,$id),'ARRAY_A')){
     128如果($wpdb->get_row($wddb->prepare(“SELECT slug FROM{$wpdb->prefix}clickwhale_links WHERE slug=%s AND id!=%d”),
     129$slug,$id),'ARRAY_A')){
    128130返回true;
    129131}其他{
     
    174176
    175177公共函数admin_scripts(){
    176 $nonce=wp_create_nonce('check_slug');
     178$nonce=wp_create_nonce('check_slug');
     179$nonce_random=wp_create_nonce('random_slug');
    177180        ?>
    178181<script type='text/javascript'>
     
    194197“type”:“link”,
    195198“slug”:slug.val(),
    196 “id”:<?php echo esc_attr(intval(isset($_GET['id'])$_获取['id']:0 ) ); ?>
     199“id”:<?php echo esc_attr(intval($_GET['id']??0 ) ); ?>
    197200},函数(响应){
    198201//slug存在
    199202if(response.data===真){
    200203slug.addClass(“错误”);
    201 jQuery('#cw-slug--description').text('<?php_e('此slug已在使用中!请输入另一个slug','clickwhale')?>');
     204jQuery('#cw-slug--description').text('<?php_e('此slug已被使用!请输入另一个slug',
     205“点击鲸鱼”)?>);
    202206                        }
    203207//段塞不存在
     
    214218                    })
    215219                });
    216 
    217220            });
    218221</script>
  • 单击鲸鱼/trunk/admin/css/clickwhale-admin.css

    2864265兰特 2870031元  
    2121顶部:5px;
    2222颜色:#bbbbbb;
     23}
     24
     25.slag-input-edit--换行{
     26显示器:柔性;
     27对齐项目:居中;
     28justify-content:灵活启动;
     29间距:15px;
     30最大宽度:95%;
     31}
     32
     33.slag-input-edit--换行范围{
     34字体大小:13px;
     35不透明度:.7;
    2336}
    2437
  • clickwhale/trunk/admin/helpers/class-clickwhale-links-helper.php

    2831969兰特 2870031元  
    1212    }
    1313
     14    /**
     15*@throws异常
     16     */
     17公共静态函数get_random_slug(int$length=6):string{
     18$characters='abcdefghijklmnopqrstuvwxyz';
     19$string=“”;
     20
     21对于($i=0;$i<$length;$i++){
     22$string.=$字符[random_int(0,strlen($个字符)-1)];
     23        }
     24
     25返回$string;
     26    }
     27
    1428}
  • 单击鲸鱼/trunk/admin/views/linkpages/linkpage-edit.php

    2864265兰特 2870031元  
    5959$seoOGImageId=$social['seo']['gimage']??'';
    6060
     61$seoOGPreviewVendorURL='https://www.opengraph.xyz/url/';
     62$seoOGLPURL=get_bloginfo('url')。'/'。esc_attr($item['slug']).'/';
     63
    6164//横幅
    6265do_action('单击whale_admin_banner');
     
    7679
    7780        <?php if(isset($item['slug'])&&$item['slug']!==''){ ?>
    78 <a href=“<?php echo trailingslashit(get_bloginfo('url')).$item['slug']?>
     81<a href=“<?php echo trailingslashit(get_bloginfo('url')).$item['slug']?>/
    7982target=“_blank”rel=“noopener”
    8083class=“page-title-action”><?php_e(“查看页面”,$this->plugin_name)?></a>
     
    150153                                    <?php$url=__(“url预览”,
    151154$this->plugin_name)。':'。get_bloginfo(“url”).'/';?>
    152                                     <?php echo eschtml($url)?><span><?php-echo-esc_html($item['slug'])?></span>
     155                                    <?php echo eschtml($url)?><span><?php-echo-esc_html($item['slug'])?></span>/
    153156</p>
    154157</td>
     
    382385<tr class=“form-field”>
    383386<th scope=“row”>
    384 <label for=“socialSeoTitle”><?php _(搜索引擎优化le’,$this->plugin_name);?></标签>
     387<label for=“socialSeoTitle”><?php _(搜索引擎优化le’,$this->plugin_name);?></标签>
    385388</th>
    386389<td>
     
    418421</th>
    419422<td>
    420                               <?php if(!get_option('blog_public')||get_option('blog_public')==='0'){?>
     423                              <?php if(!get_option('blog_public')||get_option['blog_public')==='0'){?>
    421424<div class=“links-info”>
    422425                                        <?php打印(
     
    533536</td>
    534537</tr>
     538<tr class=“form-field”>
     539<th scope=“row”>
     540<label for=“ogimage”><?php_e(“打开图形预览”,$this->plugin_name)?></标签>
     541</th>
     542<td>
     543<a class=“button”
     544id=“opengraph-live-preview”
     545href=“<?php echo$seoOGPreviewVendorURL.$seoGOGLPURL?>”
     546target=“_blank”
     547rel=“noopener”>
     548                                    <?php_e(“查看实时预览”,$this->plugin_name)?>
     549</a>
     550<p class=“description”></p>
     551</td>
     552</tr>
    535553</tbody>
    536554</表格>
  • 单击whale/trunk/admin/views/links/link-edit.php

    2831969兰特 2870031元  
    66$item_categories=$link_edit->获取链接类别();
    77$options_general=获取选项('单击whale_general_options');
     8
     9//鼻塞
    810if($item['slu']){
    911$slug=$item['slug'];
    1012}其他{
    11 $slug=isset($options_general['slug'])&&$options\general['slug']!==''$options_general['slug'].'/':'';
     13if(!isset($options_general['random_slug'])|$options_general[“随机段”]){
     14$randomSlug=单击whaleLinksHelper::get_random_slug();
     15}其他{
     16$randomSlug=“”;
     17    }
     18$slug=isset($options_general['slug'])&&$options\general['slug']!==''
     19$options_general['slug'].'/'$随机Slug
     20:$randomSlug;
    1221}
     22
    1323$message=get_transient('link-'.$item['id']);
    1424
     
    2838
    2939<a class=“page-title-action”
    30 href=“<?php echo get_admin_url(get_current_blog_id(),'admin.php?page=clickwhale');?>”><?php_e(“返回列表”,$this->plugin_name)?></a>
     40href=“<?php echo get_admin_url(get_current_blog_id(),
     41'管理员.php?页面=点击鲸鱼');?>“><?php_e('返回列表',$this->plugin_name)?></a>
    3142<a href=“<?php echo get_admin_url(get_current_blog_id(),'admin.php?page=clickwhale-edit-link');?>”
    3243class=“页面标题操作”><?php_e(“添加新内容”,$this->plugin_name)?></a>
     
    8596<p id=“cw-slug--description”></p>
    8697<p id=“cw-slug--text”>
    87                                     <?php$url=__('url预览',$this->plugin_name)。':'。get_bloginfo(“url”).'/';?>
    88                                     <?php echo eschtml($url)?><span><?php-echo-esc_html($item['slug'])?></span>
     98                                    <?php$url=__(“url预览”,
     99$this->plugin_name)。':'。get_bloginfo('url').'/';?>
     100                                    <?php echo eschtml($url)?><span><?php-echo-esc_html($slug)?></span>/
    89101</p>
    90102</td>
     
    107119<tr class=“form-field”>
    108120<th scope=“row”>
    109 <label for=“link_redirection”><?php_e(“重定向类型”,$this->plugin_name)?></标签>
     121<标签=“link_redirection”><?php_e('重定向类型',
     122$this->plugin_name)?></标签>
    110123</th>
    111124<td>
     
    147160                                        ?>
    148161                                    />
    149 <label for=“nofollow”><?php_e('选中以将链接标记为nofollow&noindex',$this->plugin_name)?></标签>
     162<label for=“nofollow”><?php _e('选中以将链接标记为nofollow&noindex',
     163$this->plugin_name)?></标签>
    150164</fieldset>
    151165</td>
     
    169183                                        ?>
    170184                                    />
    171 <label for=“赞助商”><?php_e('选中以将链接标记为赞助商',$this->plugin_name)?></标签>
     185<label for=“赞助商”><?php _ e('选中以将链接标记为赞助商',
     186$this->plugin_name)?></标签>
    172187</fieldset>
    173188</td>
     
    193208                                <?php(电话)
    194209if($item_categories){
    195 $current_categories=isset($item['categories'])?爆炸(',',$item['类别']):[];
     210$current_categories=isset($item['categories'])?爆炸(',',
     211$item[“类别”]):[];
    196212foreach($item_categories作为$category){
    197213                                        ?>
     
    213229}其他{
    214230                                    ?>
    215 <标签><?php_e(“尚未创建类别”,$this->plugin_name)?></标签>
     231<标签><?php _e('尚未创建类别',
     232$this->plugin_name)?></标签>
    216233                                <?php}?>
    217234</td>
  • clickwhale/trunk/clickwhale.php

    2865486元 870031兰特  
    1717*插件URI:https://clickwhale.pro
    1818*描述:最佳链接缩短器,点击WordPress的Tracker&Link Pages插件。
    19 *版本:1.1。2
     19*版本:1.1。
    2020*作者:ClickWhale
    2121*作者URI:https://clickwhale.pro
     
    3636*为插件重命名此名称,并在发布新版本时进行更新。
    3737 */
    38 定义('CLICKWHALE_VERSION','1.1。2' );
     38定义('CLICKWHALE_VERSION','1.1。' );
    3939
    4040/**
  • clickwhale/ttrunk/public/class-clickwhale-linkpage.php

    2865486元 2870031元  
    230230阵列_A
    231231                    );
    232 $网址=get_bloginfo(“url”)。“/”$链接数据[“插入”];
     232$网址=拖尾斜杠(get_bloginfo('url').'/'$链接数据[“插入”]);
    233233
    234234if($link_data){
  • 单击鲸鱼/树干/自述.txt

    2865486元 870031兰特  
    66需要PHP:7.0.0
    77测试达到:6.1.1
    8 稳定标签:1.1。2
     8稳定标签:1.1。
    99许可证:GPLv2或更高版本
    1010许可证URI:http://www.gnu.org/licenses/gpl-2.0.html
     
    8080==变更日志==
    8181
     82=版本1.1.3(2023年2月23日)=
     83*新建:新链接的随机段塞
     84*新建:链接页面打开图形实时预览
     85*修复:链接和链接页面URL的结束斜杠
     86*信息:小改进
     87
    8288=版本1.1.2(2023年2月15日)=
    83 *微小改进
     89*信息:微小改进
    8490
    8591=版本1.1.1(2023年2月14日)=
     
    9399*新建:按视图和单击次数对链接页进行排序
    94100*新建:按单击对链接排序
     101*调整:CSS/JS
    95102*修复:查看链接页面时出现错误500
    96 *调整:CSS/JS
    97103*信息:PHP版本从5.6.0更改为7.0.0
    98104
注:请参见TracChangeset(跟踪变更集)获取有关使用变更集查看器的帮助。