Changeset 3133163
- Timestamp:
- 08/09/2024 11:32:22 AM (19 months ago)
- Location:
- atarim-visual-collaboration
- Files:
-
- 208 added
- 12 edited
-
tags/4.0.3 (added)
-
tags/4.0.3/atarim-visual-collaboration.php (added)
-
tags/4.0.3/css (added)
-
tags/4.0.3/css/admin-settings.css (added)
-
tags/4.0.3/css/admin.css (added)
-
tags/4.0.3/css/bootstrap.min.css (added)
-
tags/4.0.3/css/monolith.min.css (added)
-
tags/4.0.3/css/quill.css (added)
-
tags/4.0.3/css/wpf-common.css (added)
-
tags/4.0.3/css/wpf-icons.css (added)
-
tags/4.0.3/css/wpf-login.css (added)
-
tags/4.0.3/imagehelper.php (added)
-
tags/4.0.3/images (added)
-
tags/4.0.3/images/Atarim.svg (added)
-
tags/4.0.3/images/BG-pattern.png (added)
-
tags/4.0.3/images/Loader-slider-WPFeedback.svg (added)
-
tags/4.0.3/images/WPF-welcome_720.png (added)
-
tags/4.0.3/images/Websites-Mockup.png (added)
-
tags/4.0.3/images/app-project.svg (added)
-
tags/4.0.3/images/approved.svg (added)
-
tags/4.0.3/images/atarim-whitelabel.svg (added)
-
tags/4.0.3/images/atarim_favicon_white.svg (added)
-
tags/4.0.3/images/atarim_icon.svg (added)
-
tags/4.0.3/images/attachment.svg (added)
-
tags/4.0.3/images/auto-report.png (added)
-
tags/4.0.3/images/bell.svg (added)
-
tags/4.0.3/images/check-li.svg (added)
-
tags/4.0.3/images/checked.svg (added)
-
tags/4.0.3/images/comment.png (added)
-
tags/4.0.3/images/cross.svg (added)
-
tags/4.0.3/images/delete.svg (added)
-
tags/4.0.3/images/desktop.svg (added)
-
tags/4.0.3/images/docs.svg (added)
-
tags/4.0.3/images/edit-delete.png (added)
-
tags/4.0.3/images/enter.png (added)
-
tags/4.0.3/images/eye-off-white.svg (added)
-
tags/4.0.3/images/eye-off.svg (added)
-
tags/4.0.3/images/general.svg (added)
-
tags/4.0.3/images/global-settings.png (added)
-
tags/4.0.3/images/integrations-image.png (added)
-
tags/4.0.3/images/internal-task.png (added)
-
tags/4.0.3/images/link.svg (added)
-
tags/4.0.3/images/lock.svg (added)
-
tags/4.0.3/images/menu.svg (added)
-
tags/4.0.3/images/mobile.svg (added)
-
tags/4.0.3/images/multi-file.svg (added)
-
tags/4.0.3/images/no-pages.svg (added)
-
tags/4.0.3/images/no-task.svg (added)
-
tags/4.0.3/images/note.svg (added)
-
tags/4.0.3/images/nothingfound.svg (added)
-
tags/4.0.3/images/pdf.svg (added)
-
tags/4.0.3/images/placeholder-image.png (added)
-
tags/4.0.3/images/reg-logo.svg (added)
-
tags/4.0.3/images/responsive.svg (added)
-
tags/4.0.3/images/search.svg (added)
-
tags/4.0.3/images/share.svg (added)
-
tags/4.0.3/images/sidebar-left.svg (added)
-
tags/4.0.3/images/sidebarmenu.svg (added)
-
tags/4.0.3/images/tablet.svg (added)
-
tags/4.0.3/images/task-center.png (added)
-
tags/4.0.3/images/txt.svg (added)
-
tags/4.0.3/images/upload.svg (added)
-
tags/4.0.3/images/user-permissions.png (added)
-
tags/4.0.3/images/video.svg (added)
-
tags/4.0.3/images/white-labelling.png (added)
-
tags/4.0.3/images/wpf-screenshot-sound.mp3 (added)
-
tags/4.0.3/images/wpf_reconnect.png (added)
-
tags/4.0.3/images/zip.svg (added)
-
tags/4.0.3/inc (added)
-
tags/4.0.3/inc/admin (added)
-
tags/4.0.3/inc/admin/page-settings-permissions.php (added)
-
tags/4.0.3/inc/admin/page-settings.php (added)
-
tags/4.0.3/inc/admin/upgrade-subscription-popup.php (added)
-
tags/4.0.3/inc/admin/wpf_admin_function.php (added)
-
tags/4.0.3/inc/admin/wpf_backend_initial_setup.php (added)
-
tags/4.0.3/inc/frontend (added)
-
tags/4.0.3/inc/frontend/wpf_approve_page_modal.php (added)
-
tags/4.0.3/inc/frontend/wpf_general_task_modal.php (added)
-
tags/4.0.3/inc/frontend/wpf_login_modal.php (added)
-
tags/4.0.3/inc/frontend/wpf_responsive_page_modal.php (added)
-
tags/4.0.3/inc/frontend/wpf_restrictions_modal.php (added)
-
tags/4.0.3/inc/wpf_admin_functions.php (added)
-
tags/4.0.3/inc/wpf_ajax_functions.php (added)
-
tags/4.0.3/inc/wpf_api.php (added)
-
tags/4.0.3/inc/wpf_class.php (added)
-
tags/4.0.3/inc/wpf_email_notifications.php (added)
-
tags/4.0.3/inc/wpf_function.php (added)
-
tags/4.0.3/inc/wpf_popup_string.php (added)
-
tags/4.0.3/index.php (added)
-
tags/4.0.3/js (added)
-
tags/4.0.3/js/admin (added)
-
tags/4.0.3/js/admin.js (added)
-
tags/4.0.3/js/admin/admin_app.js (added)
-
tags/4.0.3/js/animation-complete.json (added)
-
tags/4.0.3/js/app.js (added)
-
tags/4.0.3/js/atarim-ui.js (added)
-
tags/4.0.3/js/atarim.ui.mouse.min.js (added)
-
tags/4.0.3/js/atarimjs.js (added)
-
tags/4.0.3/js/bootstrap.min.js (added)
-
tags/4.0.3/js/cpickr.js (added)
-
tags/4.0.3/js/custompopover.js (added)
-
tags/4.0.3/js/html2canvas.js (added)
-
tags/4.0.3/js/jquery.ui.touch-punch.js (added)
-
tags/4.0.3/js/jscolor.js (added)
-
tags/4.0.3/js/pickr.min.js (added)
-
tags/4.0.3/js/popper.min.js (added)
-
tags/4.0.3/js/quill.js (added)
-
tags/4.0.3/js/selectoroverlay.js (added)
-
tags/4.0.3/js/wpf-ajax-login.js (added)
-
tags/4.0.3/js/wpf_browser_info.js (added)
-
tags/4.0.3/js/wpf_common_functions.js (added)
-
tags/4.0.3/js/xyposition.js (added)
-
tags/4.0.3/languages (added)
-
tags/4.0.3/languages/atarim-visual-collaboration-cs_CZ.mo (added)
-
tags/4.0.3/languages/atarim-visual-collaboration-cs_CZ.po (added)
-
tags/4.0.3/languages/atarim-visual-collaboration-de_AT.mo (added)
-
tags/4.0.3/languages/atarim-visual-collaboration-de_AT.po (added)
-
tags/4.0.3/languages/atarim-visual-collaboration-de_DE.mo (added)
-
tags/4.0.3/languages/atarim-visual-collaboration-de_DE.po (added)
-
tags/4.0.3/languages/atarim-visual-collaboration-el.mo (added)
-
tags/4.0.3/languages/atarim-visual-collaboration-el.po (added)
-
tags/4.0.3/languages/atarim-visual-collaboration-es_ES.mo (added)
-
tags/4.0.3/languages/atarim-visual-collaboration-es_ES.po (added)
-
tags/4.0.3/languages/atarim-visual-collaboration-fr_FR.mo (added)
-
tags/4.0.3/languages/atarim-visual-collaboration-fr_FR.po (added)
-
tags/4.0.3/languages/atarim-visual-collaboration-he_IL.mo (added)
-
tags/4.0.3/languages/atarim-visual-collaboration-he_IL.po (added)
-
tags/4.0.3/languages/atarim-visual-collaboration-it_IT.mo (added)
-
tags/4.0.3/languages/atarim-visual-collaboration-it_IT.po (added)
-
tags/4.0.3/languages/atarim-visual-collaboration-nl_NL.mo (added)
-
tags/4.0.3/languages/atarim-visual-collaboration-nl_NL.po (added)
-
tags/4.0.3/languages/atarim-visual-collaboration-pt_BR.mo (added)
-
tags/4.0.3/languages/atarim-visual-collaboration-pt_BR.po (added)
-
tags/4.0.3/languages/atarim-visual-collaboration-sv_SE.mo (added)
-
tags/4.0.3/languages/atarim-visual-collaboration-sv_SE.po (added)
-
tags/4.0.3/languages/atarim-visual-collaboration.po (added)
-
tags/4.0.3/languages/atarim-visual-collaboration.pot (added)
-
tags/4.0.3/languages/atarim-visual-collaboration.temp (added)
-
tags/4.0.3/license.txt (added)
-
tags/4.0.3/readme.txt (added)
-
tags/4.0.3/src (added)
-
tags/4.0.3/src/AccessToken (added)
-
tags/4.0.3/src/AccessToken/Revoke.php (added)
-
tags/4.0.3/src/AccessToken/Verify.php (added)
-
tags/4.0.3/src/AuthHandler (added)
-
tags/4.0.3/src/AuthHandler/AuthHandlerFactory.php (added)
-
tags/4.0.3/src/AuthHandler/Guzzle5AuthHandler.php (added)
-
tags/4.0.3/src/AuthHandler/Guzzle6AuthHandler.php (added)
-
tags/4.0.3/src/AuthHandler/Guzzle7AuthHandler.php (added)
-
tags/4.0.3/src/Client.php (added)
-
tags/4.0.3/src/Collection.php (added)
-
tags/4.0.3/src/Exception.php (added)
-
tags/4.0.3/src/Http (added)
-
tags/4.0.3/src/Http/Batch.php (added)
-
tags/4.0.3/src/Http/MediaFileUpload.php (added)
-
tags/4.0.3/src/Http/REST.php (added)
-
tags/4.0.3/src/Model.php (added)
-
tags/4.0.3/src/Service (added)
-
tags/4.0.3/src/Service.php (added)
-
tags/4.0.3/src/Service/Exception.php (added)
-
tags/4.0.3/src/Service/README.md (added)
-
tags/4.0.3/src/Service/Resource.php (added)
-
tags/4.0.3/src/Task (added)
-
tags/4.0.3/src/Task/Composer.php (added)
-
tags/4.0.3/src/Task/Exception.php (added)
-
tags/4.0.3/src/Task/Retryable.php (added)
-
tags/4.0.3/src/Task/Runner.php (added)
-
tags/4.0.3/src/Utils (added)
-
tags/4.0.3/src/Utils/UriTemplate.php (added)
-
tags/4.0.3/src/aliases.php (added)
-
tags/4.0.3/uninstall.php (added)
-
tags/4.0.3/visual-composer (added)
-
tags/4.0.3/visual-composer/LICENSE (added)
-
tags/4.0.3/visual-composer/README.md (added)
-
tags/4.0.3/visual-composer/babel.config.js (added)
-
tags/4.0.3/visual-composer/manifest.json (added)
-
tags/4.0.3/visual-composer/package-lock.json (added)
-
tags/4.0.3/visual-composer/package.json (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/ActivateAtarim.js (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/ActivateAtarimLicense.js (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/ExampleAtarimPanel.js (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/InstallAtarim.js (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/SideBar.js (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/TaskContent.js (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/component (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/component/AdditionalInfoTab.js (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/component/PriorityTab.js (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/component/ScreenshotTab.js (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/component/StatusTab.js (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/component/UserTab.js (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/dataManager.js (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/index.js (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/media (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/media/info-icon.svg (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/media/screenshot-icon.svg (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/media/status-icon.svg (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/media/trans_back_atarim.svg (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/media/urgency-icon.svg (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/media/user-icon.svg (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/services (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/services/apiPath.js (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/services/apiResquest.js (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/style (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/style/sidebar.css (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/utils (added)
-
tags/4.0.3/visual-composer/visual-composer-atarim/utils/helpers.js (added)
-
tags/4.0.3/visual-composer/yarn.lock (added)
-
trunk/atarim-visual-collaboration.php (modified) (16 diffs)
-
trunk/css/admin.css (modified) (2 diffs)
-
trunk/css/wpf-common.css (modified) (3 diffs)
-
trunk/inc/admin/page-settings-permissions.php (modified) (7 diffs)
-
trunk/inc/admin/page-settings.php (modified) (8 diffs)
-
trunk/inc/admin/wpf_admin_function.php (modified) (3 diffs)
-
trunk/inc/admin/wpf_backend_initial_setup.php (modified) (2 diffs)
-
trunk/inc/wpf_ajax_functions.php (modified) (3 diffs)
-
trunk/inc/wpf_function.php (modified) (6 diffs)
-
trunk/js/admin.js (modified) (1 diff)
-
trunk/js/wpf_common_functions.js (modified) (6 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
atarim-visual-collaboration/trunk/atarim-visual-collaboration.php
r3124979 r3133163 3 3 * Plugin Name: Atarim: Visual Website Collaboration, Feedback & Workflow Management 4 4 * Description: Atarim Visual Collaboration makes it easy and efficient to collaborate on websites with your clients, internal team, contractors…anyone! It’s used by nearly 10,000 agencies and freelancers worldwide on over 120,000 websites. 5 * Version: 4.0. 25 * Version: 4.0.3 6 6 * Requires at least: 5.0 7 7 * Require PHP: 7.4 … … 30 30 } 31 31 if ( ! defined( 'WPF_VERSION' ) ) { 32 define( 'WPF_VERSION', '4.0. 2' );32 define( 'WPF_VERSION', '4.0.3' ); 33 33 } 34 34 … … 63 63 if( ! isset( $_GET['activate-multi'] ) ) { 64 64 delete_option( 'wpf_plugin_do_activation_redirect' ); 65 $url = admin_url( 'admin.php?page= wpfeedback_page_settings' );65 $url = admin_url( 'admin.php?page=collaboration_page_settings' ); 66 66 wp_redirect( $url ); 67 67 exit; … … 167 167 $selected_roles = explode( ',', $selected_roles ); 168 168 169 $main_menu_id = ' wpfeedback_page_tasks';169 $main_menu_id = 'collaboration_page_tasks'; 170 170 171 171 if ( array_intersect( $current_user->roles, $selected_roles ) || current_user_can( 'administrator' ) ) { … … 184 184 ); 185 185 add_submenu_page( 186 $main_menu_id, __( 'Tasks Center', 'atarim-visual-collaboration' ), __( 'Tasks Center', 'atarim-visual-collaboration' ), 'read', ' wpfeedback_page_tasks', 'wpfeedback_page_tasks'186 $main_menu_id, __( 'Tasks Center', 'atarim-visual-collaboration' ), __( 'Tasks Center', 'atarim-visual-collaboration' ), 'read', 'collaboration_page_tasks', 'collaboration_page_tasks' 187 187 ); 188 188 if ( $wpf_user_type == 'advisor' || ( $wpf_user_type == '' && current_user_can( 'administrator' ) ) ) { 189 189 add_submenu_page( 190 $main_menu_id, __( 'Settings', 'atarim-visual-collaboration' ), __( 'Settings', 'atarim-visual-collaboration' ), 'read', ' wpfeedback_page_settings', 'wpfeedback_page_settings'190 $main_menu_id, __( 'Settings', 'atarim-visual-collaboration' ), __( 'Settings', 'atarim-visual-collaboration' ), 'read', 'collaboration_page_settings', 'collaboration_page_settings' 191 191 ); 192 192 } 193 193 if ( $wpf_user_type == 'advisor' || ( $wpf_user_type == '' && current_user_can( 'administrator' ) ) ) { 194 194 add_submenu_page( 195 $main_menu_id, __( 'Permissions', 'atarim-visual-collaboration' ), __( 'Permissions', 'atarim-visual-collaboration' ), 'read', ' wpfeedback_page_permissions', 'wpfeedback_page_permissions'195 $main_menu_id, __( 'Permissions', 'atarim-visual-collaboration' ), __( 'Permissions', 'atarim-visual-collaboration' ), 'read', 'collaboration_page_permissions', 'collaboration_page_permissions' 196 196 ); 197 197 } 198 198 if ( $wpf_user_type == 'advisor' ) { 199 199 add_submenu_page( 200 $main_menu_id, __( 'Integrations', 'atarim-visual-collaboration' ), __( 'Integrations', 'atarim-visual-collaboration' ), 'read', ' wpfeedback_page_integrate', 'wpfeedback_page_integrate'200 $main_menu_id, __( 'Integrations', 'atarim-visual-collaboration' ), __( 'Integrations', 'atarim-visual-collaboration' ), 'read', 'collaboration_page_integrate', 'collaboration_page_integrate' 201 201 ); 202 202 } … … 222 222 */ 223 223 function wpf_setting_action_links( $links ) { 224 $links[] = '<a href="' . esc_url( get_admin_url( null, 'admin.php?page= wpfeedback_page_settings&wpf_setting=1' ) ) . '">' . __( 'Settings', 'atarim-visual-collaboration' ) . '</a>';224 $links[] = '<a href="' . esc_url( get_admin_url( null, 'admin.php?page=collaboration_page_settings&wpf_setting=1' ) ) . '">' . __( 'Settings', 'atarim-visual-collaboration' ) . '</a>'; 225 225 return $links; 226 226 } … … 232 232 * @return NULL 233 233 */ 234 function wpfeedback_page_settings() {234 function collaboration_page_settings() { 235 235 global $current_user; 236 236 $initial_setup = get_site_data_by_key( 'wpf_initial_setup_complete' ); … … 249 249 * @return NULL 250 250 */ 251 function wpfeedback_page_tasks() {251 function collaboration_page_tasks() { 252 252 global $current_user; 253 253 require_once( WPF_PLUGIN_DIR . 'inc/admin/page-settings.php' ); … … 260 260 * @return NULL 261 261 */ 262 function wpfeedback_page_integrate() {262 function collaboration_page_integrate() { 263 263 global $current_user; 264 264 require_once( WPF_PLUGIN_DIR . 'inc/admin/page-settings.php' ); … … 271 271 * @return NULL 272 272 */ 273 function wpfeedback_page_support() {273 function collaboration_page_support() { 274 274 global $current_user; 275 275 require_once( WPF_PLUGIN_DIR . 'inc/admin/page-settings.php' ); … … 282 282 * @return NULL 283 283 */ 284 function wpfeedback_page_permissions() {284 function collaboration_page_permissions() { 285 285 global $current_user; 286 286 require_once( WPF_PLUGIN_DIR . 'inc/admin/page-settings-permissions.php' ); … … 765 765 766 766 if ( isset( $_REQUEST['page'] ) ) { 767 if ( $_REQUEST['page'] == ' wpfeedback_page_settings' || $_REQUEST['page'] == 'wpfeedback_page_tasks' || $_REQUEST['page'] == 'wpfeedback_page_integrate' || $_REQUEST['page'] == 'wpfeedback_page_upgrade' || $_REQUEST['page'] == 'wpfeedback_page_support' || $_REQUEST['page'] == 'wpfeedback_page_permissions' ) {767 if ( $_REQUEST['page'] == 'collaboration_page_settings' || $_REQUEST['page'] == 'collaboration_page_tasks' || $_REQUEST['page'] == 'collaboration_page_integrate' || $_REQUEST['page'] == 'collaboration_page_upgrade' || $_REQUEST['page'] == 'collaboration_page_support' || $_REQUEST['page'] == 'collaboration_page_permissions' ) { 768 768 ?> 769 769 <script type='text/javascript'> … … 1441 1441 jQuery(document).ready(function ($) { 1442 1442 var wpfeedback_page = getParameterByName('page'); 1443 if ( wpfeedback_page == " wpfeedback_page_tasks" ) {1443 if ( wpfeedback_page == "collaboration_page_tasks" ) { 1444 1444 jQuery("button.wpf_tab_item.wpf_tasks").trigger('click'); 1445 1445 } 1446 if ( wpfeedback_page == " wpfeedback_page_settings" ) {1446 if ( wpfeedback_page == "collaboration_page_settings" ) { 1447 1447 jQuery("button.wpf_tab_item.wpf_settings").trigger('click'); 1448 1448 } 1449 if ( wpfeedback_page == " wpfeedback_page_integrate" ) {1449 if ( wpfeedback_page == "collaboration_page_integrate" ) { 1450 1450 jQuery("button.wpf_tab_item.wpf_addons").trigger('click'); 1451 1451 } 1452 if ( wpfeedback_page == " wpfeedback_page_support" ) {1452 if ( wpfeedback_page == "collaboration_page_support" ) { 1453 1453 jQuery("button.wpf_tab_item.wpf_support").trigger('click'); 1454 1454 } 1455 if ( wpfeedback_page == " wpfeedback_page_permissions" ) {1455 if ( wpfeedback_page == "collaboration_page_permissions" ) { 1456 1456 jQuery("button.wpf_tab_item.wpf_misc").trigger('click'); 1457 1457 } … … 1972 1972 <style type="text/css"> 1973 1973 :root { 1974 --main-wpf-color: #<?php echo ( get_site_data_by_key( 'wpfeedback_color' ) != "" ) ? str_replace( '#', '', get_site_data_by_key( 'wpfeedback_color' ) ) : " 002157"; ?>;1974 --main-wpf-color: #<?php echo ( get_site_data_by_key( 'wpfeedback_color' ) != "" ) ? str_replace( '#', '', get_site_data_by_key( 'wpfeedback_color' ) ) : "6D5DF3"; ?>; 1975 1975 } 1976 1976 </style> … … 2585 2585 <p class="admin_notice_footer"><i>* This notice is shown to you as the Webmaster.</i></p> 2586 2586 </div> 2587 <div class="wpf_admin_notice_button_col"><a class="wpf_admin_notice_button" href="'. admin_url() .'admin.php?page= wpfeedback_page_permissions"><span class="dashicons dashicons dashicons-update"></span> Activate & Connect</a></div>2587 <div class="wpf_admin_notice_button_col"><a class="wpf_admin_notice_button" href="'. admin_url() .'admin.php?page=collaboration_page_permissions"><span class="dashicons dashicons dashicons-update"></span> Activate & Connect</a></div> 2588 2588 </div>'; 2589 2589 } … … 2622 2622 </div> 2623 2623 <div class="wpf_admin_notice_content"> 2624 Atarim is disabled because this website has been archived on the AgencyDashboard. To re-enable the plugin,2625 please go to the <a href="<?php echo WPF_APP_SITE_URL; ?> /websites" target=_blank >Websites</a> screen in your Agency2624 Collaboration is disabled because this website has been archived on the Atarim Dashboard. To re-enable the plugin, 2625 please go to the <a href="<?php echo WPF_APP_SITE_URL; ?>" target=_blank >Websites</a> screen in your Atarim 2626 2626 Dashboard and <strong>unarchive this website</strong> 2627 2627 <p class="admin_notice_footer"><i>* This notice is shown to you as the Webmaster.</i></p> -
atarim-visual-collaboration/trunk/css/admin.css
r3124979 r3133163 2283 2283 2284 2284 input:checked + .wpf_switch_slider { 2285 background-color: #7c6df4;2285 background-color: var(--main-wpf-color) !important; 2286 2286 } 2287 2287 … … 2830 2830 } 2831 2831 2832 .toplevel_page_ wpfeedback_page_tasks .wp-menu-image img {2832 .toplevel_page_collaboration_page_tasks .wp-menu-image img { 2833 2833 padding: 5px 0 0 0 !important; 2834 2834 opacity: .6; -
atarim-visual-collaboration/trunk/css/wpf-common.css
r3116009 r3133163 2167 2167 height: 100%; 2168 2168 width: 50%; 2169 background-color: #6D5DF3!important;2169 background-color: var(--main-wpf-color) !important; 2170 2170 border-radius: 5px; 2171 2171 left: 0; … … 4889 4889 } 4890 4890 .wpf_bc_switch_slider:not(.active_browse) { 4891 background-color: #6D5DF3!important;4891 background-color: var(--main-wpf-color) !important; 4892 4892 } 4893 4893 .wpf_bc_switch_slider:not(.active_browse):before { … … 6161 6161 .wpf_total_collab_users { 6162 6162 color: #FFFFFF !important; 6163 background : #6D5DF3!important;6163 background-color: var(--main-wpf-color) !important; 6164 6164 border-radius: 18px !important; 6165 6165 padding: 0 6px !important; -
atarim-visual-collaboration/trunk/inc/admin/page-settings-permissions.php
r3116009 r3133163 28 28 <!-- ================= TOP TABS ================--> 29 29 <div class="wpf_tabs_container" id="wpf_tabs_container"> 30 <button class="wpf_tab_item wpf_tasks active" onclick="location.href='admin.php?page= wpfeedback_page_tasks'" style="background-color: #efefef;"><?php esc_attr_e( 'Tasks', 'atarim-visual-collaboration' ); ?></button>30 <button class="wpf_tab_item wpf_tasks active" onclick="location.href='admin.php?page=collaboration_page_tasks'" style="background-color: #efefef;"><?php esc_attr_e( 'Tasks', 'atarim-visual-collaboration' ); ?></button> 31 31 <?php 32 32 if ( $wpf_user_type == 'advisor' || ( $wpf_user_type == '' && current_user_can( 'administrator' ) ) ) { ?> 33 <button class="wpf_tab_item wpf_settings" onclick="location.href='admin.php?page= wpfeedback_page_settings'" style="background-color: #efefef;"><?php esc_attr_e( 'Settings', 'atarim-visual-collaboration' ); ?></button>33 <button class="wpf_tab_item wpf_settings" onclick="location.href='admin.php?page=collaboration_page_settings'" style="background-color: #efefef;"><?php esc_attr_e( 'Settings', 'atarim-visual-collaboration' ); ?></button> 34 34 <?php } 35 35 if ( $wpf_user_type == 'advisor' || ( $wpf_user_type == '' && current_user_can( 'administrator' ) ) ) { ?> … … 37 37 <?php } 38 38 if ( $wpf_user_type == 'advisor' ) { ?> 39 <button class="wpf_tab_item wpf_addons" onclick="location.href='admin.php?page= wpfeedback_page_integrate'" style="background-color: #efefef;"><?php esc_attr_e( 'Integrate', 'atarim-visual-collaboration' ); ?></button>39 <button class="wpf_tab_item wpf_addons" onclick="location.href='admin.php?page=collaboration_page_integrate'" style="background-color: #efefef;"><?php esc_attr_e( 'Integrate', 'atarim-visual-collaboration' ); ?></button> 40 40 <?php } 41 41 if ( $wpf_user_type == 'advisor' || ( $wpf_user_type == '' && current_user_can( 'administrator' ) ) ) { ?> … … 60 60 <div class="wpf_settings_sidebar"> 61 61 <div class="wpf_settings_inner_sidebar"> 62 <a href="#wpf_license_ver"><?php esc_attr_e( 'A gencyDashboard Integration', 'atarim-visual-collaboration' ); ?></a>62 <a href="#wpf_license_ver"><?php esc_attr_e( 'Atarim Dashboard Integration', 'atarim-visual-collaboration' ); ?></a> 63 63 <a href="#wpf_general_perm"><?php esc_attr_e( 'Permissions Settings', 'atarim-visual-collaboration' ); ?></a> 64 64 <a href="#wpf_user_custom"><?php esc_attr_e( 'Customisations', 'atarim-visual-collaboration' ); ?></a> … … 70 70 <div class="wpf_settings_col"> 71 71 <div class="wpf_inner_settings_col"> 72 <div class="wpf_title_section" id="wpf_license_ver"><?php esc_attr_e( 'A gencyDashboard Integration', 'atarim-visual-collaboration' ); ?></div>73 <p><?php esc_attr_e( 'Click the button to activate and add this website to your A gencyDashboard. If for some reason the connection is not established, please contact support.', 'atarim-visual-collaboration' ); ?></p>72 <div class="wpf_title_section" id="wpf_license_ver"><?php esc_attr_e( 'Atarim Dashboard Integration', 'atarim-visual-collaboration' ); ?></div> 73 <p><?php esc_attr_e( 'Click the button to activate and add this website to your Atarim Dashboard. If for some reason the connection is not established, please contact support.', 'atarim-visual-collaboration' ); ?></p> 74 74 <div class="wpfeedback_licence_key"> 75 <div class="wpf_title"><?php esc_attr_e( 'Add this website to your A gencyDashboard account', 'atarim-visual-collaboration' ); ?></div>75 <div class="wpf_title"><?php esc_attr_e( 'Add this website to your Atarim Dashboard account', 'atarim-visual-collaboration' ); ?></div> 76 76 <span><?php esc_attr_e( 'The Client Interface Plugin will not work unless you click the following button and activate this website.', 'atarim-visual-collaboration' ); ?></span> 77 77 <div class="wpfeedback_licence_key_field"> … … 88 88 echo '<input type="submit" class="wpf_deactivate_button" name="wpf_license_deactivate" value="'.__( "Deactivate License", 'atarim-visual-collaboration' ).'"/></div>'; 89 89 } else { 90 $home_url = WPF_APP_SITE_URL . '?activation_callback='.Base64_encode( WPF_SITE_URL ).'&page_redirect=' . Base64_encode( " wpfeedback_page_settings" ) . '&site_url=' . Base64_encode( WPF_HOME_URL );90 $home_url = WPF_APP_SITE_URL . '?activation_callback='.Base64_encode( WPF_SITE_URL ).'&page_redirect=' . Base64_encode( "collaboration_page_settings" ) . '&site_url=' . Base64_encode( WPF_HOME_URL ); 91 91 echo '<a href="'.$home_url.'"><button type="button" class="wpf_activate_btn" name="wpf_activate" access="false" id="ber_page4_save"><span class="dashicons dashicons-update"></span>' . __( 'Activate This Website', 'atarim-visual-collaboration' ) . '</button></a>'; 92 92 } … … 163 163 <div class="at_feat_content"> 164 164 <div class="wpf_title"><?php esc_attr_e( 'Global Settings', 'atarim-visual-collaboration' ); ?></div> 165 <p><?php esc_attr_e( 'User Permissions are pulled from your A gencydashboard', 'atarim-visual-collaboration' ); ?></p>165 <p><?php esc_attr_e( 'User Permissions are pulled from your Atarim dashboard', 'atarim-visual-collaboration' ); ?></p> 166 166 <p><a href="<?php echo WPF_APP_SITE_URL; ?>/settings" target="_blank"><?php esc_attr_e( 'Edit your global settings', 'atarim-visual-collaboration' ); ?></a></p> 167 167 </div> … … 284 284 <div class="wpf_settings_option wpf_website_developer"> 285 285 <div class="wpf_title"><?php esc_attr_e( 'The website builder', 'atarim-visual-collaboration' ); ?></div> 286 <div class="wpf_description"><?php esc_attr_e( 'The website builder will add this user to all tasks by default, allowing the client to skip the "choose a user" tab when creating a task. It will also be used for the Auto Login option when coming from the A gencyDashboard.', 'atarim-visual-collaboration' ); ?></div>286 <div class="wpf_description"><?php esc_attr_e( 'The website builder will add this user to all tasks by default, allowing the client to skip the "choose a user" tab when creating a task. It will also be used for the Auto Login option when coming from the Atarim Dashboard.', 'atarim-visual-collaboration' ); ?></div> 287 287 <select name="wpf_website_developer"> 288 288 <option value="0"><?php esc_attr_e( 'select', 'atarim-visual-collaboration' ); ?></option> -
atarim-visual-collaboration/trunk/inc/admin/page-settings.php
r3116009 r3133163 84 84 <?php } 85 85 if ( $wpf_user_type == 'advisor' || ( $wpf_user_type == '' && current_user_can( 'administrator' ) ) ) { ?> 86 <button class="wpf_tab_item wpf_misc" onclick="location.href='admin.php?page= wpfeedback_page_permissions'">86 <button class="wpf_tab_item wpf_misc" onclick="location.href='admin.php?page=collaboration_page_permissions'"> 87 87 <?php esc_attr_e( 'Permissions', 'atarim-visual-collaboration' ); ?> 88 88 </button> … … 118 118 <div class="wpf_welcome_note"><?php esc_attr_e( "It's good to have you here", 'atarim-visual-collaboration' ); ?> <?php esc_attr_e( $wpf_user_name, 'atarim-visual-collaboration' ); ?>! ❤</div> 119 119 <div class="wpf_welcome_image"><img alt="" src="<?php echo WPF_PLUGIN_URL.'images/WPF-welcome_720.png'; ?>"/></div> 120 <div class="wpf_welcome_note"><?php esc_attr_e( 'Please click on the', 'atarim-visual-collaboration' ); ?> <u onclick="location.href='admin.php?page= wpfeedback_page_permissions'"><?php esc_attr_e( 'Permissions tab', 'atarim-visual-collaboration' ); ?></u> <?php esc_attr_e( 'and verify your license to start using the plugin', 'atarim-visual-collaboration' ); ?></div>120 <div class="wpf_welcome_note"><?php esc_attr_e( 'Please click on the', 'atarim-visual-collaboration' ); ?> <u onclick="location.href='admin.php?page=collaboration_page_permissions'"><?php esc_attr_e( 'Permissions tab', 'atarim-visual-collaboration' ); ?></u> <?php esc_attr_e( 'and verify your license to start using the plugin', 'atarim-visual-collaboration' ); ?></div> 121 121 </div> 122 122 </div> … … 169 169 </div> 170 170 <div class="wpf_task_status_title wpf_icon_title"><?php echo get_wpf_status_icon(); ?><?php esc_attr_e( 'Task Status', 'atarim-visual-collaboration' ); ?></div> 171 <input type="hidden" name="page" value=" wpfeedback_page_settings">171 <input type="hidden" name="page" value="collaboration_page_settings"> 172 172 <div><?php echo wp_feedback_get_texonomy( 'task_status' ); ?></div> 173 173 <div class="wpf_task_priority_title wpf_icon_title"><?php echo get_wpf_priority_icon(); ?><?php esc_attr_e( 'Task Urgency', 'atarim-visual-collaboration' ); ?></div> … … 323 323 <div id="wpf_global_settings_overlay" <?php if ( get_site_data_by_key( 'wpf_global_settings' ) != 'yes' ) { echo "class='wpf_hide'"; } ?> > 324 324 <div class="wpf_welcome_wrap"><div class="wpf_welcome_title"><?php esc_attr_e( 'Global Settings', 'atarim-visual-collaboration' ); ?></div> 325 <p><?php esc_attr_e( 'Update your settings from the Global Settings area within your A gencydashboard.', 'atarim-visual-collaboration' ); ?></p>325 <p><?php esc_attr_e( 'Update your settings from the Global Settings area within your Atarim dashboard.', 'atarim-visual-collaboration' ); ?></p> 326 326 <div class="wpf_golbalsettings_buttons"> 327 327 <div class="wpf_settings_icon">Local <i class="gg-database"></i></div> … … 354 354 <div class="wpf_resync_dashboard"> 355 355 <div class="wpf_title"> 356 <input type="button" value="<?php esc_attr_e('Resync the A gencyDashboard', 'atarim-visual-collaboration'); ?>" class="wpf_button" onclick="wpf_resync_dashboard()"/>356 <input type="button" value="<?php esc_attr_e('Resync the Atarim Dashboard', 'atarim-visual-collaboration'); ?>" class="wpf_button" onclick="wpf_resync_dashboard()"/> 357 357 <?php 358 358 if ( isset( $_GET['resync_dashboard'] ) && $_GET['resync_dashboard'] == 1 ) { … … 371 371 <div class="wpf_settings_option wpfeedback_enable_global"> 372 372 <div class="wpf_title"><?php esc_attr_e( 'Enable Global Settings', 'atarim-visual-collaboration' ); ?></div> 373 <div class="wpf_description"><?php esc_attr_e( 'Everything you see on this screen can be managed globally from within your A gencyDashboard. Enable this option to pull your General Settings, Branding options and Notification options from the Global Settings panel.', 'atarim-visual-collaboration' ); ?></div>373 <div class="wpf_description"><?php esc_attr_e( 'Everything you see on this screen can be managed globally from within your Atarim Dashboard. Enable this option to pull your General Settings, Branding options and Notification options from the Global Settings panel.', 'atarim-visual-collaboration' ); ?></div> 374 374 <label class="wpf_switch"> 375 375 <!--edited by Pratap--> … … 381 381 <p><?php esc_attr_e( 'On this screen, you can manage different settings of the plugin. You can white label it to match your own branding, control which notifications are sent out to the users of this WordPress website and a few other options below this text.', 'atarim-visual-collaboration' ); ?></p> 382 382 <p><b><?php esc_attr_e( 'You can also control the permissions of Atarim Client Interface:', 'atarim-visual-collaboration' ); ?></b><?php esc_attr_e( ' you can allow or disallow users to use certain functions, you can even turn on guest mode to allow any visitor to the website to use the tool without needing to login.' , 'atarim-visual-collaboration' ); ?> 383 <a href="admin.php?page= wpfeedback_page_permissions"><?php esc_attr_e( 'To find these settings, go here.', 'atarim-visual-collaboration' ); ?></a><?php esc_attr_e( 'You will also see your license settings on this page.', 'atarim-visual-collaboration' ); ?><br><br>383 <a href="admin.php?page=collaboration_page_permissions"><?php esc_attr_e( 'To find these settings, go here.', 'atarim-visual-collaboration' ); ?></a><?php esc_attr_e( 'You will also see your license settings on this page.', 'atarim-visual-collaboration' ); ?><br><br> 384 384 </p> 385 385 <div class="wpf_settings_option enabled_wpfeedback"> … … 419 419 <div class="wpf_title_section" id="wpf_branding"><?php esc_attr_e( 'White Label', 'atarim-visual-collaboration' ); ?></div> 420 420 <p><?php esc_attr_e( 'Here you can rebrand Atarim Client Interface by changing the main color and the logo.', 'atarim-visual-collaboration' ); ?><br /> 421 <?php esc_attr_e( 'You can ', 'atarim-visual-collaboration' ); ?><strong><?php esc_attr_e( 'manage Global Settings across all of your websites', 'atarim-visual-collaboration' ); ?></strong> <?php esc_attr_e( 'where your license is activated by visiting the general settings screen on your', 'atarim-visual-collaboration' ); ?> <a href="<?php echo WPF_APP_SITE_URL; ?>/settings#whitelabel" target="_blank"><?php esc_attr_e( 'A gencyDashboard', 'atarim-visual-collaboration' ); ?></a>.</p>421 <?php esc_attr_e( 'You can ', 'atarim-visual-collaboration' ); ?><strong><?php esc_attr_e( 'manage Global Settings across all of your websites', 'atarim-visual-collaboration' ); ?></strong> <?php esc_attr_e( 'where your license is activated by visiting the general settings screen on your', 'atarim-visual-collaboration' ); ?> <a href="<?php echo WPF_APP_SITE_URL; ?>/settings#whitelabel" target="_blank"><?php esc_attr_e( 'Atarim Dashboard', 'atarim-visual-collaboration' ); ?></a>.</p> 422 422 <div class="wpf_settings_option wpfeedback_replace_logo"> 423 423 <div class="wpf_title"><?php esc_attr_e( 'Replace the Atarim logo', 'atarim-visual-collaboration' ); ?></div> -
atarim-visual-collaboration/trunk/inc/admin/wpf_admin_function.php
r3124979 r3133163 176 176 echo "<script>var fallback_link_check = '', page_type = '', wpf_tab_permission_display_stickers = '$wpf_tab_permission_display_stickers', wpf_tab_permission_display_task_id = '$wpf_tab_permission_display_task_id';</script>"; 177 177 require_once( WPF_PLUGIN_DIR . 'inc/wpf_popup_string.php' ); 178 if ( $wpf_active == 1 && $wpf_check_page_builder_active == 0 && $wpf_allow_backend_commenting != 'yes' && $wpf_current_screen != 'settings_page_menu_editor' && $wpf_current_screen != 'collaborate_page_ wpfeedback_page_settings' && ( ! $is_site_archived ) ) {178 if ( $wpf_active == 1 && $wpf_check_page_builder_active == 0 && $wpf_allow_backend_commenting != 'yes' && $wpf_current_screen != 'settings_page_menu_editor' && $wpf_current_screen != 'collaborate_page_collaboration_page_settings' && ( ! $is_site_archived ) ) { 179 179 echo "<script>var fallback_link_check = '', page_type = '', wpf_reconnect_icon = '$wpf_reconnect_icon', wpf_tag_enter_img = '$wpf_tag_enter_img', disable_for_admin = '$disable_for_admin', wpf_nonce = '$wpf_nonce', wpf_current_screen = '$wpf_current_screen', current_role = '$current_role', wpf_current_role = '$wpf_current_role', current_user_name = '$current_user_name', current_user_id = '$current_user_id', wpf_website_builder = '$wpf_website_builder', wpfb_users = '$wpfb_users', ajaxurl = '$ajax_url', current_page_url = '$current_page_url', current_page_title = '$current_page_title', current_page_id = '$current_page_id', wpf_screenshot_sound = '$sound_file', plugin_url = '$plugin_url', comment_count = '$comment_count', bubble_comment_count = '$bubble_comment_count', wpf_show_front_stikers = '$wpf_show_front_stikers', wpf_tab_permission_user = '$wpf_tab_permission_user', wpf_tab_permission_priority = '$wpf_tab_permission_priority', wpf_tab_permission_status = '$wpf_tab_permission_status', wpf_tab_permission_screenshot = '$wpf_tab_permission_screenshot', wpf_tab_permission_information = '$wpf_tab_permission_information', wpf_tab_permission_delete_task = '$wpf_tab_permission_delete_task', wpf_tab_permission_auto_screenshot = '$wpf_tab_permission_auto_screenshot', wpf_tab_permission_keyboard_shortcut = '$wpf_tab_permission_keyboard_shortcut', wpf_admin_bar = 1, restrict_plugin = '$restrict_plugin', atarim_server_down = '$atarim_server_down';</script>"; 180 180 if ( $disable_for_admin == 0 ) { … … 283 283 wp_enqueue_script( 'wpf_jquery_script' ); 284 284 285 if ( isset( $_GET['page'] ) && $_GET['page'] == " wpfeedback_page_settings" ) {285 if ( isset( $_GET['page'] ) && $_GET['page'] == "collaboration_page_settings" ) { 286 286 wp_register_script( 'pickr', WPF_PLUGIN_URL . 'js/pickr.min.js', null, null, true ); 287 287 wp_enqueue_script( 'pickr' ); … … 363 363 } 364 364 365 $wpf_exclude_page = array( "wp-feedback_page_ wpfeedback_page_tasks", "wp-feedback_page_wpfeedback_page_settings", "wp-feedback_page_wpfeedback_page_permissions", "wp-feedback_page_wpfeedback_page_support" );365 $wpf_exclude_page = array( "wp-feedback_page_collaboration_page_tasks", "wp-feedback_page_collaboration_page_settings", "wp-feedback_page_collaboration_page_permissions", "wp-feedback_page_collaboration_page_support" ); 366 366 if ( $enabled_wpfeedback == 1 && $wpf_allow_backend_commenting != 'yes' && ( ! $is_site_archived ) ) { 367 367 if ( ! in_array( $wpf_current_screen_id, $wpf_exclude_page ) ) { -
atarim-visual-collaboration/trunk/inc/admin/wpf_backend_initial_setup.php
r3090249 r3133163 29 29 <input type="hidden" name="action" value="save_wpfeedback_options"/> 30 30 <?php 31 $google_sup = WPF_APP_SITE_URL . '/google-auth?activation_callback='.Base64_encode( WPF_SITE_URL ).'&page_redirect=' . Base64_encode( " wpfeedback_page_settings" ) . '&site_url=' . Base64_encode( WPF_HOME_URL );31 $google_sup = WPF_APP_SITE_URL . '/google-auth?activation_callback='.Base64_encode( WPF_SITE_URL ).'&page_redirect=' . Base64_encode( "collaboration_page_settings" ) . '&site_url=' . Base64_encode( WPF_HOME_URL ); 32 32 ?> 33 33 <a href="<?php echo $google_sup; ?>" class="supg-btn"> … … 65 65 ?> 66 66 <?php 67 $home_url = WPF_APP_SITE_URL . '?activation_callback=' . Base64_encode( WPF_SITE_URL ) . '&page_redirect=' . Base64_encode( " wpfeedback_page_settings" ) . '&site_url=' . Base64_encode( WPF_HOME_URL );67 $home_url = WPF_APP_SITE_URL . '?activation_callback=' . Base64_encode( WPF_SITE_URL ) . '&page_redirect=' . Base64_encode( "collaboration_page_settings" ) . '&site_url=' . Base64_encode( WPF_HOME_URL ); 68 68 echo '<p class="wpf_has_account" style="width:100%"><a class="wpf_account_link" href="' . $home_url . '">I already have an account (Login)</a></p>'; 69 69 ?> -
atarim-visual-collaboration/trunk/inc/wpf_ajax_functions.php
r3124979 r3133163 895 895 $data['wpf_site_id'] = get_option( 'wpf_site_id' ); 896 896 $arg = wp_json_encode( $data ); 897 wpf_send_remote_post( $url, $arg ); 898 $args = array( 899 'task_id' => sanitize_text_field( $task_info['task_id'] ), 900 'type' => 'wp_feedback', 901 'orderby' => 'comment_date', 902 'order' => 'DESC', 903 ); 904 905 $url = WPF_CRM_API . 'wp-api/comment/list'; 906 $sendtocloud = wp_json_encode( $args ); 907 $comments_info = wpf_send_remote_post( $url, $sendtocloud ); 908 if ( $comments_info['status'] == 200 ) { 909 echo $comments_info['data'][0]['comment_content']; 910 } 897 $response = wpf_send_remote_post( $url, $arg ); 898 print_r($response); 911 899 exit; 912 900 } … … 933 921 $data['from_wp'] = 1; 934 922 $data['wpf_site_id'] = get_option( 'wpf_site_id' ); 935 $response = wp_json_encode( $data ); 936 wpf_send_remote_post( $url, $response ); 937 $args = array( 938 'task_id' => sanitize_text_field( $task_info['task_id'] ), 939 'type' => 'wp_feedback', 940 'orderby' => 'comment_date', 941 'order' => 'DESC', 942 ); 943 944 $url = WPF_CRM_API . 'wp-api/comment/list'; 945 $sendtocloud = wp_json_encode( $args ); 946 $comments_info = wpf_send_remote_post( $url, $sendtocloud ); 947 if ( $comments_info['status'] == 200 ) { 948 echo $comments_info['data'][0]['comment_content']; 949 } 923 $arg = wp_json_encode( $data ); 924 $response = wpf_send_remote_post( $url, $arg ); 925 print_r($response); 950 926 exit; 951 927 } … … 1994 1970 1995 1971 /* 1996 * This function is used to push the media to the wordpress media library. It is called from A gencydashboard.1972 * This function is used to push the media to the wordpress media library. It is called from Atarim dashboard. 1997 1973 * URL: DOMAIN/wp-admin/admin-ajax.php?action=app_push_to_media 1998 1974 * -
atarim-visual-collaboration/trunk/inc/wpf_function.php
r3124979 r3133163 143 143 if ( ! function_exists( 'process_wpfeedback_options' ) ) { 144 144 function process_wpfeedback_options() { 145 if ( !check_if_allowed_to_save_settings() ) { 146 wp_die( 'Unauthorized access' ); 147 } 145 148 $options = []; 146 149 // Check that user has proper security level … … 208 211 } 209 212 update_site_data( $parms ); 210 wp_redirect( add_query_arg( 'page', ' wpfeedback_page_settings&wpf_setting=1', admin_url( 'admin.php' ) ) );213 wp_redirect( add_query_arg( 'page', 'collaboration_page_settings&wpf_setting=1', admin_url( 'admin.php' ) ) ); 211 214 exit; 212 215 } … … 222 225 if ( ! function_exists( 'process_wpfeedback_misc_options' ) ) { 223 226 function process_wpfeedback_misc_options() { 227 if ( !check_if_allowed_to_save_settings() ) { 228 wp_die( 'Unauthorized access' ); 229 } 224 230 $options = []; 225 231 if ( isset( $_POST['wpf_license_deactivate'] ) ) { … … 334 340 } 335 341 } 336 wp_redirect( add_query_arg( 'page', ' wpfeedback_page_permissions', admin_url( 'admin.php' ) ) );342 wp_redirect( add_query_arg( 'page', 'collaboration_page_permissions', admin_url( 'admin.php' ) ) ); 337 343 exit; 338 344 } 339 345 } 340 346 add_action( 'admin_post_save_wpfeedback_misc_options', 'process_wpfeedback_misc_options' ); 347 348 // This function checks if the user is allowed to change the plugin settings or not. 349 function check_if_allowed_to_save_settings() { 350 // Verify nonce 351 if ( ! isset( $_POST['_wpnonce'] ) || ! wp_verify_nonce( $_POST['_wpnonce'], 'wpfeedback' ) ) { 352 return false; 353 } 354 if ( is_user_logged_in() ) { 355 // Get the current logged-in user ID 356 $user_id = get_current_user_id(); 357 358 // Retrieve the user meta value 359 $user_meta_value = get_user_meta( $user_id, 'wpf_user_type', true ); 360 361 // Check if the user is Webmaster or not. 362 if ( $user_meta_value === 'advisor' ) { 363 return true; 364 } 365 return false; 366 } 367 } 341 368 342 369 /* … … 1762 1789 if ( is_admin() == 1 ) { 1763 1790 $approve_btn = ""; 1764 }1765 1766 $agency_menu_item = '';1767 if ( $wpf_current_role == 'advisor' || ( $wpf_current_role == '' && current_user_can( 'administrator' ) ) ) {1768 $agency_menu_item = '<li class="pro"> <a href="' . WPF_APP_SITE_URL . '/login" target="_blank" title="' . __( "Atarim Dashboard", 'atarim-visual-collaboration' ) . '">' . get_wpf_pro_icon() . '<span>' . __( "Agency", 'atarim-visual-collaboration' ) . '</span> </a></li>';1769 1791 } 1770 1792 … … 2344 2366 $wpf_current_screen = get_current_screen(); 2345 2367 $wpf_current_screen = $wpf_current_screen->id; 2346 if ( $wpf_current_screen == 'collaborate_page_ wpfeedback_page_permissions' || $wpf_current_screen == 'collaborate_page_wpfeedback_page_settings' || $wpf_current_screen == 'toplevel_page_wpfeedback_page_tasks' || $wpf_current_screen == 'collaborate_page_wpfeedback_page_integrate' ) {2368 if ( $wpf_current_screen == 'collaborate_page_collaboration_page_permissions' || $wpf_current_screen == 'collaborate_page_collaboration_page_settings' || $wpf_current_screen == 'toplevel_page_collaboration_page_tasks' || $wpf_current_screen == 'collaborate_page_collaboration_page_integrate' ) { 2347 2369 return true; 2348 2370 } -
atarim-visual-collaboration/trunk/js/admin.js
r3124979 r3133163 232 232 jQuery_WPF('.wpf-uf-popup-image img').attr('src', plugin_url + '/images/global-settings.png'); 233 233 jQuery_WPF('.wpf-uf-plan-title').text('Global Settings'); 234 jQuery_WPF('.wpf-uf-plan-detail').html('Save time and make it easy to set up this website by applying settings from your A gencyDashboard with one click, including white labelling, notification settings and permissions.');234 jQuery_WPF('.wpf-uf-plan-detail').html('Save time and make it easy to set up this website by applying settings from your Atarim Dashboard with one click, including white labelling, notification settings and permissions.'); 235 235 jQuery_WPF('.wpf-uf-plan-link').attr('href', upg_url + '?&feature=global'); 236 236 jQuery_WPF('.wpf-uf-pop-wrapper').show(); -
atarim-visual-collaboration/trunk/js/wpf_common_functions.js
r3116009 r3133163 148 148 // Code to generate new task. 149 149 function generate_task(id, internal, note) { 150 var base64URL = ''; 151 html2canvas(document.body,{ 152 x: window.scrollX, 153 y: window.scrollY, 154 width: window.innerWidth, 155 height: window.innerHeight, 156 useCORS: true, 157 proxy: plugin_url+'imagehelper.php', 158 logging: true,}).then(function(canvas) { 159 base64URL = canvas.toDataURL('image/jpeg',1); 160 }); 150 161 var wpside = logged_user.wpside; 151 162 var temp_id = Math.floor(100000 + Math.random() * 900000); … … 360 371 var masic_msg = "Awesome! you have just added your first task on the website. Let's start managing it from the dashboard. <a class='wpf_demo_cta' href='https://app.atarim.io/login' target='_blank'>Explore more in the Atarim Dashboard</a>"; 361 372 var masic_current_user_name = "Atarim"; 362 var masic_comment_html= '<li class="wpf_other magic_msg_replied"><level class="task-author">' +masic_current_user_name+' '+wpf_just_now+'</level><div class="meassage_area_main">'+img_dwn_icon+'<div class="chat_text">'+masic_msg+'</div></div></li>';373 var masic_comment_html= '<li class="wpf_other magic_msg_replied"><level class="task-author">' + masic_current_user_name + '</level><div class="meassage_area_main">'+img_dwn_icon+'<div class="chat_text">'+masic_msg+'</div></div></li>'; 363 374 setTimeout(function(){ 364 375 jQuery_WPF('#task_comments_'+id).append(masic_comment_html); … … 389 400 jQuery_WPF('#wpf_delete_container_' + id + ' .wpf_task_delete').attr('data-taskid', tasks_on_page[id]); 390 401 if(wpf_tab_permission.auto_screenshot == 'yes'){ 391 new_task_screenshot(id );402 new_task_screenshot(id, base64URL); 392 403 // hide the red overlay border when task is created 393 404 if ( old_rendered_box_el !== null ) { … … 563 574 const notify_user_block = jQuery_WPF('#wpf_mark_internal_'+id).parents('.popover-body').find('#wpfbuser-'+id); 564 575 jQuery_WPF(notify_user_block).find('ul').hide(); 565 jQuery_WPF(notify_user_block).find('ul').before('<span class="wpf_hide_users_for_internal_tasks" id="wpf_success_wpf_share_page_link">Notifications for internal tasks are handled through your A gencyDashboard</span>');576 jQuery_WPF(notify_user_block).find('ul').before('<span class="wpf_hide_users_for_internal_tasks" id="wpf_success_wpf_share_page_link">Notifications for internal tasks are handled through your Atarim Dashboard</span>'); 566 577 567 578 // show the tag in the sidebar … … 2156 2167 jQuery_WPF('#bubble-'+comment_count)[0].click(); 2157 2168 } 2158 function new_task_screenshot( id){2169 function new_task_screenshot( id, base64URL ){ 2159 2170 const rollSound = new Audio(wpf_screenshot_sound); 2160 2171 if(tasks_on_page[id] > 0) { 2161 html2canvas(document.body,{ 2162 x: window.scrollX, 2163 y: window.scrollY, 2164 width: window.innerWidth, 2165 height: window.innerHeight, 2166 useCORS: true, 2167 proxy: plugin_url+'imagehelper.php', 2168 logging: true,}).then(function(canvas) { 2169 var base64URL = canvas.toDataURL('image/jpeg',1); 2170 task_screenshot['post_id'] = tasks_on_page[id]; 2171 task_screenshot['task_config_author_name'] = current_user_name; 2172 task_screenshot['task_config_author_id'] = current_user_id; 2173 var new_task_screenshot_obj = jQuery_WPF.extend({}, task_screenshot); 2174 jQuery_WPF.ajax({ 2175 url: ajaxurl, 2176 type: 'POST', 2177 data: {action:'wpfb_save_screenshot',wpf_nonce:wpf_nonce,task_screenshot:new_task_screenshot_obj, image: base64URL, autoscreen:1}, 2178 success: function(data){ 2179 jQuery_WPF('#screenshot_img_'+id).parent().attr('href', data); 2180 jQuery_WPF('#screenshot_img_'+id).attr('src', data); 2181 jQuery_WPF('#screenshot_img_'+id).show(); 2182 } 2183 }); 2184 }); 2172 task_screenshot['post_id'] = tasks_on_page[id]; 2173 task_screenshot['task_config_author_name'] = current_user_name; 2174 task_screenshot['task_config_author_id'] = current_user_id; 2175 var new_task_screenshot_obj = jQuery_WPF.extend({}, task_screenshot); 2176 jQuery_WPF.ajax({ 2177 url: ajaxurl, 2178 type: 'POST', 2179 data: {action:'wpfb_save_screenshot',wpf_nonce:wpf_nonce,task_screenshot:new_task_screenshot_obj, image: base64URL, autoscreen:1}, 2180 success: function(data){ 2181 jQuery_WPF('#screenshot_img_'+id).parent().attr('href', data); 2182 jQuery_WPF('#screenshot_img_'+id).attr('src', data); 2183 jQuery_WPF('#screenshot_img_'+id).show(); 2184 } 2185 }); 2185 2186 } else { 2186 2187 jQuery_WPF('#wpf_error_'+id).hide(); … … 2385 2386 }, 2386 2387 success : function(data) { 2387 2388 2388 } 2389 2389 }); -
atarim-visual-collaboration/trunk/readme.txt
r3128686 r3133163 4 4 Requires at least: 5.0 5 5 Tested up to: 6.6 6 Stable tag: 4.0. 26 Stable tag: 4.0.3 7 7 Requires PHP: 7.4 8 8 License: GPLv3 or later … … 375 375 376 376 == Changelog == 377 378 = 4.0.3 = 379 * **Improved Auto Screenshot Accuracy** - Resolved an issue where the Auto Screenshot feature sometimes failed to highlight the correct section due to mouse movement. 380 * **Fixed White Label Color Display** - Addressed a problem where the white label color was not reflecting correctly on the front side. 381 * **Enhanced Security for Settings** - Strengthened security when saving settings to prevent Cross-Site Request Forgery (CSRF) attacks. 382 * **API Call Optimization** - Reduced the number of API calls to optimize performance for certain actions. 377 383 378 384 = 4.0.2 =
Note: See TracChangeset
for help on using the changeset viewer.