插件目录

变更集1431146


忽略:
时间戳:
2016年6月6日上午06:17:44(8年(之前)
作者:
bhavikdream河
消息:

删除1.4

位置:
woocommerce-order-address-print/tags/1.3.2
文件夹:
3已编辑

图例:

未修改
补充
远离的
  • woocommerce-order-address-print/tags/1.3.2/readme.txt

    1431123兰特 1431146兰特  
    66要求至少:3.5
    77测试达到:4.3
    8 稳定标签:1。4
     8稳定标签:1。3.2
    99许可证:GPLv2或更高版本
    1010许可证URI:http://www.gnu.org/licenses/gpl-2.0.html
  • woocommerce-order-address-print/tags/1.3.2/shipingsetting.php

    193852年1月 1431146兰特  
    44类WooCommerce_shipping_Address_Labels_Settings{
    55公共函数__construct(){
    6            
     6
    77add_action(“admininit”,数组(&$this,“init_settings”);//寄存器设置
    8        
    9            
    10         }
    11 
    12        
    13        
    14    
     8
     9
     10        }
     11
     12
     13
     14
    1515        /**
    1616*将设置链接添加到插件页面
    1717         */
    18        
    19 公众函数settings_page(){
     18
     19公众的静止的函数settings_page(){
    2020            ?>
    2121<div class=“wrap”>
    2222<div class=“icon32”id=“icon-options-general”>
    2323<h2><?php_e(“WooCommerce订单地址打印”,“woap”);?></h2>
    24                    
     24
    2525<div class=“wclabels-settings”>
    2626<form method=“post”action=“options.php”>
     
    4646            <?php(电话)
    4747        }
    48        
     48
    4949        /**
    5050*用户设置。
    5151         */
    52        
     52
    5353公共函数init_settings(){
    5454$option='shp_labels_template_settings';
    55        
     55
    5656//在wp_options中创建选项。
    5757if(false===get_option($option)){
    5858$this->default_settings($option);
    5959            }
    60        
     60
    6161//节。
    6262添加设置节(
     
    159159                )
    160160            ); */
    161            
     161
    162162添加设置字段(
    163163“show_qr”,
     
    172172                )
    173173            );
    174            
    175            
     174
     175
    176176添加设置字段(
    177177“ecc”,
     
    191191                )
    192192            );
    193            
     193
    194194添加设置字段(
    195195'代码_大小',
     
    211211'8'=>__('8','woap'),
    212212'9'=>__('9','woap'),
    213 ‘10’=>__(‘10’,‘woap’),                     
    214                        
    215                        
     213‘10’=>__(‘10’,‘woap’),
     214
     215
    216216                    ),
    217217                )
    218218            );
    219            
    220            
     219
     220
    221221
    222222添加设置字段(
     
    322322                )
    323323            );
    324            
    325            
     324
     325
    326326添加设置字段(
    327327'自定义样式',
     
    378378            }
    379379        }
    380        
     380
    381381        /**
    382382*文本元素回调。
     
    388388$id=$args['id'];
    389389$size=isset($args['size'])$args['size']:'25';
    390        
     390
    391391$options=获取选项($menu);
    392        
     392
    393393if(isset($options[$id])){
    394394$current=$options[$id];
     
    396396$current=isset($args['default'])$args['default']:'';
    397397            }
    398        
     398
    399399$html=sprintf('<input type=“text”id=“%1$s”name=“%2$s[%1$s]”value=“%3$s”size=“%4$s”/>',$id,$menu,$current,$size);
    400        
     400
    401401//显示选项说明。
    402402if(isset($args['description'])){
    403403$html.=sprintf('<p class=“description”>%s</p>',$args['description']);
    404404            }
    405        
     405
    406406echo$html;
    407407        }
     
    438438$current=isset($args['default'])$args['default']:'';
    439439                }
    440                
     440
    441441//输出字段
    442442printf('<input type=“text”id=“%1$s_%3$s”name=“%2$s[%1$s][%3$s]”value=“%4$s”size=“%5$s”/><br/>',$id,$menu,$name,$current,$size);
    443    
    444             }
    445        
    446        
     443
     444            }
     445
     446
    447447//显示选项说明。
    448448if(isset($args[“说明”]){
    449449printf('<p class=“description”>%s</p>',$args['description']);
    450450            }
    451        
     451
    452452        }
    453453
     
    458458$width=$args['width'];
    459459$height=$args['height'];
    460        
     460
    461461$options=获取选项($menu);
    462        
     462
    463463if(isset($options[$id])){
    464464$current=$options[$id];
     
    466466$current=isset($args['default'])$args['default']:'';
    467467            }
    468        
     468
    469469printf('<textarea id=“%1$s”name=“%2$s[%1$s]”cols=“%4$s”rows=“%5$s”/>%3$s</textarea>',$id,$menu,$current,$width,$height);
    470        
     470
    471471//显示选项说明。
    472472if(isset($args[“说明”]){
     
    485485$menu=$args['menu'];
    486486$id=$args['id'];
    487        
     487
    488488$options=获取选项($menu);
    489        
     489
    490490if(isset($options[$id])){
    491491$current=$options[$id];
     
    493493$current=isset($args['default'])$args['default']:'';
    494494            }
    495        
     495
    496496printf('<select id=“%1$s”name=“%2$s[%1$s]”>',$id,$menu);
    497    
     497
    498498foreach($args['options']作为$key=>$label){
    499499printf('<option value=“%s”%s>%s</option>',$key,selected($current,$key,false),$label);
    500500            }
    501    
     501
    502502echo“</select>”;
    503503
     
    510510案例“text_element_callback”:
    511511$this->text_element_callback($custom['args']);
    512 断裂;     
     512断裂;
    513513案例“multiple_text_element_callback”:
    514514$this->multiple_text_element_callback($custom['args']);
    515 断裂;     
     515断裂;
    516516默认值:
    517517断裂;
    518518                }
    519519            }
    520        
     520
    521521//显示选项说明。
    522522if(isset($args['description'])){
     
    536536$menu=$args['menu'];
    537537$id=$args['id'];
    538        
     538
    539539$options=获取选项($menu);
    540        
     540
    541541if(isset($options[$id])){
    542542$current=$options[$id];
     
    544544$current=isset($args['default'])$参数[默认值]:“”;
    545545            }
    546        
     546
    547547printf('<input type=“checkbox”id=“%1$s”name=“%2$s[%1$s]”value=“1”%3$s/>',$id,$menu,checked(1,$current,false));
    548        
     548
    549549//显示选项说明。
    550550if(isset($args['description'])){
    551551printf('<p class=“description”>%s</p>',$args['description']);
    552552            }
    553        
     553
    554554        }
    555555
     
    561561公共函数section_options_callback(){
    562562        }
    563        
     563
    564564        /**
    565565*验证选项。
     
    572572//创建用于存储已验证选项的数组。
    573573$output=数组();
    574        
     574
    575575//循环访问每个传入选项。
    576576foreach($input作为$key=>$value){
    577        
     577
    578578//检查当前选项是否有值。如果是这样,请处理它。
    579579if(isset($input[$key])){
    580        
     580
    581581//去除所有HTML和PHP标记,并正确处理带引号的字符串。
    582582if(is_array($input[$key]){
     
    590590                }
    591591            }
    592        
     592
    593593//返回处理此操作筛选的任何其他函数的数组。
    594594返回apply_filters('shp_labels_validate_input',$output,$input);
     
    597597}//结束类
    598598}//结束class_exists
    599 
    600 
    601 
  • wooccommerce订单地址打印/标签/1.3.2/shipping_addre_print.php

    1289769兰特 1431146兰特  
    66*作者:巴维克·帕特尔
    77*作者URI:http://www.uniquesweb.co.in/demo/woocommerce
    8 *版本:1.3
     8*版本:1.3.2
    99*文本域:woap
    1010*域路径:/languages/
     
    4646        {
    4747
    48 self::$plugin_version='1.3';
     48self::$plugin_version='1.3.2';
    4949自我::$plugin_prefix='shpt_';
    5050自身::$plugin_basefile_path=__FILE__;
     
    358358
    359359
    360 wp_register_style('shplabels-admin-styles',self::$plugin_url.'/css/shpllabels-admin-styles.css',array(),'1.3','全部');
     360wp_register_style('shplabels-admin-styles',self::$plugin_url.'/css/shpllabels-admin-styles.css',array(),'1.3.2','全部');
    361361wp_enqueue_style('shplabels-admin-styles');
    362362if(isset($this->设置['showqr'])&&$this->settings['show qr']])
     
    383383
    384384
    385 wp_register_script('shlabels-admin-scripts',self::$plugin_url.'js/shlabels-admins-scripts.js',数组('jquery'),'1.3');
     385wp_register_script('shlabels-admin-scripts',self::$plugin_url.'js/shlabels-admins-scripts.js',数组('jquery'),'1.3.2');
    386386wp_enqueue_script(“shlabels-admin-scripts”);
    387387wp_localize_script('shlabels-admin-scripts','sh_pl',$translation_array);
     
    418418$bulk_print_url=管理员url('admin-ajax.php');
    419419$sendback=add_query_arg(数组(“action”=>“bulk_shipping_print”,“id”=>join(“,”,数组($post_id)),$bulk_print_url);
    420 $args=wp_parse_args(数组(“post”=>$post_id,“action”=>编辑,'shippint_add_print'=>true,'total'=>$total,“print_url”=>urlencode($sendback),$args);
     420$args=wp_parse_args(数组(“post”=>$post_id,“action”=>“编辑”,“发货地址打印”=>true,“print_url”=>urlencode($sendback),$args);
    421421$sendback=add_query_arg($args,'');
    422422
注:请参见TracChangeset(跟踪变更集)获取有关使用变更集查看器的帮助。