Changeset 2670108
- Timestamp:
- 01/31/2022 07:15:25 PM (4 years ago)
- Location:
- post-volume-stats/trunk
- Files:
-
- 8 edited
-
post-volume-stats.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
-
sdpvs_arrays.php (modified) (4 diffs)
-
sdpvs_lists.php (modified) (14 diffs)
-
sdpvs_main.php (modified) (2 diffs)
-
sdpvs_pie.php (modified) (5 diffs)
-
sdpvs_settings.php (modified) (1 diff)
-
sdpvs_subs.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
post-volume-stats/trunk/post-volume-stats.php
r2669458 r2670108 2 2 /** 3 3 * @package post-volume-stats 4 * @version 3.3.0 74 * @version 3.3.08 5 5 */ 6 6 /* … … 10 10 * Author: Neil Ludlow 11 11 * Text Domain: post-volume-stats 12 * Version: 3.3.0 712 * Version: 3.3.08 13 13 * Author URI: http://www.shortdark.net/ 14 14 */ … … 39 39 define('SDPVS__PLUGIN_SETTINGS', 'post-volume-stats-settings'); 40 40 define('SDPVS__FILTER_RESULTS', 'post-volume-stats-daterange'); 41 define('SDPVS__VERSION_NUMBER', '3.3.0 7');41 define('SDPVS__VERSION_NUMBER', '3.3.08'); 42 42 43 43 /****************** -
post-volume-stats/trunk/readme.txt
r2669458 r2670108 49 49 == Changelog == 50 50 51 = 3.3.08 = 52 53 * FIX: Backward compatability for new way of listing users in WP 5.9. 54 51 55 = 3.3.07 = 52 56 -
post-volume-stats/trunk/sdpvs_arrays.php
r2669458 r2670108 111 111 global $wpdb; 112 112 113 //$tax_results="";114 113 $this->tax_type_array = array(); 115 114 $searchyear = absint($searchyear); … … 194 193 global $wpdb; 195 194 196 //$tax_results="";197 195 $this->list_array = array(); 198 196 $searchyear = absint($searchyear); … … 352 350 $wpdb->flush(); 353 351 } 354 //var_dump("SELECT COUNT(*) FROM {$wpdb->posts} WHERE post_status = 'publish' AND post_type = 'post' AND post_date LIKE '{$searchyear}%' {$extra} ");355 //exit();356 352 } 357 353 … … 518 514 $this->list_array = array(); 519 515 520 $blogusers = get_users( array( 'capability' => 'edit_posts' ) ); 516 $args = array( 517 'orderby' => 'post_count', 518 'order' => 'DESC', 519 'capability' => array( 'edit_posts' ), 520 ); 521 522 // Capability queries were only introduced in WP 5.9. 523 if ( version_compare( $GLOBALS['wp_version'], '5.9-alpha', '<' ) ) { 524 $args['who'] = 'authors'; 525 unset( $args['capability'] ); 526 } 527 528 $blogusers = get_users( $args ); 521 529 522 530 $extra = $this->sdpvs_add_date_sql($searchyear, $start_date, $end_date); -
post-volume-stats/trunk/sdpvs_lists.php
r2669458 r2670108 13 13 } 14 14 15 /* 15 /** 16 16 * NUMBER OF POSTS PER AUTHOR 17 17 */ … … 47 47 } 48 48 49 /* 49 /** 50 50 * NUMBER OF POSTS PER YEAR TEXT 51 51 */ … … 67 67 } 68 68 69 /* 69 /** 70 70 * GET THE COLOR LIST FOR THE LINE GRAPHS 71 71 */ … … 85 85 } 86 86 87 /* 87 /** 88 88 * NUMBER OF POSTS PER CATEGORY / TAG TEXT 89 89 */ … … 145 145 146 146 147 if ("subpage" === $list_type) { 148 // $posts_per_cat_tag = '<h3>' . esc_html__('1. Select', 'post-volume-stats') . '</h3>'; 149 } elseif ("public" === $list_type) { 150 // $posts_per_cat_tag = '<h3>' . esc_html__('2. Preview', 'post-volume-stats') . '</h3><p>' . esc_html__('Copy and paste the list into HTML.') . '</p>'; 151 } elseif ("buttons" === $list_type) { 152 // $posts_per_cat_tag = '<h3>' . esc_html__('3. Export', 'post-volume-stats') . '</h3><p>' . esc_html__('Export the list and line graph into a new post by exporting.') . '</p>'; 147 if ("buttons" === $list_type) { 153 148 $posts_per_cat_tag .= "<form action='" . esc_url(admin_url('admin-post.php')) . "' method='POST'>"; 154 149 $posts_per_cat_tag .= "<input type=\"hidden\" name=\"action\" value=\"export_lists\">"; … … 174 169 $posts_per_cat_tag .= "<div style='display: block; padding: 5px;'><input type='submit' name='graph' class='button-primary' value='" . esc_html__('Export Graph') . "'></div>"; 175 170 $posts_per_cat_tag .= "<div style='display: block; padding: 5px;'><input type='submit' name='list' class='button-primary' value='" . esc_html__('Export List') . "'></div>"; 176 // $posts_per_cat_tag .= "<div style='display: block; padding: 5px;'><input type='submit' name='csv' class='button-primary' value='" . esc_html__('Export ALL Years to CSV') . "'></div>";177 171 $posts_per_cat_tag .= "</form>"; 178 172 } … … 290 284 291 285 292 /* 286 /** 293 287 * NUMBER OF DAYS BETWEEN POSTS 294 288 */ … … 332 326 333 327 334 /* 328 /** 335 329 * NUMBER OF POSTS PER DAY-OF-WEEK TEXT 336 330 */ … … 370 364 } 371 365 372 /* 366 /** 373 367 * NUMBER OF POSTS PER HOUR TEXT 374 368 */ … … 405 399 } 406 400 407 /* 401 /** 408 402 * NUMBER OF POSTS PER MONTH TEXT 409 403 */ … … 441 435 } 442 436 443 /* 437 /** 444 438 * NUMBER OF POSTS PER DAY OF MONTH TEXT 445 439 */ … … 479 473 480 474 481 /* 475 /** 482 476 * NUMBER OF WORDS PER POST 483 477 */ … … 519 513 520 514 521 /* 515 /** 522 516 * NUMBER OF IMAGES PER POST 523 517 */ … … 729 723 public function sdpvs_create_csv_output($type = "", $searchauthor=0, $search_text = "") { 730 724 $searchauthor = absint($searchauthor); 731 //$years_total = 0;732 //$number_of_years = 0;733 //$user = "";734 725 $userstring = ""; 735 726 $textstring = ''; -
post-volume-stats/trunk/sdpvs_main.php
r2669458 r2670108 10 10 11 11 // create an instance of the required classes 12 //$sdpvs_info = new sdpvsInfo();13 12 $sdpvs_bar = new sdpvsBarChart(); 14 13 $sdpvs_pie = new sdpvsPieChart(); … … 145 144 } 146 145 147 148 149 146 // days between post bar chart 150 147 echo "<div class='sdpvs_col'>"; -
post-volume-stats/trunk/sdpvs_pie.php
r2669458 r2670108 10 10 private $newx; 11 11 private $newy; 12 /** 13 * @var int 14 */ 15 private $number_of_taxonomies; 16 /** 17 * @var int 18 */ 19 private $total_taxonomy_posts; 12 20 13 21 /** … … 49 57 $testangle_orig = 0; 50 58 $radius = 100; 51 //$prev_angle = 0;52 //$remaining = 0;53 59 $this->newx = 0; 54 60 $this->newy = 0; … … 65 71 $this->sdpvs_add_to_taxonomy_array($type,$year,$author, $start_date, $end_date, $search_text); 66 72 $pie_array = $this->tax_type_array; 67 //$total_volume = $this->total_taxonomy_posts;68 //$number_of_containers = $this->number_of_taxonomies;69 73 $pie_svg = '<h2>' . esc_html__("Categories", 'post-volume-stats') . '</h2>'; 70 74 $link_part = "category_name"; … … 72 76 $wp_type_name = "post_tag"; 73 77 $this->sdpvs_add_to_taxonomy_array($wp_type_name,$year,$author, $start_date, $end_date, $search_text); 74 //$total_volume = $this->total_taxonomy_posts;75 78 $pie_array = $this->tax_type_array; 76 //$number_of_containers = $this->number_of_taxonomies;77 79 $pie_svg = '<h2>' . esc_html__("Tags", 'post-volume-stats') . '</h2>'; 78 80 $link_part = $type; 79 81 }else{ 80 82 $this->sdpvs_add_to_taxonomy_array($type,$year,$author, $start_date, $end_date, $search_text); 81 //$total_volume = $this->total_taxonomy_posts;82 83 $pie_array = $this->tax_type_array; 83 //$number_of_containers = $this->number_of_taxonomies;84 84 $tax_labels = get_taxonomy($type); 85 85 $pie_svg = '<h2>'; … … 120 120 $hue = 240 - absint($pie_array[$c]['angle']*240 / $largest_angle); 121 121 $color = "hsl($hue, 70%, 65%)"; 122 123 //$display_angle_as = sprintf("%.1f", $pie_array[$c]['angle']); 124 122 125 123 if("y"==$public){ 126 124 $item_id = $pie_array[$c]['id']; -
post-volume-stats/trunk/sdpvs_settings.php
r2669458 r2670108 109 109 $author = absint($authoroptions['author_number']); 110 110 } 111 112 111 113 112 // Create an instance of the required class -
post-volume-stats/trunk/sdpvs_subs.php
r2669458 r2670108 6 6 7 7 public function sdpvs_combined_page_content($type = "") { 8 9 8 // create an instance of the required classes 10 9 $sdpvs_bar = new sdpvsBarChart(); 11 //$sdpvs_pie = new sdpvsPieChart();12 10 $sdpvs_lists = new sdpvsTextLists(); 13 11 … … 26 24 $authoroff = htmlspecialchars( $genoptions['authoroff'], ENT_QUOTES); 27 25 } 28 29 30 $selected = "";31 26 32 27 if ("category" === $type) { … … 86 81 $searchyear = 0; 87 82 $searchauthor = 0; 88 $rainbow = 'on'; 83 89 84 90 85 $year = get_option('sdpvs_year_option'); … … 97 92 $searchauthor = absint($authoroptions['author_number']); 98 93 } 99 100 $genoptions = get_option('sdpvs_general_settings');101 if (false !== $genoptions) {102 $rainbow = htmlspecialchars ( $genoptions['rainbow'], ENT_QUOTES);103 }104 105 94 106 95 $color = $sdpvs_lists->sdpvs_color_list();
Note: See TracChangeset
for help on using the changeset viewer.