Changeset 2777334
- Timestamp:
- 08/29/2022 05:45:15 PM (4 years ago)
- Location:
- integromat-connector
- Files:
-
- 4 added
- 4 deleted
- 14 edited
- 1 copied
-
tags/1.5.2 (copied) (copied from integromat-connector/trunk)
-
tags/1.5.2/assets/iwc.js (modified) (1 diff)
-
tags/1.5.2/index.php (modified) (3 diffs)
-
tags/1.5.2/readme.txt (modified) (1 diff)
-
tags/1.5.2/settings/Controller.php (modified) (1 diff)
-
tags/1.5.2/settings/ObjectTypes/general.php (added)
-
tags/1.5.2/settings/events.php (modified) (1 diff)
-
tags/1.5.2/settings/render.php (modified) (1 diff)
-
tags/1.5.2/settings/save.php (deleted)
-
tags/1.5.2/settings/template/connector.phtml (deleted)
-
tags/1.5.2/settings/template/custom_taxonomies.phtml (modified) (1 diff)
-
tags/1.5.2/settings/template/general_menu.phtml (added)
-
trunk/assets/iwc.js (modified) (1 diff)
-
trunk/index.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/settings/Controller.php (modified) (1 diff)
-
trunk/settings/ObjectTypes/general.php (added)
-
trunk/settings/events.php (modified) (1 diff)
-
trunk/settings/render.php (modified) (1 diff)
-
trunk/settings/save.php (deleted)
-
trunk/settings/template/connector.phtml (deleted)
-
trunk/settings/template/custom_taxonomies.phtml (modified) (1 diff)
-
trunk/settings/template/general_menu.phtml (added)
Legend:
- Unmodified
- Added
- Removed
-
integromat-connector/tags/1.5.2/assets/iwc.js
r2518111 r2777334 1 $ = jQuery; 2 $(document).ready(function () { 1 (function ($) { 2 "use strict"; 3 $(document).ready(function () { 3 4 4 $imapieTabs = $("#imapie_tabs").tabs(); 5 6 $('#imapie_tabs #submit').click(function (e) { 7 $('.imapie_settings_container').addClass('wait'); 8 9 $.when( 10 $.post('options.php', $('#impaie_form_post').serialize()), 11 $.post('options.php', $('#impaie_form_user').serialize()), 12 $.post('options.php', $('#impaie_form_comment').serialize()), 13 $.post('options.php', $('#impaie_form_term').serialize()) 14 ).done(function (a1, a2, a3, a4) { 15 $('.imapie_settings_container').removeClass('wait'); 5 $('#iwc-api-key-value').on('click', function() { 6 $(this).select(); 16 7 }); 17 8 18 return false; 19 e.preventDefault() 20 }) 9 // to display tabs 10 $("#imapie_tabs").tabs(); 21 11 12 // to show waiting animation of the curson when saving 13 $('#imapie_tabs #submit').click(function (e) { 14 $('.imapie_settings_container').addClass('wait'); 15 $.when( 16 $.post('options.php', $('#impaie_form_post').serialize()), 17 $.post('options.php', $('#impaie_form_user').serialize()), 18 $.post('options.php', $('#impaie_form_comment').serialize()), 19 $.post('options.php', $('#impaie_form_term').serialize()) 20 ).done(function (a1, a2, a3, a4) { 21 $('.imapie_settings_container').removeClass('wait'); 22 }); 22 23 23 $('.uncheck_all').click(function (e) { 24 uncheckAllStatus = $(this).attr('data-status'); 25 26 if (uncheckAllStatus == 0) { 27 $(this).attr('data-status', 1); 28 } else { 29 $(this).attr('data-status', 0); 30 } 31 32 $(this).closest('form').find('input[type="checkbox"]').each(function () { 33 if (uncheckAllStatus == 0) { 34 $(this).prop('checked', true); 35 } else { 36 $(this).prop('checked', false); 37 } 38 }) 39 return false; 40 e.preventDefault() 41 }) 42 43 $('#imt-content-panel .general input#submit').click(function () { 44 let settings = { 45 'iwc-logging-enabled': $(' #iwc-logging-enabled').is(':checked') 46 } 47 $('.imapie_settings_container').addClass('wait'); 48 $.when( 49 $.post('?iwcsets', settings) 50 ).done(function (a1, a2, a3, a4) { 51 $('.imapie_settings_container').removeClass('wait'); 24 return false; 52 25 }); 53 26 54 }) 27 $('.uncheck_all').click(function (e) { 28 let uncheckAllStatus = $(this).attr('data-status'); 55 29 56 }) 30 if (uncheckAllStatus == 0) { 31 $(this).attr('data-status', 1); 32 } else { 33 $(this).attr('data-status', 0); 34 } 57 35 36 $(this).closest('form').find('input[type="checkbox"]').each(function () { 37 if (uncheckAllStatus == 0) { 38 $(this).prop('checked', true); 39 } else { 40 $(this).prop('checked', false); 41 } 42 }); 43 return false; 44 }); 45 }); 46 })(jQuery); -
integromat-connector/tags/1.5.2/index.php
r2727332 r2777334 3 3 /** 4 4 * @package Integromat_Connector 5 * @version 1.5. 15 * @version 1.5.2 6 6 */ 7 7 … … 11 11 Author: Celonis s.r.o. 12 12 Author URI: https://www.make.com/en?utm_source=wordpress&utm_medium=partner&utm_campaign=wordpress-partner-make 13 Version: 1.5. 113 Version: 1.5.2 14 14 */ 15 15 … … 37 37 add_action('admin_enqueue_scripts', function ($hook) { 38 38 39 wp_enqueue_style('integromat_css', plugin_dir_url(__FILE__) . ' /assets/iwc.css');40 wp_enqueue_script('integromat_js', plugin_dir_url(__FILE__) . ' /assets/iwc.js');39 wp_enqueue_style('integromat_css', plugin_dir_url(__FILE__) . 'assets/iwc.css'); 40 wp_enqueue_script('integromat_js', plugin_dir_url(__FILE__) . 'assets/iwc.js'); 41 41 42 42 // Load WP native jQuery libraries -
integromat-connector/tags/1.5.2/readme.txt
r2727436 r2777334 3 3 Tags: rest, api, rest api, integromat, endpoint, endpoints, meta, data, meta_data, make 4 4 Requires at least: 5.0 5 Tested up to: 5.9.25 Tested up to: 6.0.1 6 6 Requires PHP: 5.6 7 Stable tag: 1.5. 17 Stable tag: 1.5.2 8 8 License: GPLv2 or later 9 9 -
integromat-connector/tags/1.5.2/settings/Controller.php
r2704186 r2777334 39 39 add_taxonomies(); 40 40 } 41 42 require_once __DIR__ . '/ObjectTypes/general.php'; 43 add_general_menu(); 41 44 }); 42 45 -
integromat-connector/tags/1.5.2/settings/events.php
r2518111 r2777334 3 3 4 4 add_action('admin_menu', function () { 5 6 // Saves custom settings (options)7 if (isset($_GET['iwcsets'])) {8 if (!empty($_POST)) {9 foreach($_POST as $key => $val) {10 update_option($key, $val);11 }12 }13 }14 15 5 // Download log file 16 6 if (isset($_GET['iwcdlogf'])) { -
integromat-connector/tags/1.5.2/settings/render.php
r2704186 r2777334 15 15 settings_errors('integromat_api_messages'); 16 16 17 $apiToken = \Integromat\ApiToken::get(); 18 include_once __DIR__ . '/template/connector.phtml'; 17 include_once __DIR__ . '/template/general_menu.phtml'; 19 18 }, 20 19 plugin_dir_url('') . '/integromat-connector/assets/integromat-white.svg' -
integromat-connector/tags/1.5.2/settings/template/custom_taxonomies.phtml
r2704186 r2777334 1 1 <h1><?php echo esc_html(get_admin_page_title()); ?></h1> 2 2 3 <form action="options.php" method="post" id="impaie_form_taxonomy"> 4 <?php 5 settings_fields('integromat_api_taxonomy'); 6 do_settings_sections('integromat_api_taxonomy'); 7 submit_button('Save Settings'); 8 ?> 9 </form> 3 <div id="imt-content-panel" class="imapie_settings_container"> 4 <form action="options.php" method="post" id="impaie_form_taxonomy"> 5 <?php 6 settings_fields('integromat_api_taxonomy'); 7 do_settings_sections('integromat_api_taxonomy'); 8 submit_button('Save Settings'); 9 ?> 10 </form> 11 </div> -
integromat-connector/trunk/assets/iwc.js
r2518111 r2777334 1 $ = jQuery; 2 $(document).ready(function () { 1 (function ($) { 2 "use strict"; 3 $(document).ready(function () { 3 4 4 $imapieTabs = $("#imapie_tabs").tabs(); 5 6 $('#imapie_tabs #submit').click(function (e) { 7 $('.imapie_settings_container').addClass('wait'); 8 9 $.when( 10 $.post('options.php', $('#impaie_form_post').serialize()), 11 $.post('options.php', $('#impaie_form_user').serialize()), 12 $.post('options.php', $('#impaie_form_comment').serialize()), 13 $.post('options.php', $('#impaie_form_term').serialize()) 14 ).done(function (a1, a2, a3, a4) { 15 $('.imapie_settings_container').removeClass('wait'); 5 $('#iwc-api-key-value').on('click', function() { 6 $(this).select(); 16 7 }); 17 8 18 return false; 19 e.preventDefault() 20 }) 9 // to display tabs 10 $("#imapie_tabs").tabs(); 21 11 12 // to show waiting animation of the curson when saving 13 $('#imapie_tabs #submit').click(function (e) { 14 $('.imapie_settings_container').addClass('wait'); 15 $.when( 16 $.post('options.php', $('#impaie_form_post').serialize()), 17 $.post('options.php', $('#impaie_form_user').serialize()), 18 $.post('options.php', $('#impaie_form_comment').serialize()), 19 $.post('options.php', $('#impaie_form_term').serialize()) 20 ).done(function (a1, a2, a3, a4) { 21 $('.imapie_settings_container').removeClass('wait'); 22 }); 22 23 23 $('.uncheck_all').click(function (e) { 24 uncheckAllStatus = $(this).attr('data-status'); 25 26 if (uncheckAllStatus == 0) { 27 $(this).attr('data-status', 1); 28 } else { 29 $(this).attr('data-status', 0); 30 } 31 32 $(this).closest('form').find('input[type="checkbox"]').each(function () { 33 if (uncheckAllStatus == 0) { 34 $(this).prop('checked', true); 35 } else { 36 $(this).prop('checked', false); 37 } 38 }) 39 return false; 40 e.preventDefault() 41 }) 42 43 $('#imt-content-panel .general input#submit').click(function () { 44 let settings = { 45 'iwc-logging-enabled': $(' #iwc-logging-enabled').is(':checked') 46 } 47 $('.imapie_settings_container').addClass('wait'); 48 $.when( 49 $.post('?iwcsets', settings) 50 ).done(function (a1, a2, a3, a4) { 51 $('.imapie_settings_container').removeClass('wait'); 24 return false; 52 25 }); 53 26 54 }) 27 $('.uncheck_all').click(function (e) { 28 let uncheckAllStatus = $(this).attr('data-status'); 55 29 56 }) 30 if (uncheckAllStatus == 0) { 31 $(this).attr('data-status', 1); 32 } else { 33 $(this).attr('data-status', 0); 34 } 57 35 36 $(this).closest('form').find('input[type="checkbox"]').each(function () { 37 if (uncheckAllStatus == 0) { 38 $(this).prop('checked', true); 39 } else { 40 $(this).prop('checked', false); 41 } 42 }); 43 return false; 44 }); 45 }); 46 })(jQuery); -
integromat-connector/trunk/index.php
r2727332 r2777334 3 3 /** 4 4 * @package Integromat_Connector 5 * @version 1.5. 15 * @version 1.5.2 6 6 */ 7 7 … … 11 11 Author: Celonis s.r.o. 12 12 Author URI: https://www.make.com/en?utm_source=wordpress&utm_medium=partner&utm_campaign=wordpress-partner-make 13 Version: 1.5. 113 Version: 1.5.2 14 14 */ 15 15 … … 37 37 add_action('admin_enqueue_scripts', function ($hook) { 38 38 39 wp_enqueue_style('integromat_css', plugin_dir_url(__FILE__) . ' /assets/iwc.css');40 wp_enqueue_script('integromat_js', plugin_dir_url(__FILE__) . ' /assets/iwc.js');39 wp_enqueue_style('integromat_css', plugin_dir_url(__FILE__) . 'assets/iwc.css'); 40 wp_enqueue_script('integromat_js', plugin_dir_url(__FILE__) . 'assets/iwc.js'); 41 41 42 42 // Load WP native jQuery libraries -
integromat-connector/trunk/readme.txt
r2727436 r2777334 3 3 Tags: rest, api, rest api, integromat, endpoint, endpoints, meta, data, meta_data, make 4 4 Requires at least: 5.0 5 Tested up to: 5.9.25 Tested up to: 6.0.1 6 6 Requires PHP: 5.6 7 Stable tag: 1.5. 17 Stable tag: 1.5.2 8 8 License: GPLv2 or later 9 9 -
integromat-connector/trunk/settings/Controller.php
r2704186 r2777334 39 39 add_taxonomies(); 40 40 } 41 42 require_once __DIR__ . '/ObjectTypes/general.php'; 43 add_general_menu(); 41 44 }); 42 45 -
integromat-connector/trunk/settings/events.php
r2518111 r2777334 3 3 4 4 add_action('admin_menu', function () { 5 6 // Saves custom settings (options)7 if (isset($_GET['iwcsets'])) {8 if (!empty($_POST)) {9 foreach($_POST as $key => $val) {10 update_option($key, $val);11 }12 }13 }14 15 5 // Download log file 16 6 if (isset($_GET['iwcdlogf'])) { -
integromat-connector/trunk/settings/render.php
r2704186 r2777334 15 15 settings_errors('integromat_api_messages'); 16 16 17 $apiToken = \Integromat\ApiToken::get(); 18 include_once __DIR__ . '/template/connector.phtml'; 17 include_once __DIR__ . '/template/general_menu.phtml'; 19 18 }, 20 19 plugin_dir_url('') . '/integromat-connector/assets/integromat-white.svg' -
integromat-connector/trunk/settings/template/custom_taxonomies.phtml
r2704186 r2777334 1 1 <h1><?php echo esc_html(get_admin_page_title()); ?></h1> 2 2 3 <form action="options.php" method="post" id="impaie_form_taxonomy"> 4 <?php 5 settings_fields('integromat_api_taxonomy'); 6 do_settings_sections('integromat_api_taxonomy'); 7 submit_button('Save Settings'); 8 ?> 9 </form> 3 <div id="imt-content-panel" class="imapie_settings_container"> 4 <form action="options.php" method="post" id="impaie_form_taxonomy"> 5 <?php 6 settings_fields('integromat_api_taxonomy'); 7 do_settings_sections('integromat_api_taxonomy'); 8 submit_button('Save Settings'); 9 ?> 10 </form> 11 </div>
Note: See TracChangeset
for help on using the changeset viewer.