Changeset 2639214
- Timestamp:
- 12/03/2021 05:31:03 PM (4 years ago)
- Location:
- topic
- Files:
-
- 6 edited
-
tags/1.0.9/classic-editor/index-classic.js (modified) (6 diffs)
-
tags/1.0.9/index.php (modified) (8 diffs)
-
tags/1.0.9/templates/brief-detail.php (modified) (1 diff)
-
trunk/classic-editor/index-classic.js (modified) (6 diffs)
-
trunk/index.php (modified) (8 diffs)
-
trunk/templates/brief-detail.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
topic/tags/1.0.9/classic-editor/index-classic.js
r2639211 r2639214 5 5 $(document).ready(function(){ 6 6 $('#usetopicMain').click(function(){ 7 $('#usetopicData').scrollTop(0); 7 8 // Append Start : Raven Script in the Document.load section 8 9 var s = document.createElement("script"); … … 44 45 }); 45 46 $( '#usetopicData .content' ).on( 'click', '#usetopic-login-btn', function() { 47 $('#usetopicData').scrollTop(0); 46 48 $('#usetopicData').addClass('loadingusetopic'); 47 49 byurlBrief = ''; … … 86 88 87 89 $( '#usetopicData .content' ).on( 'click', '#usetopic-leadb-btn', function() { 88 90 $('#usetopicData').scrollTop(0); 89 91 $('#usetopicData').addClass('loadingusetopic'); 90 92 var briefURL = $( '#lbriefurl' ).val(); … … 140 142 141 143 $( '#usetopicData .content' ).on( 'click', '.usetopic_logout_btn', function() { 144 $('#usetopicData').scrollTop(0); 142 145 $('#usetopicData').addClass('loadingusetopic'); 143 146 var logutUsetopicuser = { … … 167 170 }); 168 171 $( '#usetopicData .content' ).on( 'click', '.usetopic-brief-tr', function() { 172 $('#usetopicData').scrollTop(0); 169 173 $('#usetopicData').addClass('loadingusetopic'); 170 174 var briefID = $(this).attr('data-id'); … … 201 205 }); 202 206 $( '#usetopicData .content' ).on( 'click', '.usetopic_back', function() { 207 $('#usetopicData').scrollTop(0); 203 208 $('#usetopicData').addClass('loadingusetopic'); 204 209 if($(this).attr('data-fromurl') == '1'){ -
topic/tags/1.0.9/index.php
r2639211 r2639214 65 65 66 66 public function get_first_click_template_topic(){ 67 if( current_user_can('administrator') || current_user_can('manage_options') || current_user_can('editor') ) {68 67 include dirname(__FILE__) .'/api/usetopicapi.php'; 69 68 $UseTopicApi = new UseTopicAPI(); … … 135 134 136 135 die(); 137 }138 136 } 139 137 140 138 public function logout_topic_user_func(){ 141 if( current_user_can('administrator') || current_user_can('manage_options') || current_user_can('editor') ) {142 139 if(isset($_POST['usetopiclogout']) && $_POST['usetopiclogout'] == true){ 143 140 update_option('usetopicapi_token',''); … … 149 146 150 147 } 151 }152 148 wp_die(); 153 149 } 154 150 public function brief_detail_page(){ 155 if( current_user_can('administrator') || current_user_can('manage_options') || current_user_can('editor') ) {156 151 include dirname(__FILE__) .'/api/usetopicapi.php'; 157 152 $UseTopicApi = new UseTopicAPI(); … … 222 217 223 218 } 224 }225 219 wp_die(); 226 220 } 227 221 228 222 public function brief_detail_page_back(){ 229 if( current_user_can('administrator') || current_user_can('manage_options') || current_user_can('editor') ) {230 223 include dirname(__FILE__) .'/api/usetopicapi.php'; 231 224 $UseTopicApi = new UseTopicAPI(); … … 236 229 $data = ob_get_clean(); 237 230 echo $data ; 238 } 231 239 232 wp_die(); 240 233 } 241 234 242 235 public function brief_detail_page_grades_update(){ 243 if( current_user_can('administrator') || current_user_can('manage_options') || current_user_can('editor') ) {244 236 include dirname(__FILE__) .'/api/usetopicapi.php'; 245 237 $UseTopicApi = new UseTopicAPI(); … … 262 254 263 255 } 264 }265 256 wp_die(); 266 257 } 267 258 public function topic_keyword_detail_view(){ 268 if( current_user_can('administrator') || current_user_can('manage_options') || current_user_can('editor') ) {269 259 if( isset($_POST['usetopicBriefArray']) ){ 270 260 $rcTopics = $_POST['usetopicBriefArray']; … … 277 267 278 268 } 279 }280 269 wp_die(); 281 270 } 282 271 public function search_briefs_by_keyword(){ 283 if( current_user_can('administrator') || current_user_can('manage_options') || current_user_can('editor') ) {284 272 include dirname(__FILE__) .'/api/usetopicapi.php'; 285 273 $UseTopicApi = new UseTopicAPI(); … … 294 282 295 283 } 296 }297 284 wp_die(); 298 285 } -
topic/tags/1.0.9/templates/brief-detail.php
r2639211 r2639214 74 74 foreach($rcTopic as $stkey => $singleTopic){ 75 75 ?> 76 <li data-keyword="<?php echo $singleTopic->name; ?>" data-index="<?php echo $stkey; ?>" class="usetopic-single-ky"><div class="usetopic-brief-ct-name"><?php echo $singleTopic->name; ?><p>Used by <em><?php echo COUNT($singleTopic->summary);?> Sources</em></p><p class="usetopic-tooltip">click to view Examples</p></div><div class="usetopic-headingsin-used">77 <?php if( COUNT($singleTopic->header_usage) > 0 ){ ?>76 <li data-keyword="<?php echo $singleTopic->name; ?>" data-index="<?php echo $stkey; ?>" class="usetopic-single-ky"><div class="usetopic-brief-ct-name"><?php echo $singleTopic->name; ?><p>Used by <em><?php if(!empty($singleTopic->summary)){ echo COUNT($singleTopic->summary); } ?> Sources</em></p><p class="usetopic-tooltip">click to view Examples</p></div><div class="usetopic-headingsin-used"> 77 <?php if(!empty($singleTopic->header_usage) && COUNT($singleTopic->header_usage) > 0 ){ ?> 78 78 <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="heading" class="svg-inline--fa fa-heading fa-w-16 " role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M448 96v320h32a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H320a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32V288H160v128h32a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32V96H32a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16h-32v128h192V96h-32a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16z"></path></svg> 79 79 <p class="usetopic-tooltip">used in <?php echo COUNT($singleTopic->header_usage); ?> Headings</p> -
topic/trunk/classic-editor/index-classic.js
r2625189 r2639214 5 5 $(document).ready(function(){ 6 6 $('#usetopicMain').click(function(){ 7 $('#usetopicData').scrollTop(0); 7 8 // Append Start : Raven Script in the Document.load section 8 9 var s = document.createElement("script"); … … 44 45 }); 45 46 $( '#usetopicData .content' ).on( 'click', '#usetopic-login-btn', function() { 47 $('#usetopicData').scrollTop(0); 46 48 $('#usetopicData').addClass('loadingusetopic'); 47 49 byurlBrief = ''; … … 86 88 87 89 $( '#usetopicData .content' ).on( 'click', '#usetopic-leadb-btn', function() { 88 90 $('#usetopicData').scrollTop(0); 89 91 $('#usetopicData').addClass('loadingusetopic'); 90 92 var briefURL = $( '#lbriefurl' ).val(); … … 140 142 141 143 $( '#usetopicData .content' ).on( 'click', '.usetopic_logout_btn', function() { 144 $('#usetopicData').scrollTop(0); 142 145 $('#usetopicData').addClass('loadingusetopic'); 143 146 var logutUsetopicuser = { … … 167 170 }); 168 171 $( '#usetopicData .content' ).on( 'click', '.usetopic-brief-tr', function() { 172 $('#usetopicData').scrollTop(0); 169 173 $('#usetopicData').addClass('loadingusetopic'); 170 174 var briefID = $(this).attr('data-id'); … … 201 205 }); 202 206 $( '#usetopicData .content' ).on( 'click', '.usetopic_back', function() { 207 $('#usetopicData').scrollTop(0); 203 208 $('#usetopicData').addClass('loadingusetopic'); 204 209 if($(this).attr('data-fromurl') == '1'){ -
topic/trunk/index.php
r2639211 r2639214 65 65 66 66 public function get_first_click_template_topic(){ 67 if( current_user_can('administrator') || current_user_can('manage_options') || current_user_can('editor') ) {68 67 include dirname(__FILE__) .'/api/usetopicapi.php'; 69 68 $UseTopicApi = new UseTopicAPI(); … … 135 134 136 135 die(); 137 }138 136 } 139 137 140 138 public function logout_topic_user_func(){ 141 if( current_user_can('administrator') || current_user_can('manage_options') || current_user_can('editor') ) {142 139 if(isset($_POST['usetopiclogout']) && $_POST['usetopiclogout'] == true){ 143 140 update_option('usetopicapi_token',''); … … 149 146 150 147 } 151 }152 148 wp_die(); 153 149 } 154 150 public function brief_detail_page(){ 155 if( current_user_can('administrator') || current_user_can('manage_options') || current_user_can('editor') ) {156 151 include dirname(__FILE__) .'/api/usetopicapi.php'; 157 152 $UseTopicApi = new UseTopicAPI(); … … 222 217 223 218 } 224 }225 219 wp_die(); 226 220 } 227 221 228 222 public function brief_detail_page_back(){ 229 if( current_user_can('administrator') || current_user_can('manage_options') || current_user_can('editor') ) {230 223 include dirname(__FILE__) .'/api/usetopicapi.php'; 231 224 $UseTopicApi = new UseTopicAPI(); … … 236 229 $data = ob_get_clean(); 237 230 echo $data ; 238 } 231 239 232 wp_die(); 240 233 } 241 234 242 235 public function brief_detail_page_grades_update(){ 243 if( current_user_can('administrator') || current_user_can('manage_options') || current_user_can('editor') ) {244 236 include dirname(__FILE__) .'/api/usetopicapi.php'; 245 237 $UseTopicApi = new UseTopicAPI(); … … 262 254 263 255 } 264 }265 256 wp_die(); 266 257 } 267 258 public function topic_keyword_detail_view(){ 268 if( current_user_can('administrator') || current_user_can('manage_options') || current_user_can('editor') ) {269 259 if( isset($_POST['usetopicBriefArray']) ){ 270 260 $rcTopics = $_POST['usetopicBriefArray']; … … 277 267 278 268 } 279 }280 269 wp_die(); 281 270 } 282 271 public function search_briefs_by_keyword(){ 283 if( current_user_can('administrator') || current_user_can('manage_options') || current_user_can('editor') ) {284 272 include dirname(__FILE__) .'/api/usetopicapi.php'; 285 273 $UseTopicApi = new UseTopicAPI(); … … 294 282 295 283 } 296 }297 284 wp_die(); 298 285 } -
topic/trunk/templates/brief-detail.php
r2639211 r2639214 74 74 foreach($rcTopic as $stkey => $singleTopic){ 75 75 ?> 76 <li data-keyword="<?php echo $singleTopic->name; ?>" data-index="<?php echo $stkey; ?>" class="usetopic-single-ky"><div class="usetopic-brief-ct-name"><?php echo $singleTopic->name; ?><p>Used by <em><?php echo COUNT($singleTopic->summary);?> Sources</em></p><p class="usetopic-tooltip">click to view Examples</p></div><div class="usetopic-headingsin-used">77 <?php if( COUNT($singleTopic->header_usage) > 0 ){ ?>76 <li data-keyword="<?php echo $singleTopic->name; ?>" data-index="<?php echo $stkey; ?>" class="usetopic-single-ky"><div class="usetopic-brief-ct-name"><?php echo $singleTopic->name; ?><p>Used by <em><?php if(!empty($singleTopic->summary)){ echo COUNT($singleTopic->summary); } ?> Sources</em></p><p class="usetopic-tooltip">click to view Examples</p></div><div class="usetopic-headingsin-used"> 77 <?php if(!empty($singleTopic->header_usage) && COUNT($singleTopic->header_usage) > 0 ){ ?> 78 78 <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="heading" class="svg-inline--fa fa-heading fa-w-16 " role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M448 96v320h32a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H320a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32V288H160v128h32a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32V96H32a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16h-32v128h192V96h-32a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16z"></path></svg> 79 79 <p class="usetopic-tooltip">used in <?php echo COUNT($singleTopic->header_usage); ?> Headings</p>
Note: See TracChangeset
for help on using the changeset viewer.