Changeset 1812062
- Timestamp:
- 01/30/2018 04:33:32 PM (8 years ago)
- Location:
- tilda-publishing
- Files:
-
- 23 added
- 4 edited
-
tags/0.2.25 (added)
-
tags/0.2.25/README.md (added)
-
tags/0.2.25/class.tilda-admin.php (added)
-
tags/0.2.25/class.tilda.php (added)
-
tags/0.2.25/css (added)
-
tags/0.2.25/css/jquery-ui-tabs.css (added)
-
tags/0.2.25/css/styles.css (added)
-
tags/0.2.25/images (added)
-
tags/0.2.25/images/icon_tilda.png (added)
-
tags/0.2.25/index.php (added)
-
tags/0.2.25/js (added)
-
tags/0.2.25/js/plugin.js (added)
-
tags/0.2.25/languages (added)
-
tags/0.2.25/languages/tilda-ru_RU.mo (added)
-
tags/0.2.25/languages/tilda-ru_RU.po (added)
-
tags/0.2.25/readme.txt (added)
-
tags/0.2.25/screenshot-1.jpg (added)
-
tags/0.2.25/screenshot-2.jpg (added)
-
tags/0.2.25/tilda-wordpress-plugin.php (added)
-
tags/0.2.25/views (added)
-
tags/0.2.25/views/configuration.php (added)
-
tags/0.2.25/views/pages_meta_box.php (added)
-
tags/0.2.25/views/switcher_status.php (added)
-
trunk/class.tilda-admin.php (modified) (3 diffs)
-
trunk/class.tilda.php (modified) (7 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/tilda-wordpress-plugin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tilda-publishing/trunk/class.tilda-admin.php
r1721030 r1812062 191 191 192 192 $data = get_post_meta($postID, '_tilda', true); 193 if (! is_array($data)) {194 $data = array();195 }196 193 foreach($_POST['tilda'] as $key => $val) { 197 194 $data[sanitize_key($key)] = esc_html($val); … … 482 479 $uniq = array(); 483 480 484 foreach($tildapage->images as $image) { 485 if( isset($uniq[$image->from]) ){ continue; } 486 $uniq[$image->from] = 1; 487 488 if ($export_imgpath > '') { 489 $exportimages[] = '|'.$export_imgpath.'/'.$image->to.'|i'; 490 } else { 491 $exportimages[] = '|'.$image->to.'|i'; 492 } 493 $replaceimages[] = $upload_path.$image->to; 481 if (is_array($tildapage->images)) { 482 foreach($tildapage->images as $image) { 483 if( isset($uniq[$image->from]) ){ continue; } 484 $uniq[$image->from] = 1; 485 486 if ($export_imgpath > '') { 487 $exportimages[] = '|'.$export_imgpath.'/'.$image->to.'|i'; 488 } else { 489 $exportimages[] = '|'.$image->to.'|i'; 490 } 491 $replaceimages[] = $upload_path.$image->to; 492 } 494 493 } 495 494 $html = preg_replace($exportimages, $replaceimages, $tildapage->html); … … 538 537 $meta = array(); 539 538 } 540 541 539 $meta['export_imgpath'] = $project->export_imgpath; 542 540 $meta['export_csspath'] = $project->export_csspath; -
tilda-publishing/trunk/class.tilda.php
r1721033 r1812062 70 70 { 71 71 } 72 72 73 73 public static function plugin_activation() 74 74 { … … 155 155 if ( 156 156 $_SERVER['REMOTE_ADDR']<>"194.177.22.186" 157 && $_SERVER['REMOTE_ADDR']<>"31.186.102.154" 158 && $_SERVER['REMOTE_ADDR']<>"31.186.102.155" 159 && $_SERVER['REMOTE_ADDR']<>"31.186.102.156" 157 && $_SERVER['REMOTE_ADDR']<>'95.213.201.187' 160 158 ) { 161 159 echo "Access denied"; … … 242 240 } 243 241 244 245 242 if (isset($data) && isset($data["status"]) && $data["status"] == 'on') { 246 243 $page = self::get_local_page($data["page_id"],$data["project_id"], $post->ID); … … 249 246 $js_links = $page->js; 250 247 251 foreach ($css_links as $file) { 252 $name = basename($file); 253 wp_enqueue_style($name, $file); 248 if (is_array($css_links)) { 249 foreach ($css_links as $file) { 250 $name = basename($file); 251 wp_enqueue_style($name, $file); 252 } 254 253 } 255 254 256 foreach ($js_links as $file) { 257 $name = basename($file); 258 wp_enqueue_script($name, $file); 255 if (is_array($js_links)) { 256 foreach ($js_links as $file) { 257 $name = basename($file); 258 wp_enqueue_script($name, $file); 259 } 259 260 } 260 261 } … … 320 321 if (! empty($page->html)) { 321 322 remove_filter( 'the_content', 'wpautop' ); 323 remove_filter( 'the_excerpt', 'wpautop' ); 322 324 return $page->html; 323 325 } … … 495 497 $ar = array(); 496 498 if (sizeof($page->css) == 0) { 497 foreach($projects[$project_id]->css as $css) { 498 $ar[] = $upload_path . 'css/'.$css->to; 499 if (is_array($projects[$project_id]->css)) { 500 foreach($projects[$project_id]->css as $css) { 501 $ar[] = $upload_path . 'css/'.$css->to; 502 } 499 503 } 500 504 $page->css = $ar; … … 503 507 if (sizeof($page->js) == 0) { 504 508 $ar = array(); 505 foreach($projects[$project_id]->js as $js) { 506 $ar[] = $upload_path . 'js/' . $js->to; 509 if (is_array($projects[$project_id]->js)) { 510 foreach($projects[$project_id]->js as $js) { 511 $ar[] = $upload_path . 'js/' . $js->to; 512 } 507 513 } 508 514 $page->js = $ar; -
tilda-publishing/trunk/readme.txt
r1721030 r1812062 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.1 7 Stable tag: 0.2.2 47 Stable tag: 0.2.25 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 65 65 == Changelog == 66 66 67 = 0.2.24 = 68 * fix: add check rule if meta data not found (fix error: undefined index) 69 70 = 0.2.23 = 71 * fix: wpautop and add check rule 67 = 0.2.25 = 68 * fix: bug in WP4.9 72 69 73 70 = 0.2.22 = -
tilda-publishing/trunk/tilda-wordpress-plugin.php
r1721030 r1812062 3 3 Plugin Name: Tilda Publishing 4 4 Description: Tilda позволяет делать яркую подачу материала, качественную верстку и эффектную типографику, близкую к журнальной. Каким бы ни был ваш контент — Tilda знает, как его показать. С чего начать: 1) Нажмите ссылку «Активировать» слева от этого описания; 2) <a href="http://www.tilda.cc/" target="_blank">Зарегистрируйтесь</a>, чтобы получить API-ключ; 3) Перейдите на страницу настройки Tilda Publishing и введите свой API-ключ. Читайте подробную инструкцию по подключению. 5 Version: 0.2.2 45 Version: 0.2.25 6 6 Author: Tilda Publishing 7 7 License: GPLv2 or later 8 8 Text Domain: api tilda 9 9 10 Update 0.2.2 4 - fix: add check rule if meta data not found (fix error: undefined index)10 Update 0.2.25 - fix: bug in WP4.9 11 11 12 12 Update 0.2.23 - fix: wpautop and add check rule … … 68 68 } 69 69 70 define( 'TILDA_VERSION', '0.2.2 4' );70 define( 'TILDA_VERSION', '0.2.25' ); 71 71 define( 'TILDA_MINIMUM_WP_VERSION', '3.1' ); 72 72 define( 'TILDA_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.