Changeset 2887963
- Timestamp:
- 03/28/2023 02:58:30 AM (3 years ago)
- Location:
- tilda-publishing
- Files:
-
- 4 edited
- 19 copied
-
tags/0.3.19 (copied) (copied from tilda-publishing/trunk)
-
tags/0.3.19/README.md (copied) (copied from tilda-publishing/trunk/README.md)
-
tags/0.3.19/class.tilda-admin.php (copied) (copied from tilda-publishing/trunk/class.tilda-admin.php) (3 diffs)
-
tags/0.3.19/class.tilda.php (copied) (copied from tilda-publishing/trunk/class.tilda.php) (1 diff)
-
tags/0.3.19/css/styles.css (copied) (copied from tilda-publishing/trunk/css/styles.css)
-
tags/0.3.19/images/ajax-loader.gif (copied) (copied from tilda-publishing/trunk/images/ajax-loader.gif)
-
tags/0.3.19/index.php (copied) (copied from tilda-publishing/trunk/index.php)
-
tags/0.3.19/js/configuration.js (copied) (copied from tilda-publishing/trunk/js/configuration.js)
-
tags/0.3.19/js/plugin.js (copied) (copied from tilda-publishing/trunk/js/plugin.js)
-
tags/0.3.19/languages/tilda-en_US.mo (copied) (copied from tilda-publishing/trunk/languages/tilda-en_US.mo)
-
tags/0.3.19/languages/tilda-en_US.po (copied) (copied from tilda-publishing/trunk/languages/tilda-en_US.po)
-
tags/0.3.19/languages/tilda-ru_RU.mo (copied) (copied from tilda-publishing/trunk/languages/tilda-ru_RU.mo)
-
tags/0.3.19/languages/tilda-ru_RU.po (copied) (copied from tilda-publishing/trunk/languages/tilda-ru_RU.po)
-
tags/0.3.19/readme.txt (copied) (copied from tilda-publishing/trunk/readme.txt) (3 diffs)
-
tags/0.3.19/screenshot-1.jpg (copied) (copied from tilda-publishing/trunk/screenshot-1.jpg)
-
tags/0.3.19/screenshot-2.jpg (copied) (copied from tilda-publishing/trunk/screenshot-2.jpg)
-
tags/0.3.19/tilda-wordpress-plugin.php (copied) (copied from tilda-publishing/trunk/tilda-wordpress-plugin.php) (2 diffs)
-
tags/0.3.19/views/configuration.php (copied) (copied from tilda-publishing/trunk/views/configuration.php)
-
tags/0.3.19/views/pages_meta_box.php (copied) (copied from tilda-publishing/trunk/views/pages_meta_box.php)
-
trunk/class.tilda-admin.php (modified) (3 diffs)
-
trunk/class.tilda.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/tilda-wordpress-plugin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tilda-publishing/tags/0.3.19/class.tilda-admin.php
r2810708 r2887963 1174 1174 $matches = []; 1175 1175 if ( preg_match_all( '/s\.src="([a-z0-9-.]+\.min\.js)";/i', $tildapage->html, $matches ) ) { 1176 $checked_matches = isset( $matches[0]) ? $matches[0] : [];1176 $checked_matches = isset( $matches[0] ) ? $matches[0] : []; 1177 1177 foreach ( $checked_matches as $key => $match ) { 1178 1178 if ( ! empty( $matches[1][ $key ] ) ) { … … 1184 1184 $matches = []; 1185 1185 if ( preg_match_all( '/<script src="([a-z0-9-.]+\.min\.js)">/i', $tildapage->html, $matches ) ) { 1186 $checked_matches = isset( $matches[0]) ? $matches[0] : [];1186 $checked_matches = isset( $matches[0] ) ? $matches[0] : []; 1187 1187 foreach ( $checked_matches as $key => $match ) { 1188 1188 if ( ! empty( $matches[1][ $key ] ) ) { … … 1389 1389 1390 1390 /* replace short jQuery function $(...) to jQuery(...) */ 1391 if ( strpos( $file['to_dir'], 'tilda-blocks-' ) > 0 && strpos( $file['to_dir'], '.js' ) > 0 ) { 1391 if ( 1392 strpos( $file['to_dir'], 'tilda-blocks-' ) !== false 1393 && strpos( $file['to_dir'], '.js' ) !== false 1394 ) { 1392 1395 $content = str_replace( '$(', 'jQuery(', $content ); 1393 1396 $content = str_replace( '$.', 'jQuery.', $content ); 1394 1397 } 1395 1398 1396 $ext = strtolower( substr( $file['from_url'], - 4 ) ); 1399 $parts = explode( '.', strtolower( $file['from_url'] ) ); 1400 $extension = array_pop( $parts ); 1401 1397 1402 if ( 1398 ! in_array( $ext, [ '.jpg', '.png', '.gif', 'jpeg' ] ) 1399 && strpos( $content, 'The resource could not be found.' ) === false 1400 && strpos( strtolower( $content ), 'not found.' ) === false 1401 && file_put_contents( $file['to_dir'], $content ) === false 1403 in_array( $extension, [ 'jpg', 'jpeg', 'png', 'gif', 'svg', 'ico' ] ) 1404 && ( 1405 strpos( $content, 'The resource could not be found.' ) !== false 1406 || strpos( strtolower( $content ), 'not found.' ) !== false 1407 ) 1402 1408 ) { 1409 $downloaded ++; 1410 continue; 1411 } elseif ( file_put_contents( $file['to_dir'], $content ) === false ) { 1403 1412 Tilda::$errors->add( 'error_download', 'Cannot save file to [' . $file['to_dir'] . '].' ); 1404 1413 echo Tilda::json_errors(); -
tilda-publishing/tags/0.3.19/class.tilda.php
r2788205 r2887963 7 7 class Tilda { 8 8 private static $initiated = false; 9 /** 10 * @var WP_Error 11 */ 9 12 public static $errors; 10 13 public static $active_on_page = null; -
tilda-publishing/tags/0.3.19/readme.txt
r2810708 r2887963 4 4 Tags: blog, bulk, convert, crawl, data, import, importer, migrate, move, posts, publishing, tilda, export 5 5 Requires at least: 3.0.1 6 Tested up to: 6. 0.27 Stable tag: 0.3.1 86 Tested up to: 6.1.1 7 Stable tag: 0.3.19 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 49 49 50 50 Q: Where can I find the official repository for this plugin? 51 A: Please find the official repository on this [GitHub page](https://github.com/ greensun7/tilda-wordpress-plugin).51 A: Please find the official repository on this [GitHub page](https://github.com/TildaPublishingOfficial/tilda-wordpress-plugin). 52 52 53 53 Q: Something’s broken / I have a great idea, how can I contact you? 54 A: Please create an issue on the [GitHub page](https://github.com/ greensun7/tilda-wordpress-plugin) or email [email protected]. Creating a pull request is an even better option.54 A: Please create an issue on the [GitHub page](https://github.com/TildaPublishingOfficial/tilda-wordpress-plugin) or email [email protected]. Creating a pull request is an even better option. 55 55 56 56 … … 62 62 63 63 == Changelog == 64 65 = 0.3.19 = 66 * Fix saving images locally 64 67 65 68 = 0.3.18 = -
tilda-publishing/tags/0.3.19/tilda-wordpress-plugin.php
r2810708 r2887963 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.3.1 85 Version: 0.3.19 6 6 Author: Tilda Publishing 7 7 License: GPLv2 or later 8 8 Text Domain: api tilda 9 10 Update 0.3.19 - fix saving images locally 9 11 10 12 Update 0.3.18 - add backward compatibility … … 119 121 } 120 122 121 define( 'TILDA_VERSION', '0.3.1 4' );123 define( 'TILDA_VERSION', '0.3.19' ); 122 124 define( 'TILDA_MINIMUM_WP_VERSION', '3.1' ); 123 125 define( 'TILDA_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); -
tilda-publishing/trunk/class.tilda-admin.php
r2810708 r2887963 1174 1174 $matches = []; 1175 1175 if ( preg_match_all( '/s\.src="([a-z0-9-.]+\.min\.js)";/i', $tildapage->html, $matches ) ) { 1176 $checked_matches = isset( $matches[0]) ? $matches[0] : [];1176 $checked_matches = isset( $matches[0] ) ? $matches[0] : []; 1177 1177 foreach ( $checked_matches as $key => $match ) { 1178 1178 if ( ! empty( $matches[1][ $key ] ) ) { … … 1184 1184 $matches = []; 1185 1185 if ( preg_match_all( '/<script src="([a-z0-9-.]+\.min\.js)">/i', $tildapage->html, $matches ) ) { 1186 $checked_matches = isset( $matches[0]) ? $matches[0] : [];1186 $checked_matches = isset( $matches[0] ) ? $matches[0] : []; 1187 1187 foreach ( $checked_matches as $key => $match ) { 1188 1188 if ( ! empty( $matches[1][ $key ] ) ) { … … 1389 1389 1390 1390 /* replace short jQuery function $(...) to jQuery(...) */ 1391 if ( strpos( $file['to_dir'], 'tilda-blocks-' ) > 0 && strpos( $file['to_dir'], '.js' ) > 0 ) { 1391 if ( 1392 strpos( $file['to_dir'], 'tilda-blocks-' ) !== false 1393 && strpos( $file['to_dir'], '.js' ) !== false 1394 ) { 1392 1395 $content = str_replace( '$(', 'jQuery(', $content ); 1393 1396 $content = str_replace( '$.', 'jQuery.', $content ); 1394 1397 } 1395 1398 1396 $ext = strtolower( substr( $file['from_url'], - 4 ) ); 1399 $parts = explode( '.', strtolower( $file['from_url'] ) ); 1400 $extension = array_pop( $parts ); 1401 1397 1402 if ( 1398 ! in_array( $ext, [ '.jpg', '.png', '.gif', 'jpeg' ] ) 1399 && strpos( $content, 'The resource could not be found.' ) === false 1400 && strpos( strtolower( $content ), 'not found.' ) === false 1401 && file_put_contents( $file['to_dir'], $content ) === false 1403 in_array( $extension, [ 'jpg', 'jpeg', 'png', 'gif', 'svg', 'ico' ] ) 1404 && ( 1405 strpos( $content, 'The resource could not be found.' ) !== false 1406 || strpos( strtolower( $content ), 'not found.' ) !== false 1407 ) 1402 1408 ) { 1409 $downloaded ++; 1410 continue; 1411 } elseif ( file_put_contents( $file['to_dir'], $content ) === false ) { 1403 1412 Tilda::$errors->add( 'error_download', 'Cannot save file to [' . $file['to_dir'] . '].' ); 1404 1413 echo Tilda::json_errors(); -
tilda-publishing/trunk/class.tilda.php
r2788205 r2887963 7 7 class Tilda { 8 8 private static $initiated = false; 9 /** 10 * @var WP_Error 11 */ 9 12 public static $errors; 10 13 public static $active_on_page = null; -
tilda-publishing/trunk/readme.txt
r2810708 r2887963 4 4 Tags: blog, bulk, convert, crawl, data, import, importer, migrate, move, posts, publishing, tilda, export 5 5 Requires at least: 3.0.1 6 Tested up to: 6. 0.27 Stable tag: 0.3.1 86 Tested up to: 6.1.1 7 Stable tag: 0.3.19 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 49 49 50 50 Q: Where can I find the official repository for this plugin? 51 A: Please find the official repository on this [GitHub page](https://github.com/ greensun7/tilda-wordpress-plugin).51 A: Please find the official repository on this [GitHub page](https://github.com/TildaPublishingOfficial/tilda-wordpress-plugin). 52 52 53 53 Q: Something’s broken / I have a great idea, how can I contact you? 54 A: Please create an issue on the [GitHub page](https://github.com/ greensun7/tilda-wordpress-plugin) or email [email protected]. Creating a pull request is an even better option.54 A: Please create an issue on the [GitHub page](https://github.com/TildaPublishingOfficial/tilda-wordpress-plugin) or email [email protected]. Creating a pull request is an even better option. 55 55 56 56 … … 62 62 63 63 == Changelog == 64 65 = 0.3.19 = 66 * Fix saving images locally 64 67 65 68 = 0.3.18 = -
tilda-publishing/trunk/tilda-wordpress-plugin.php
r2810708 r2887963 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.3.1 85 Version: 0.3.19 6 6 Author: Tilda Publishing 7 7 License: GPLv2 or later 8 8 Text Domain: api tilda 9 10 Update 0.3.19 - fix saving images locally 9 11 10 12 Update 0.3.18 - add backward compatibility … … 119 121 } 120 122 121 define( 'TILDA_VERSION', '0.3.1 4' );123 define( 'TILDA_VERSION', '0.3.19' ); 122 124 define( 'TILDA_MINIMUM_WP_VERSION', '3.1' ); 123 125 define( 'TILDA_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.