Changeset 3194244
- Timestamp:
- 11/21/2024 02:55:30 PM (15 months ago)
- Location:
- sided/trunk
- Files:
-
- 12 edited
-
partials/functions.php (modified) (10 diffs)
-
partials/includes/sided-common-header.php (modified) (2 diffs)
-
partials/includes/sided-settings-header.php (modified) (1 diff)
-
partials/sided-create-debate-from-block.php (modified) (7 diffs)
-
partials/sided-create-debate.php (modified) (10 diffs)
-
partials/sided-dashboard.php (modified) (1 diff)
-
partials/sided-debates.php (modified) (5 diffs)
-
partials/sided-edit-debate.php (modified) (25 diffs)
-
partials/sided-edit-draft.php (modified) (6 diffs)
-
partials/sided-settings.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
sided.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sided/trunk/partials/functions.php
r3090383 r3194244 125 125 echo "<script> 126 126 window.sidedScriptPayload = window.sidedScriptPayload || {}; 127 window.sidedScriptPayload.categories = ['" . implode("', '", $names) . "'];127 window.sidedScriptPayload.categories = ['" . implode("', '", esc_js($names)) . "']; 128 128 </script>"; 129 129 } … … 137 137 function sided_wpa_sided_initiate_script_callback() 138 138 { 139 echo update_option('sided_sided_initiate_script', sanitize_text_field($_POST['checked']));139 echo esc_js(update_option('sided_sided_initiate_script', sanitize_text_field($_POST['checked']))); 140 140 wp_die(); 141 141 } … … 145 145 function sided_wpa_send_cats_to_sided_callback() 146 146 { 147 echo update_option('send_cats_to_sided', sanitize_text_field($_POST['checked']));147 echo esc_js(update_option('send_cats_to_sided', sanitize_text_field($_POST['checked']))); 148 148 wp_die(); 149 149 } … … 153 153 function sided_wpa_send_tags_to_sided_callback() 154 154 { 155 echo update_option('send_tags_to_sided', sanitize_text_field($_POST['checked']));155 echo esc_js(update_option('send_tags_to_sided', sanitize_text_field($_POST['checked']))); 156 156 wp_die(); 157 157 } … … 176 176 177 177 if ($response_arr->status == 'success') { 178 echo json_encode($response_arr->data, true);178 echo wp_json_encode($response_arr->data, true); 179 179 } 180 180 wp_die(); … … 198 198 $response_arr = json_decode($response['body']); 199 199 if ($response_arr->status == 'success') { 200 echo json_encode($response_arr->data, true);200 echo wp_json_encode($response_arr->data, true); 201 201 } 202 202 } else { 203 echo $response->get_error_message();203 echo esc_html($response->get_error_message()); 204 204 } 205 205 wp_die(); … … 211 211 { 212 212 $_POST['jsonObj']['updated_at'] = current_datetime(); 213 echo update_option('sided_sided_embed_placement_options', $_POST['jsonObj']);213 echo esc_js(update_option('sided_sided_embed_placement_options', esc_js($_POST['jsonObj']))); 214 214 wp_die(); 215 215 } … … 225 225 function sided_kama_dynamic_sidebar_before_action($index, $has_widgets, $embed_code) 226 226 { 227 echo $embed_code;227 echo esc_js($embed_code); 228 228 } 229 229 … … 282 282 283 283 if ($response_arr->status == 'success') { 284 echo json_encode($response_arr->data, true);284 echo wp_json_encode($response_arr->data, true); 285 285 } 286 286 wp_die(); … … 306 306 307 307 if ($response_arr->status == 'success') { 308 echo json_encode($response_arr->data, true);308 echo wp_json_encode($response_arr->data, true); 309 309 } 310 310 wp_die(); -
sided/trunk/partials/includes/sided-common-header.php
r2976952 r3194244 14 14 $networks_list = $response_gsdc_arr->data; 15 15 } else { 16 echo $response_gsdc->get_error_message();16 echo esc_html($response_gsdc->get_error_message()); 17 17 } 18 18 … … 43 43 <div class="common-header inline-content justify-content-between align-items-center"> 44 44 <div class="inline-content align-items-center"> 45 <h1><strong>Sided</strong> WP Plugin <small>v<?php echo SIDED_VERSION; ?></small></h1>45 <h1><strong>Sided</strong> WP Plugin <small>v<?php echo esc_html(SIDED_VERSION); ?></small></h1> 46 46 </div> 47 47 <ul class="nav navbar inline-content justify-content-between"> -
sided/trunk/partials/includes/sided-settings-header.php
r2976952 r3194244 2 2 <div class="settings-header"> 3 3 <div class="inline-content align-items-center p-4"> 4 <img class="pe-4" src="<?php echo plugin_dir_url( __FILE__); ?>imgs/sided_favicon.jpg"/>4 <img class="pe-4" src="<?php echo esc_url(plugin_dir_url( __FILE__ )); ?>imgs/sided_favicon.jpg"/> 5 5 <h2 class="ps-2">Activate Sided Plugin</h2> 6 6 </div> -
sided/trunk/partials/sided-create-debate-from-block.php
r2986550 r3194244 40 40 if($status_aat !== 'Valid Token'){ 41 41 echo '<script> 42 window.location = "'. get_site_url().'/wp-admin/admin.php?page=settings";42 window.location = "'.esc_url(get_site_url()).'/wp-admin/admin.php?page=settings"; 43 43 </script>'; 44 44 exit; … … 53 53 'x-source-type' => 'wp-plugin', 54 54 'x-private-access-token'=> $sided_private_access_token ) , 55 'body' => json_encode($_POST, JSON_UNESCAPED_SLASHES),55 'body' => wp_json_encode($_POST, JSON_UNESCAPED_SLASHES), 56 56 ); 57 57 $response = wp_remote_post( $url, $args); … … 66 66 } 67 67 } else { 68 echo $response->get_error_message();68 echo esc_url($response->get_error_message()); 69 69 } 70 70 } … … 83 83 $debate_authors = $response_fda_arr->data; 84 84 } else { 85 echo $response_fda->get_error_message();85 echo esc_url($response_fda->get_error_message()); 86 86 } 87 87 /* fetch debate authors end */ … … 99 99 $debate_cats = $response_fcnc_arr->data; 100 100 } else { 101 echo $response_fcnc->get_error_message();101 echo esc_url($response_fcnc->get_error_message()); 102 102 } 103 103 /* fetch Current network's cats end */ … … 115 115 $current_user = $response_fcu_arr->status == 'success' ? $response_fcu_arr->data : ''; 116 116 } else { 117 echo $response_fcu->get_error_message();117 echo esc_url($response_fcu->get_error_message()); 118 118 } 119 119 /*fetch curret user details end*/ … … 343 343 $('#generate-ai-polls').hide(); 344 344 $('#reset-ai-polls').show(); 345 $('.smartPollContent').append('<div class="debatePreviewInner"><div class="debatePreviewHeader"><div class="d-flex"><div class="author"><a target="_blank" rel="noreferrer" class="small-dp user-color-green" href="/<?php echo $current_user->username; ?>" tabindex="0"><img data-src="" src="<?php echo esc_attr($current_user->avatarObject->thumb->location); ?>" alt="Superadmin" class="sidedLazyLoad img-circle avatar" style="border-color: rgb(219, 219, 219);"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="circle-check" class="svg-inline--fa fa-circle-check procheckmark" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="color: rgb(31, 170, 115);"><path fill="currentColor" d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"></path></svg></a><div class="copy-wrap"><a target="_blank" rel="noreferrer" class="authorname" href="/<?php echo $current_user->username; ?>" tabindex="0"><h6><?php echo $current_user->name; ?></h6></a><a rel="noreferrer" target="_blank" href="/<?php echo $current_user->username; ?>" class="authorhandle"><span><?php echo $current_user->username; ?></span></a></div></div><button type="button" class="selectPollBtn btn btn-primary" data-index="'+key+'">Select Poll</button></div></div><div class="debatePreviewTitle mt-3"><h6>'+value['thesis']+'</h6></div><div class="debatePreviewSides mt-2">'+sidesHTML+'</div></div>').show();345 $('.smartPollContent').append('<div class="debatePreviewInner"><div class="debatePreviewHeader"><div class="d-flex"><div class="author"><a target="_blank" rel="noreferrer" class="small-dp user-color-green" href="/<?php echo esc_attr($current_user->username); ?>" tabindex="0"><img data-src="" src="<?php echo esc_attr($current_user->avatarObject->thumb->location); ?>" alt="Superadmin" class="sidedLazyLoad img-circle avatar" style="border-color: rgb(219, 219, 219);"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="circle-check" class="svg-inline--fa fa-circle-check procheckmark" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="color: rgb(31, 170, 115);"><path fill="currentColor" d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"></path></svg></a><div class="copy-wrap"><a target="_blank" rel="noreferrer" class="authorname" href="/<?php echo esc_attr($current_user->username); ?>" tabindex="0"><h6><?php echo esc_attr($current_user->name); ?></h6></a><a rel="noreferrer" target="_blank" href="/<?php echo esc_attr($current_user->username); ?>" class="authorhandle"><span><?php echo esc_attr($current_user->username); ?></span></a></div></div><button type="button" class="selectPollBtn btn btn-primary" data-index="'+key+'">Select Poll</button></div></div><div class="debatePreviewTitle mt-3"><h6>'+value['thesis']+'</h6></div><div class="debatePreviewSides mt-2">'+sidesHTML+'</div></div>').show(); 346 346 }); 347 347 }, -
sided/trunk/partials/sided-create-debate.php
r2986550 r3194244 5 5 if($status_aat !== 'Valid Token'){ 6 6 echo '<script> 7 window.location = "'. get_site_url().'/wp-admin/admin.php?page=settings";7 window.location = "'.esc_url(get_site_url()).'/wp-admin/admin.php?page=settings"; 8 8 </script>'; 9 9 exit; … … 18 18 'x-source-type' => 'wp-plugin', 19 19 'x-private-access-token'=> esc_js($sided_private_access_token) ) , 20 'body' => json_encode($_POST, JSON_UNESCAPED_SLASHES),20 'body' => wp_json_encode($_POST, JSON_UNESCAPED_SLASHES), 21 21 ); 22 22 $response = wp_remote_post( $url, $args); … … 32 32 } 33 33 } else { 34 echo $response->get_error_message();34 echo esc_html($response->get_error_message()); 35 35 } 36 36 } … … 51 51 //echo '<pre>'; print_r($debate_authors); echo '</pre>'; 52 52 } else { 53 echo $response_fda->get_error_message();53 echo esc_html($response_fda->get_error_message()); 54 54 } 55 55 … … 68 68 $debate_cats = $response_fcnc_arr->data; 69 69 } else { 70 echo $response_fcnc->get_error_message();70 echo esc_html($response_fcnc->get_error_message()); 71 71 } 72 72 /* fetch Current network's cats end */ … … 84 84 $current_user = $response_fcu_arr->status == 'success' ? $response_fcu_arr->data : ''; 85 85 } else { 86 echo $response_fcu->get_error_message();86 echo esc_html($response_fcu->get_error_message()); 87 87 } 88 88 /*fetch curret user details end*/ … … 103 103 } 104 104 } else { 105 echo $response_fba->get_error_message();105 echo esc_html($response_fba->get_error_message()); 106 106 } 107 107 /*fetch brand account details end*/ … … 329 329 $('#generate-ai-polls').hide(); 330 330 $('#reset-ai-polls').show(); 331 $('.smartPollContent').append('<div class="debatePreviewInner"><div class="debatePreviewHeader"><div class="d-flex"><div class="author"><a target="_blank" rel="noreferrer" class="small-dp user-color-green" href="/<?php echo $current_user->username; ?>" tabindex="0"><img data-src="" src="<?php echo esc_attr($current_user->avatarObject->thumb->location); ?>" alt="Superadmin" class="sidedLazyLoad img-circle avatar" style="border-color: rgb(219, 219, 219);"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="circle-check" class="svg-inline--fa fa-circle-check procheckmark" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="color: rgb(31, 170, 115);"><path fill="currentColor" d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"></path></svg></a><div class="copy-wrap"><a target="_blank" rel="noreferrer" class="authorname" href="/<?php echo $current_user->username; ?>" tabindex="0"><h6><?php echo $current_user->name; ?></h6></a><a rel="noreferrer" target="_blank" href="/<?php echo $current_user->username; ?>" class="authorhandle"><span><?php echo $current_user->username; ?></span></a></div></div><button type="button" class="selectPollBtn btn btn-primary" data-index="'+key+'">Select Poll</button></div></div><div class="debatePreviewTitle mt-3"><h6>'+value['thesis']+'</h6></div><div class="debatePreviewSides mt-2">'+sidesHTML+'</div></div>').show();331 $('.smartPollContent').append('<div class="debatePreviewInner"><div class="debatePreviewHeader"><div class="d-flex"><div class="author"><a target="_blank" rel="noreferrer" class="small-dp user-color-green" href="/<?php echo esc_attr($current_user->username); ?>" tabindex="0"><img data-src="" src="<?php echo esc_attr($current_user->avatarObject->thumb->location); ?>" alt="Superadmin" class="sidedLazyLoad img-circle avatar" style="border-color: rgb(219, 219, 219);"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="circle-check" class="svg-inline--fa fa-circle-check procheckmark" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="color: rgb(31, 170, 115);"><path fill="currentColor" d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"></path></svg></a><div class="copy-wrap"><a target="_blank" rel="noreferrer" class="authorname" href="/<?php echo esc_attr($current_user->username); ?>" tabindex="0"><h6><?php echo esc_attr($current_user->name); ?></h6></a><a rel="noreferrer" target="_blank" href="/<?php echo esc_attr($current_user->username); ?>" class="authorhandle"><span><?php echo esc_attr($current_user->username); ?></span></a></div></div><button type="button" class="selectPollBtn btn btn-primary" data-index="'+key+'">Select Poll</button></div></div><div class="debatePreviewTitle mt-3"><h6>'+value['thesis']+'</h6></div><div class="debatePreviewSides mt-2">'+sidesHTML+'</div></div>').show(); 332 332 }); 333 333 }, … … 660 660 <div class="debatePreviewHeader"> 661 661 <div class="author"> 662 <a target="_blank" rel="noreferrer" class="small-dp user-color-green" href="/<?php echo $current_user->username; ?>" tabindex="0">662 <a target="_blank" rel="noreferrer" class="small-dp user-color-green" href="/<?php echo esc_attr($current_user->username); ?>" tabindex="0"> 663 663 <img data-src="" src="<?php echo esc_attr($current_user->avatarObject->thumb->location); ?>" alt="Super Admin" class="sidedLazyLoad img-circle avatar" style="border-color: rgb(219, 219, 219);"> 664 664 <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="check-circle" class="svg-inline--fa fa-check-circle fa-w-16 procheckmark" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="color: rgb(31, 170, 115);"> … … 667 667 </a> 668 668 <div class="copy-wrap"> 669 <a target="_blank" rel="noreferrer" class="authorname" href="/<?php echo $current_user->username; ?>" tabindex="0">669 <a target="_blank" rel="noreferrer" class="authorname" href="/<?php echo esc_attr($current_user->username); ?>" tabindex="0"> 670 670 <h6><?php echo esc_html($current_user->name); ?></h6> 671 671 </a> 672 <a rel="noreferrer" class="authorhandle"><span class="handler">Posted <?php echo date('M d, Y'); ?></span></a>672 <a rel="noreferrer" class="authorhandle"><span class="handler">Posted <?php echo esc_js(gmdate('M d, Y')); ?></span></a> 673 673 </div> 674 674 </div> -
sided/trunk/partials/sided-dashboard.php
r3029321 r3194244 20 20 if($status_aat !== 'No Token'){ 21 21 echo '<script> 22 window.location = "'. get_site_url().'/wp-admin/admin.php?page=settings";22 window.location = "'.esc_url(get_site_url()).'/wp-admin/admin.php?page=settings"; 23 23 </script>'; 24 24 exit; -
sided/trunk/partials/sided-debates.php
r2976952 r3194244 4 4 if($status_aat == 'No Token'){ 5 5 echo '<script> 6 window.location = "'. get_site_url().'/wp-admin/admin.php?page=dashboard";6 window.location = "'.esc_url(get_site_url()).'/wp-admin/admin.php?page=dashboard"; 7 7 </script>'; 8 8 exit; … … 10 10 if($status_aat != 'Valid Token'){ 11 11 echo '<script> 12 window.location = "'. get_site_url().'/wp-admin/admin.php?page=settings";12 window.location = "'.esc_url(get_site_url()).'/wp-admin/admin.php?page=settings"; 13 13 </script>'; 14 14 exit; … … 50 50 echo '<div class="settings-header"> 51 51 <div class="inline-content align-items-center p-4 common-form"> 52 <img class="pe-4" src="'. plugin_dir_url( __FILE__).'includes/imgs/sided_favicon.jpg"/>52 <img class="pe-4" src="'.esc_url(plugin_dir_url( __FILE__ )).'includes/imgs/sided_favicon.jpg"/> 53 53 <h2 class="ps-2 pe-4">'.esc_html($debates_count).'<small>Total Polls</small></h2> 54 54 <h2 class="ps-2 pe-4">'.esc_html($active_debates_count).'<small>Active Polls</small></h2> … … 94 94 </td> 95 95 <td>'.esc_html($status).'</td> 96 <td>'. date_format(date_create($debate->startedAt) , 'm/d/y').'</td>96 <td>'.esc_js(date_format(date_create($debate->startedAt) , 'm/d/y')).'</td> 97 97 <td><a class="copyEmbedShortcode '.esc_attr($disabled_copy_shortcode).'" data-debId="'.esc_attr($debate->id).'" href="javascript:void(0);">Copy</a></td> 98 98 <td> … … 176 176 <script type="text/javascript"> 177 177 $.ajax({ 178 url: "https://stage-api.sided.co/debate/getDebatesList?clientId=<?php echo $selected_network; ?>&perPage=<?php echo $results_per_page; ?>&pageNumber=<?php echo $page_number.$search_qstring; ?>",178 url: "https://stage-api.sided.co/debate/getDebatesList?clientId=<?php echo esc_js($selected_network); ?>&perPage=<?php echo esc_js($results_per_page); ?>&pageNumber=<?php echo esc_js($page_number.$search_qstring); ?>", 179 179 headers: { 'x-source-type' : 'wp-plugin', 180 'x-private-access-token': "<?php echo $sided_private_access_token; ?>" },180 'x-private-access-token': "<?php echo esc_js($sided_private_access_token); ?>" }, 181 181 context: document.body, 182 182 success: function (data) { -
sided/trunk/partials/sided-edit-debate.php
r2986550 r3194244 5 5 if($status_aat !== 'Valid Token'){ 6 6 echo '<script> 7 window.location = "'. get_site_url().'/wp-admin/admin.php?page=settings";7 window.location = "'.esc_url(get_site_url()).'/wp-admin/admin.php?page=settings"; 8 8 </script>'; 9 9 exit; … … 32 32 } 33 33 } else { 34 echo $response->get_error_message();34 echo esc_html($response->get_error_message()); 35 35 } 36 36 } … … 58 58 } 59 59 } else { 60 echo $response->get_error_message();60 echo esc_html($response->get_error_message()); 61 61 } 62 62 } … … 83 83 } 84 84 } else { 85 echo $response->get_error_message();85 echo esc_html($response->get_error_message()); 86 86 } 87 87 //echo '<pre>'; print_r($response_arr->message); echo '</pre>'; … … 106 106 if($curr_debate->clientId != $selected_network){ 107 107 echo '<script> 108 window.location = "'. get_site_url().'/wp-admin/admin.php?page=dashboard";108 window.location = "'.esc_url(get_site_url()).'/wp-admin/admin.php?page=dashboard"; 109 109 </script>'; 110 110 } … … 114 114 115 115 $isNoEndDate = $curr_debate->endedAt == '' ? true : false; 116 $endDate = $curr_debate->endedAt == null ? date('Y-m-d') : $curr_debate->endedAt;116 $endDate = $curr_debate->endedAt == null ? gmdate('Y-m-d') : $curr_debate->endedAt; 117 117 } else { 118 echo $response->get_error_message();118 echo esc_html($response->get_error_message()); 119 119 } 120 120 } … … 156 156 } 157 157 } else { 158 echo $response_fcdi->get_error_message();158 echo esc_html($response_fcdi->get_error_message()); 159 159 } 160 160 /* fetch currentDomainId end */ … … 171 171 $debate_authors = $response_fda_arr->data; 172 172 } else { 173 echo $response_fda->get_error_message();173 echo esc_html($response_fda->get_error_message()); 174 174 } 175 175 /* fetch debate authors end */ … … 186 186 $debate_cats = $response_fcnc_arr->data; 187 187 } else { 188 echo $response_fcnc->get_error_message();188 echo esc_html($response_fcnc->get_error_message()); 189 189 } 190 190 /* fetch Current network's cats end */ … … 202 202 //echo '<pre>'; print_r($embed_placements); echo '</pre>'; 203 203 } else { 204 echo $response_ep->get_error_message();204 echo esc_html($response_ep->get_error_message()); 205 205 } 206 206 /* Fetch Embed placements Data End */ … … 218 218 //echo '<pre>'; print_r($categories_list); echo '</pre>'; 219 219 } else { 220 echo $response_fcl->get_error_message();220 echo esc_html($response_fcl->get_error_message()); 221 221 } 222 222 /* Fetch Embed placements Data End */ … … 446 446 $side_count = 0; 447 447 foreach($curr_debate->sides as $side){ 448 echo '<input type="hidden" name="sides['. $side_count.'][id]" value="'.$side->id.'"><input type="hidden" name="sides['.$side_count.'][text]" value="'.$side->text.'">';448 echo '<input type="hidden" name="sides['.esc_js($side_count).'][id]" value="'.esc_attr($side->id).'"><input type="hidden" name="sides['.esc_js($side_count).'][text]" value="'.esc_attr($side->text).'">'; 449 449 $side_count++; 450 450 } … … 476 476 <span class="votesPercentage">'.round(((int)$side->votes * 100 / (int)$curr_debate->votes), 2).'%</span>' : ''; 477 477 $disabled = $side->link && $side->link !='' ? 'disabled' : ''; 478 echo '<div class="side" data-sideindex="'. $side_count.'">478 echo '<div class="side" data-sideindex="'.esc_js($side_count).'"> 479 479 <div class="message position-relative"> 480 480 <div class="row-1 d-flex align-items-center"> … … 483 483 <p class="form-control mb-0" style="border-color: '.esc_attr($side->sideColor).'; background: '.esc_attr($side->sideColor).'26;">'.esc_html($side->text).'</p> 484 484 </div> 485 <button type="button" data-type="link" class="side-link ms-2 btn btn-secondary-light btn-sm" '. $disabled.'><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="link" class="svg-inline--fa fa-link procheckmark" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path fill="currentColor" d="M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"></path></svg></button>485 <button type="button" data-type="link" class="side-link ms-2 btn btn-secondary-light btn-sm" '.esc_js($disabled).'><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="link" class="svg-inline--fa fa-link procheckmark" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path fill="currentColor" d="M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"></path></svg></button> 486 486 <button type="button" data-type="tag" class="side-tag ms-2 btn btn-secondary-light btn-sm"><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="tag" class="svg-inline--fa fa-tag procheckmark flip" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M0 80V229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7H48C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"></path></svg>+</button> 487 487 </div> … … 490 490 491 491 if($side->link && $side->link !=''){ 492 echo '<span class="sideLink"><input type="hidden" name="sides['. $side_count.'][link]" value="'.$side->link.'" readonly><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="link" class="svg-inline--fa fa-link procheckmark" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path fill="currentColor" d="M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"></path></svg><a class="d-inline" rel="noreferrer" href="'.$side->link.'" target="_blank">'.$side->link.'</a><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="circle-xmark" class="svg-inline--fa fa-circle-xmark procheckmark flip" role="button" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"></path></svg></span>';492 echo '<span class="sideLink"><input type="hidden" name="sides['.esc_js($side_count).'][link]" value="'.esc_url($side->link).'" readonly><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="link" class="svg-inline--fa fa-link procheckmark" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path fill="currentColor" d="M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"></path></svg><a class="d-inline" rel="noreferrer" href="'.esc_url($side->link).'" target="_blank">'.esc_url($side->link).'</a><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="circle-xmark" class="svg-inline--fa fa-circle-xmark procheckmark flip" role="button" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"></path></svg></span>'; 493 493 } 494 494 … … 496 496 $tag_count = 0; 497 497 foreach($side->tags as $side_tag){ 498 echo '<span class="sideTags"><input type="hidden" name="sides['. $side_count.'][tags]['.$tag_count.'][text]" value="'.$side_tag->text.'" readonly><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="tag" class="svg-inline--fa fa-tag procheckmark flip" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M0 80V229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7H48C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"></path></svg>'.$side_tag->text.'<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="circle-xmark" class="svg-inline--fa fa-circle-xmark procheckmark flip" role="button" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"></path></svg></span>';498 echo '<span class="sideTags"><input type="hidden" name="sides['.esc_js($side_count).'][tags]['.esc_js($tag_count).'][text]" value="'.esc_html($side_tag->text).'" readonly><svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="tag" class="svg-inline--fa fa-tag procheckmark flip" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M0 80V229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7H48C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"></path></svg>'.esc_html($side_tag->text).'<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="circle-xmark" class="svg-inline--fa fa-circle-xmark procheckmark flip" role="button" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"></path></svg></span>'; 499 499 $tag_count++; 500 500 } … … 612 612 <?php } ?> 613 613 <?php if($sel_debate_data && $sel_debate_data->embedDomainCategories !== ''){ ?> 614 <a onclick="showDeployDebateModal('tab-category');" class="linkActive" title="Deploy to Category">Deployed to <?php echo $sel_debate_data->embedDomainCategories; ?></a>614 <a onclick="showDeployDebateModal('tab-category');" class="linkActive" title="Deploy to Category">Deployed to <?php echo esc_attr($sel_debate_data->embedDomainCategories); ?></a> 615 615 <?php } else { ?> 616 616 <a onclick="showDeployDebateModal('tab-category');" class="linkActive" title="Deploy to Category">Deploy to Category</a> … … 636 636 <h6><?php echo esc_html($curr_debate->user->name); ?></h6> 637 637 </a> 638 <a rel="noreferrer" class="authorhandle"><span class="handler">Posted <?php echo date_format(date_create($curr_debate->startedAt) , 'M d, Y'); ?></span></a>638 <a rel="noreferrer" class="authorhandle"><span class="handler">Posted <?php echo esc_js(date_format(date_create($curr_debate->startedAt) , 'M d, Y')); ?></span></a> 639 639 </div> 640 640 </div> … … 650 650 <span class="lightColorSpan mt-2 d-block"> 651 651 <?php if($curr_debate->isClosed) { ?> 652 <span className="lightColorSpan mt-2 d-block">Poll ended <?php echo date_format(date_create($curr_debate->endedAt) , 'M d, Y'); ?></span>652 <span className="lightColorSpan mt-2 d-block">Poll ended <?php echo esc_js(date_format(date_create($curr_debate->endedAt) , 'M d, Y')); ?></span> 653 653 <?php } else { 654 654 $date1=date_create($curr_debate->endedAt); 655 $date2=date_create( date("Y-m-d"));655 $date2=date_create(gmdate("Y-m-d")); 656 656 $diff=date_diff($date1,$date2); 657 657 $final_difference = $diff->y ? esc_html($diff->y) . ' year(s)' : ($diff->m ? esc_html($diff->m) .' month(s)' : ($diff->d ? esc_html($diff->d) .' day(s)' : ($diff->h ? esc_html($diff->h) . ' hour(s)' : ($diff->i ? esc_html($diff->i) . ' min(s)' : ($diff->s ? esc_html($diff->s).' sec(s)' : ''))))); … … 687 687 </svg> 688 688 <form method="post" class="deploy-debate-form sidedCustomTabsContent"> 689 <input type="hidden" value="<?php echo $curr_debate->id; ?>" name="debateId">690 <input type="hidden" value="<?php echo $currentDomainId;689 <input type="hidden" value="<?php echo esc_attr($curr_debate->id); ?>" name="debateId"> 690 <input type="hidden" value="<?php echo esc_js($currentDomainId); 691 691 ?>" name="embedDomainId"> 692 <input type="hidden" value="<?php echo $curr_debate->clientId; ?>" name="currDebateClientId">692 <input type="hidden" value="<?php echo esc_attr($curr_debate->clientId); ?>" name="currDebateClientId"> 693 693 <div class="tabContent" id="tab-category" style="display: none;"> 694 694 <div class="mb-3 d-flex justify-content-between"> … … 708 708 class="sided-checkbox1" 709 709 onclick="checkAll(this);" 710 <?php echo $is_allCats_checked; ?>710 <?php echo esc_js($is_allCats_checked); ?> 711 711 />Available categories (<?php echo count($categories_list); ?>) 712 712 </label> … … 726 726 type="checkbox" 727 727 class="sided-checkbox" 728 value="'. $category->text.'"729 '. $checked.'728 value="'.esc_attr($category->text).'" 729 '.esc_js($checked).' 730 730 /> 731 '. $category->text.'731 '.esc_attr($category->text).' 732 732 733 733 </label> … … 758 758 class="sided-checkbox1" 759 759 onclick="checkAll(this);" 760 <?php echo $is_allPlacement_checked; ?>760 <?php echo esc_js($is_allPlacement_checked); ?> 761 761 />Available placements (<?php echo count($embed_placements); ?>) 762 762 </label> … … 776 776 type="checkbox" 777 777 class="sided-checkbox" 778 value="'. $embed_placement->id.'"779 '. $checked.'778 value="'.esc_attr($embed_placement->id).'" 779 '.esc_js($checked).' 780 780 /> 781 '. $embed_placement->placementName.'781 '.esc_attr($embed_placement->placementName).' 782 782 </label> 783 783 </div>'; … … 794 794 <?php if($sel_debate_data_key !== false) { ?> 795 795 <form method="post" class="remove-debate-form" id="remove-debate-form"> 796 <input type="hidden" value="<?php echo $curr_debate->id; ?>" name="debateId">797 <input type="hidden" value="<?php echo $currentDomainId;796 <input type="hidden" value="<?php echo esc_attr($curr_debate->id); ?>" name="debateId"> 797 <input type="hidden" value="<?php echo esc_js($currentDomainId); 798 798 ?>" name="embedDomainId"> 799 <input type="hidden" value="<?php echo $curr_debate->clientId; ?>" name="currDebateClientId">799 <input type="hidden" value="<?php echo esc_attr($curr_debate->clientId); ?>" name="currDebateClientId"> 800 800 <input type="hidden" value="true" name="remove_poll"> 801 801 </form> -
sided/trunk/partials/sided-edit-draft.php
r2976952 r3194244 5 5 if($status_aat !== 'Valid Token'){ 6 6 echo '<script> 7 window.location = "'. get_site_url().'/wp-admin/admin.php?page=settings";7 window.location = "'.esc_url(get_site_url()).'/wp-admin/admin.php?page=settings"; 8 8 </script>'; 9 9 exit; … … 52 52 if($curr_debate->clientId != $selected_network){ 53 53 echo '<script> 54 window.location = "'. get_site_url().'/wp-admin/admin.php?page=dashboard";54 window.location = "'.esc_url(get_site_url()).'/wp-admin/admin.php?page=dashboard"; 55 55 </script>'; 56 56 } … … 60 60 61 61 $isNoEndDate = $curr_debate->endedAt == '' ? true : false; 62 $endDate = $curr_debate->endedAt == null ? date('Y-m-d') : $curr_debate->endedAt;62 $endDate = $curr_debate->endedAt == null ? gmdate('Y-m-d') : $curr_debate->endedAt; 63 63 } 64 64 /* Get Current Poll Data End */ … … 250 250 minDate: moment('<?php echo esc_js($curr_debate->startedAt) ?>')['_d'], 251 251 startDate: moment('<?php echo esc_js($endDate); ?>')['_d'], 252 //maxDate: app.sn_max_debate_duration != '' ? moment('<?php echo $curr_debate->startedAt?>').add(app.sn_max_debate_duration, 'days') : '',252 //maxDate: app.sn_max_debate_duration != '' ? moment('<?php echo esc_js($curr_debate->startedAt) ?>').add(app.sn_max_debate_duration, 'days') : '', 253 253 timePicker: true, 254 254 locale: { … … 450 450 <h6><?php echo esc_html($curr_debate->user->name); ?></h6> 451 451 </a> 452 <a rel="noreferrer" class="authorhandle"><span class="handler">Posted <?php echo date_format(date_create($curr_debate->startedAt) , 'M d, Y'); ?></span></a>452 <a rel="noreferrer" class="authorhandle"><span class="handler">Posted <?php echo esc_js(date_format(date_create($curr_debate->startedAt) , 'M d, Y')); ?></span></a> 453 453 </div> 454 454 </div> … … 464 464 <span class="lightColorSpan mt-2 d-block"> 465 465 <?php if($curr_debate->isClosed) { ?> 466 <span className="lightColorSpan mt-2 d-block">Poll ended <?php echo date_format(date_create($curr_debate->endedAt) , 'M d, Y'); ?></span>466 <span className="lightColorSpan mt-2 d-block">Poll ended <?php echo esc_js(date_format(date_create($curr_debate->endedAt) , 'M d, Y')); ?></span> 467 467 <?php } else { 468 468 $date1=date_create($curr_debate->endedAt); 469 $date2=date_create( date("Y-m-d"));469 $date2=date_create(gmdate("Y-m-d")); 470 470 $diff=date_diff($date1,$date2); 471 471 $final_difference = $diff->y ? esc_html($diff->y) . ' year(s)' : ($diff->m ? esc_html($diff->m) .' month(s)' : ($diff->d ? esc_html($diff->d) .' day(s)' : ($diff->h ? esc_html($diff->h) . ' hour(s)' : ($diff->i ? esc_html($diff->i) . ' min(s)' : ($diff->s ? esc_html($diff->s).' sec(s)' : ''))))); -
sided/trunk/partials/sided-settings.php
r3033309 r3194244 181 181 function fetch_selected_placements(){ 182 182 $('#placement-option-wrapper').html(''); 183 var dataArray = $.parseJSON('<?php echo json_encode($placement_options_array); ?>');183 var dataArray = $.parseJSON('<?php echo wp_json_encode($placement_options_array); ?>'); 184 184 if(dataArray == ''){ $(".select_network").trigger("change"); } 185 185 $.each(dataArray , function(key, value){ -
sided/trunk/readme.txt
r3090385 r3194244 5 5 Requires at least: 4.7 6 6 Tested up to: 6.5.3 7 Stable tag: 1.4. 27 Stable tag: 1.4.3 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 38 38 39 39 == Changelog == 40 = 1.4.3 = 41 * Bugfix 42 40 43 = 1.4.2 = 41 44 * Bugfix -
sided/trunk/sided.php
r3090385 r3194244 4 4 * Plugin URI: https://sided.co/ 5 5 * Description: It is a wordpress plugin to embed sided polls in your Wordpress website. 6 * Version: 1.4. 26 * Version: 1.4.3 7 7 * Author: Sided 8 8 **/ 9 9 10 define( 'SIDED_VERSION', '1.4. 2' );10 define( 'SIDED_VERSION', '1.4.3' ); 11 11 define( 'SIDED_PLUGIN', __FILE__ ); 12 12 define( 'SIDED_PLUGIN_DIR', untrailingslashit( dirname( SIDED_PLUGIN ) ) );
Note: See TracChangeset
for help on using the changeset viewer.