变更集1296625
时间戳: 2015年11月29日上午09:58:37 ( 9年 (之前) 位置: eve-shipinfo/干线 文件夹: -
新增44个 2已删除 10编辑 2个已移动
-
资产/横幅-1544x500.jpg (已修改) ( 以前的 ) -
资产/横幅-772x250.jpg (已修改) ( 以前的 ) -
类/EVEShipInfo.php (已修改) ( 6个差异 ) -
classes/EVEShipInfo/Admin/Page/Main/Themes.php类 (已修改) ( 2个差异 ) -
classes/EVEShipInfo/Collection/Ship.php类 (已修改) ( 4个差异 ) -
classes/EVEShipInfo/Collection/Ship/Attribute.php类 (已修改) ( 2个差异 ) -
classes/EVEShipInfo/Plugin.php类 (已修改) ( 1个差异 ) -
css/主题公园.css (已删除) -
css/主题灯.css (已删除) -
css/管理员.css (已修改) ( 1个差异 ) -
eve-shipinfo.php版本 (已修改) ( 1个差异 ) -
js/admin/Themes.js (新增) -
自述.txt (已修改) ( 3个差异 ) -
主题 (新增) -
主题/深色 (新增) -
主题/深色/深色.css (新增) -
主题/深色/预览.jpg (已移动) (已从移动 eve-shipinfo/trunk/assets/theme-Dark.jpg ) -
主题/灯光 (新增) -
主题/灯光/灯光.css (新增) -
主题/灯光/预览.jpg (已移动) (已从移动 eve-shipinfo/trunk/assets/theme-Light.jpg ) -
主题/sytek (新增) -
主题/赛特/外星人 (新增) -
主题/sytek/aigen/alien.css (新增) -
主题/sytek/arien/bg-main.png (新增) -
主题/sytek/aigen/nav-bg-active.png (新增) -
主题/sytek/aigen/nav-close.png (新增) -
主题/sytek/averian/nav-hover.png (新增) -
主题/sytek/inger/preview.jpg (新增) -
主题/系统/火星攻击 (新增) -
主题/sytek/mars攻击/bg-main.png (新增) -
主题/sytek/mars-attacks/mars-attack.css (新增) -
主题/sytek/mars-attacks/nav-bg-active.png (新增) -
主题/sytek/mars-attacks/nav-close.png (新增) -
主题/sytek/mars攻击/nav-hover.png (新增) -
主题/sytek/mars-attacks/preview.jpg (新增) -
主题/赛特/权力危险 (新增) -
主题/sytek/power-rangers/bg-main.png (新增) -
主题/sytek/power-rangers/nav-bg-active.png (新增) -
主题/sytek/power-rangers/nav-close.png (新增) -
主题/sytek/power-rangers/nav-hover.png (新增) -
主题/sytek/power-rangers/css (新增) -
主题/sytek/power-rangers/preview.jpg (新增) -
主题/sytek/红色的肖恩 (新增) -
主题/sytek/shaun-of-the-red/bg-main.png (新增) -
主题/sytek/shaun-of-the-red/nav-bg-active.png (新增) -
主题/sytek/shaun-of-the-red/nav-close.png (新增) -
主题/sytek/shaun-of-the-red/nav-end.png (新增) -
主题/sytek/shaun-of-the-red/nav-hover.png (新增) -
主题/sytek/shaun-of-the-red/preview.jpg (新增) -
主题/sytek/shaun-of-the-red/shaun-of-ther-red.css (新增) -
主题/sytek/start-rek (新增) -
主题/sytek/star-trek/bg-main.png (新增) -
主题/sytek/star-trek/nav-bg-active.png (新增) -
主题/sytek/star-trek/nav-close.png (新增) -
主题/sytek/star-trek/nav-hover.png (新增) -
主题/sytek/star-trek/preview.jpg (新增) -
主题/sytek/star-trek/star-trek.css (新增) -
主题/sytek/sytek.css (新增)
图例:
未修改 补充 远离的
-
eve-shipinfo/trunk/classes/EVEShipInfo.php 1237087元 1296625兰特 348 348 公共函数getThemeID() 349 349 { 350 return$this->getOption('theme','Light'); 350 $themeID=strtollower($this->getOption('theme','light')); 351 if(isset($this->themes[$themeID])){ 352 返回$themeID; 353 } 354 355 重置($this->主题); 356 357 返回键($this->themes); 351 358 } 352 359 … … 354 361 { 355 362 $this->setOption('theme',$id); 363 } 364 365 公共函数themeIDExists($id) 366 { 367 返回isset($this->themes[$id]); 368 } 369 370 公共函数themeSubstyleExists($id,$substyle) 371 { 372 if(!isset($this->themes[$id]){ 373 返回false; 374 } 375 376 foreach($this->themes[$id]['substyles']作为$def){ 377 if($def['name']==$substyle){ 378 返回true; 379 } 380 } 381 382 返回false; 383 } 384 385 公共函数setThemeSubstyle($substyle) 386 { 387 $this->setOption('tee-substyle',$substyle); 388 } 389 390 公共函数getThemeSubstyle() 391 { 392 $themeID=$this->getThemeID(); 393 if(空($this->themes[$themeID]['substyles']){ 394 返回null; 395 } 396 397 $substyle=$this->getOption('theme-substyle',''); 398 if($this->themeSubstyleExists($themeID,$substyle)){ 399 返回$substyle; 400 } 401 402 return$this->themes[$themeID]['substyles'][0]['name']; 356 403 } 357 404 … … 363 410 364 411 /** 365 *初始化插件的主题。 主题只是一个CSS文件, 366 * (例如ThemeLight.css),它扩展了基本css文件, 367 * EVEShipInfo.css,它处理基本元素结构。 412 *初始化插件的主题。 这些存储在主题中 413 * 子文件夹,并具有自己的css文件和图像,并且可以具有 414 * 任意数量的子样式,例如用于不同颜色。 368 415 */ 369 416 受保护函数handle_initThemes() 370 417 { 371 418 $this->注册表主题( 372 ' L(左) 右侧', 419 ' 我 右侧', 373 420 __('Light','EVEShipInfo'), 374 __(A) 轻松主题博客的主题 s.’,‘EVEShipInfo’) 421 __(A) 光主题布局的极简主题 s.','EVEShipInfo') 375 422 ); 376 423 377 424 $this->注册表主题( 378 ' D类 方舟', 425 ' d日 方舟', 379 426 __(“深色”,“EVEShipInfo”), 380 __(“黑暗主题博客的主题。”,“EVEShipInfo”) 427 __(“暗主题布局的极简主题。”,“EVEShipInfo”) 428 ); 429 430 $this->注册表主题( 431 “sytek”, 432 “Sytek”, 433 __(“带有颜色子样式的时尚深色主题”,“EVEShipInfo”), 434 阵列( 435 阵列( 436 “name”=>“外星人”, 437 “label”=>“Alien green” 438 ), 439 阵列( 440 “name”=>“star-trek”, 441 “label”=>“Star Trek蓝色” 442 ), 443 阵列( 444 “name”=>“火星攻击”, 445 'label'=>'火星攻击橙色' 446 ), 447 阵列( 448 “name”=>“shaun-of-the-red”, 449 “label”=>“红色肖恩” 450 ), 451 阵列( 452 “name”=>“power-rangers”, 453 'label'=>'Power Rangers粉色' 454 ), 455 ) 381 456 ); 382 457 } … … 390 465 *@param字符串$label 391 466 *@param字符串$description 392 */ 393 受保护的函数注册表主题($id、$label、$description) 467 *@param数组$substyles 468 */ 469 受保护的函数registerTheme($id、$label、$description、$substyles=array()) 394 470 { 395 471 $this->themes[$id]=数组( 396 472 'label'=>$label, 397 “description”=>$description 473 “description”=>$description, 474 “子样式”=>$substyles 398 475 ); 399 476 } … … 514 591 wp_register_script('eveshipinfo_admin_fittingslist',$this->getScriptURL('admin/fittingslist.js'),数组('jquery')); 515 592 wp_enqueue_script('eveshipinfo_admin_fittingslist'); 593 wp_register_script('eveshipinfo_admin_themes',$this->getScriptURL('admin/themes.js'),数组('jquery')); 594 wp_enqueue_script('eveshipinfo_admin_themes'); 516 595 wp_register_style('eveshipinfo_admin',$this->getScriptURL('admin.css')); 517 596 wp_enque_style('veshipinfo_admin'); … … 534 613 wp_enqueue_style('eveshipinfo'); 535 614 536 wp_register_style('eveshipinfo_theme',$this->getScriptURL('theme'.$this->getThemeID().')。 css’),数组('eveshipinfo'); 615 $themeID=$this->getThemeID(); 616 wp_register_style('eveshipinfo_theme',$this->getURL()。'/ 主题/'$ 主题ID为'/'$ 他们自己。”。 css’,数组('eveshipinfo'); 537 617 wp_enqueue_style('eveshipinfo_theme'); 618 619 $substyle=$this->getThemeSubstyle(); 620 if(!空($substyle)){ 621 $url=$this->getURL()。'/ 主题/'$ 主题我。“/”$ 子样式。“/”$ 子样式。 css’; 622 wp_register_style('eveshipinfo_substyle',$url,数组('evesipinfo')); 623 wp_enqueue_style('eveshipinfo_substyle'); 624 } 538 625 } 539 626 -
eve-shipinfo/trunk/classes/EVEShipInfo/Admin/Page/Main/Themes.php 1237087元 1296625兰特 15 15 受保护函数_render() 16 16 { 17 $此->c 创建主题表单 (); 17 $此->c 检查请求 (); 18 18 19 if($this->form->isSubmitted()&&$this->form->validate()){ 20 $values=$this->form->getValues(); 21 $this->plugin->setThemeID($values['themeID']); 19 $box=$this->ui->createStuffBox(__(“前端主题”,“EVEShipInfo”)) 20 ->setIcon($this->ui->icon()->theme()) 21 ->设置摘要( 22 __(“这让您可以在船弹出窗口和EFT配件的捆绑前端主题中进行选择。”,“EVEShipInfo”)。”。 23 “<b>”__ (“提示:”,“EVEShipInfo”)。”</ b> '。 24 __('单击主题预览缩略图以将其最大化。','EVEShipInfo') 25 ) 26 ->设置内容($this->renderThemeSelect()); 27 28 return$box->render(); 29 } 30 31 受保护的函数checkRequest() 32 { 33 if(isset($_REQUEST[“主题ID”])&&$this->plugin->themeIDExists($_REQUEST[“主题ID”])) 34 { 35 $themeID=$_REQUEST['themeID']; 36 $this->plugin->setThemeID($themeID); 37 38 if(isset($_REQUEST['substyle'])&&$this->plugin->themeSubstyleExists($themeID,$_REQUEST['subtyle'])){ 39 $this->plugin->setThemeSubstyle($_REQUEST['substyle']); 40 } 41 22 42 $this->addSuccessMessage(sprintf( 23 43 __(“前端主题已在%2$s成功设置为%1$s”,“EVEShipInfo”), … … 26 46 )); 27 47 } 28 29 $box=$this->ui->createStuffBox(__(“前端主题”,“EVEShipInfo”)) 30 ->设置图标($this->ui->icon()->theme()) 31 ->setAbstract(__('这让您可以从船弹出窗口和EFT配件的捆绑前端主题中选择一个。','EVEShipInfo')) 32 ->setContent($this->form->render()); 33 34 return$box->render(); 35 48 } 36 49 37 受保护的函数createThemeForm() 50 受保护的$主题; 51 52 受保护的$activeThemeID; 53 54 受保护的$activeSubstyle; 55 56 受保护函数renderThemeSelection() 38 57 { 39 $themes=$this->plugin->getThemes(); 40 $theme=$this->plugin->getThemeID(); 58 $this->themes=$this->插件->getThemes(); 59 $this->activeThemeID=$this->插件->获取主题ID(); 60 $this->activeSubstyle=$this->插件->获取主题Substyle(); 41 61 42 $form=$this->createForm(“主题”,数组(“主题ID”=>$theme)); 43 $form->setSubmitLabel(__(“选择主题”,“EVEShipInfo”)); 44 $form->setSubmitIcon($this->ui->icon()->theme()); 62 $html(美元)= 63 冲刺( 64 '<script>EVEShipInfo_Themes。 BaseURL=%s; EVEShipInfo_主题。 PageURL=%s</script>', 65 json_encode($this->plugin->getURL()。'/ 主题), 66 json_encode($this->getURL()) 67 ). 68 '<div class=“themes-list”>'。 69 $this->renderThemeEntry($this->activeThemeID,true); 45 70 46 $group=$form->addRadioGroup('themeID',__('前端主题','EVEShipInfo')); 47 foreach($themes作为$themeID=>$def){ 48 $组->addItem( 49 $他们自己, 50 “<b>”$ 定义['label']。'</ b> <br/><br/>“。 51 “<i>”$ def〔'描述'〕。'</ i> <br/>”。 52 '<img src=“'.$this->plugin->getURL().'/assets/theme-'.$themeID.'.jpg”/>' 53 ); 71 $ids=array_keys($this->themes); 72 foreach($ids作为$themeID){ 73 if($themeID!=$this->activeThemeID){ 74 $html.=$ this->renderThemeEntry($themeID); 75 } 76 } 77 $html= 78 “</div>”; 79 80 返回$html; 81 } 82 83 受保护函数renderThemeEntry($themeID,$isActive=false) 84 { 85 $def=$this->主题[$themeID]; 86 $jsID=$this->plugin->nextJSID(); 87 $clientName=“主题”$ jsID; 88 89 $label=$def['label']; 90 91 $active=“”; 92 if($isActive){ 93 $active=“active”; 94 $label.='< span class=“theme-currentname”>'__ (“当前主题”,“EVEShipInfo”)。”</ span>'; 54 95 } 55 96 56 $this->form=$form; 97 $thumbURL='preview.jpg'; 98 if(!空($def['substyles']){ 99 $activeSubstyle=$def['substyles'][0]; 100 if($themeID==$this->activeThemeID){ 101 foreach($def['substyles']作为$subDef){ 102 if($subDef['name']==$this->activeSubstyle){ 103 $activeSubstyle=$subDef; 104 断裂; 105 } 106 } 107 } 108 109 $thumbURL=$activeSubstyle['name']。'/ preview.jpg'; 110 } 111 112 $html=冲刺( 113 '<script>%s=EVEShipInfo_Themes。 注册(%s,%s,%s)</script>', 114 $clientName, 115 json_encode($jsID), 116 json_encode($themeID), 117 json_encode($def['label']) 118 ). 119 '<div class=“theme-entry'.$active.'”>'。 120 '<a class=“button button-primary theme-button”href=“javascript:void(0);”onclick=“'.$clientName.'.Apply(\''.$themeID.'\');”>'__ (“应用”,“EVEShipInfo”)。”</ a> '。 121 '<h3 class=“theme-name”>'$ 标签。'</ h3>’。 122 '<p class=“theme-description”>'$ 定义['description']。'</ p> '。 123 '<img src=“'.$this->plugin->getURL().'/themes/'.$themeID.'/'.$thumbURL.'”class=“theme-tumb”id=“'.$jsID.'-tumb“onclick=”'.$clientName.'.ToggleThumbnail();“/><br/>'; 124 125 if(!空($def['substyles']){ 126 foreach($def['substyles']作为$substyle){ 127 $activeS=假; 128 if($substyle['name']==$activeSubstyle['name']){ 129 $activeS=真; 130 } 131 132 $html= 133 冲刺( 134 “<script>%s.RegisterSubstyle(%s,%s,%s)</script>”, 135 $clientName, 136 json_encode($substyle['name']), 137 json_encode($substyle['label']), 138 json_encode($activeS) 139 ); 140 } 141 $html= 142 __('子样式:','EVEShipInfo')。'& quot< span id=“'.$jsID.'-substyle-label”>'$ activeSubstyle['label']。'</ span>"< br/>'。 143 '<a href=“javascript:void(0);”onclick=“'.$clientName.'.Previous();”>«;'__ ('Previous','EVEShipInfo')。'</ a> '。 144 '|<span id=“'.$jsID.'-position”>1</span>/'.count($def['substyles'])。' | '. 145 '<a href=“javascript:void(0);”onclick=“'.$clientName.'.Next();”>'__ (“下一步”,“EVEShipInfo”)。”& 拉奎</ a> '; 146 } 147 $html= 148 “<script>jQuery(document).ready(function(){'.$clientName.'.Start();})</script>”。 149 “</div>”。 150 '<div style=“clear:both;”></div>'; 151 152 返回$html; 57 153 } 58 154 } -
eve-shipinfo/trunk/classes/EVEShipInfo/Collection/Ship.php 1236586兰特 1296625兰特 97 97 公共函数getDescription() 98 98 { 99 return$this->getPropertyValue('description'); 99 静态$descr=空; 100 101 //修复了一些奇怪的非utf8字符 102 //数据转储中的描述。 103 if(!isset($descr)){ 104 $descr=$this->getPropertyValue('description'); 105 $regex='/((?:[\x00-\x7F]|[\xC0-\xDF][\x80-\xBF]|[[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x800-\xBB]{3}){1100})|/ x’; 106 $descr=preg_replace($regex,'$1',$descr); 107 } 108 109 返回$descr; 100 110 } 101 111 … … 187 197 公共函数getPowerToSpeed() 188 198 { 189 return$this->getAttribute (“powerToSpeed”); 199 return$this->getAttribute 价值 (“powerToSpeed”); 190 200 } 191 201 … … 271 281 $name=$区域$ 类型。' 损伤共振’; 272 282 273 return$this->getAttribute ($name,$units); 283 return$this->getAttribute 价值 ($name,$units); 274 284 } 275 285 … … 888 898 self::$registeredShips[$shipID]=true; 889 899 900 $encoded=json_encode($this->exportData()); 901 if(!$编码){ 902 返回“”; 903 } 904 890 905 返回 891 906 “<script>”。 892 907 冲刺( 893 908 “EVEShipInfo.AddShip(%s);”, 894 json_encode($this->exportData()) 909 $编码 895 910 ). 896 911 “</script>”; -
eve-shipinfo/trunk/classes/EVEShipInfo/Collection/Ship/Attribute.php 999633卢比 1296625兰特 93 93 if($漂亮){ 94 94 $tokens=爆炸('.',$value); 95 $0000=$token[0]; 96 95 if(isset($令牌[1])){ 97 96 返回number_format($value,2); … … 102 101 103 102 返回$value; 103 } 104 105 /** 106 *以字符串形式检索属性值 107 *机组名称(如有)。 108 * 109 *示例:500 m/s 110 * 111 *@返回字符串 112 */ 113 公共函数getValuePretty() 114 { 115 $result=$this->getValue(true); 116 117 $units=$this->getUnitName(); 118 if(!空($单位)){ 119 $result.=“”$ 单位; 120 } 121 122 返回$result; 104 123 } 105 124 -
eve-shipinfo/trunk/classes/EVEShipInfo/Plugin.php 1236586兰特 1296625兰特 22 22 } 23 23 24 受保护的$galleryURL; 25 24 26 公共函数getGalleryURL() 25 27 { 26 返回$this->url。'/ 画廊'; 27 } 28 if(isset($this->galleryURL)){ 29 return$this->galleryURL; 30 } 31 32 $upload_dir=wp_upload_dir(); 33 $path=$upload_dir['basedir']。'/ eve-shipinfo'; 34 if(is_dir($path)){ 35 36 return$upload_dir['baseurl']。'/ eve-shipinfo'; 37 }其他{ 38 $url=$this->url。”/ 画廊'; 39 } 40 41 $this->galleryURL=$url; 42 返回$url; 43 } 44 45 受保护的$galleryPath; 28 46 29 47 公共函数getGalleryPath() 30 48 { 31 return$this->dir.'/gallower'; 49 if(isset($this->galleryPath)){ 50 return$this->galleryPath; 51 } 52 53 $upload_dir=wp_upload_dir(); 54 $path=$upload_dir['basedir']。'/ eve-shipinfo'; 55 56 if(!is_dir($path)){ 57 $path=$this->dir.'/gallower'; 58 } 59 60 $this->galleryPath=$path; 61 return$path; 32 62 } 33 63 -
eve-shipinfo/trunk/css/admin.css 1237087元 1296625兰特 120 120 边距-底部:8px; 121 121 } 122 123 .theme条目.theme按钮{ 124 位置:相对; 125 顶部:10倍; 126 } 127 128 .主题列表{ 129 边距顶部:40px; 130 } 131 132 .theme电子条目{ 133 左边边距:30px; 134 边距-底部:30px; 135 填充:16px; 136 浮动:左; 137 明确:两者都有; 138 边框:实心1px#dedede; 139 背景:fafafa; 140 方框阴影:0 1px 20px 5px rgba(0,0,0,.1); 141 } 142 143 .theme当前名称{ 144 位置:相对; 145 顶部:-5px; 146 背景:#32373c; 147 颜色:#fff; 148 填充:2px 8px; 149 边距:2px; 150 显示:嵌入式块; 151 字体大小:11px; 152 font-weight:正常; 153 左边边距:9px; 154 } 155 156 .theme条目.theme描述{ 157 字体样式:斜体; 158 } 159 160 .theme条目.theme名称{ 161 填充:0! 重要; 162 边距:0! 重要; 163 字体大小:32px! 重要; 164 font-weight:100! 重要; 165 } 166 167 .theme条目.theme按钮{ 168 浮动:右; 169 } 170 171 .theme拇指{ 172 宽度:400px; 173 光标:放大; 174 } 175 176 .theme-tumb.maximized{ 177 宽度:自动; 178 光标:缩小; 179 } -
eve-shipinfo/trunk/eve-shipinfo.php 1294251元 1296625兰特 4 4 *插件URI: http://aeonoftime.com/EVE_Online_Tools/EV-ShipInfo-WordPress-Plugin 5 5 *说明:在WordPress网站中放置EVE Online发货数据库,以及高质量的屏幕截图和专门的短代码。 6 *版本:1。 8 6 *版本:1。 9 7 7 *作者:Sebastian Mordziol 8 8 *作者URI: http://www.aeonoftime.com -
eve-shipinfo/trunk/readme.txt 294251卢比 1296625兰特 4 4 要求至少:3.5 5 5 测试达到:4.3 6 稳定标签:1。 8 6 稳定标签:1。 9 7 7 许可证:GPLv3 8 8 许可证URI: https://www.gnu.org/licenses/gpl-3.0.txt … … 22 22 *极其可定制的发货清单短代码 23 23 *船廊短代码 24 *船舶信息弹出窗口的可切换主题 24 25 *EFT配件进口商和管理:在船旁或使用短代码单独展示您的配件 25 26 *完整集成的短代码参考 … … 50 51 51 52 ==变更日志== 53 54 = 1.9 = 55 *修复了一个编码错误,该错误可能导致某些船只弹出窗口无法工作 56 *修复了发货属性API中的一些一致性问题 57 *修复了每次更新插件时删除的屏幕截图库:库现在必须存储在wp-content/uploads文件夹中。 58 *添加了对主题子样式的支持 59 *添加了带有颜色子样式的新自定义深色主题 52 60 53 61 = 1.8 =