WordPress.org

Plugin Directory

Changeset 1719320


Ignore:
Timestamp:
08/25/17 12:28:27 (8 weeks ago)
Author:
goldhat
Message:

Release 0.7.4

Location:
quizmaster
Files:
165 added
2 edited

Legend:

Unmodified
Added
Removed
  • quizmaster/trunk/quizmaster.php

    r1719136 r1719320  
    44Plugin URI: http://wordpress.org/extend/plugins/quizmaster 
    55Description: Best free quiz plugin for WordPress. 
    6 Version: 0.7.3 
     6Version: 0.7.4 
    77Author: GoldHat Group 
    88Author URI: https://goldhat.ca 
     
    1212*/ 
    1313 
    14 define('QUIZMASTER_VERSION', '0.7.3'); 
     14define('QUIZMASTER_VERSION', '0.7.4'); 
    1515define('QUIZMASTER_DEV', true); 
    1616define('QUIZMASTER_PATH', dirname(__FILE__)); 
     
    688688} 
    689689 
    690 /* Quiz Score Columns */ 
    691 add_filter('manage_quizmaster_score_posts_columns', 'quizmaster_score_columns'); 
    692 function quizmaster_score_columns( $columns ) { 
    693   $columns['date'] = 'Taken At'; 
    694   return array_merge($columns, 
    695     array( 
    696       'quiz'    => 'Quiz', 
    697       'user'    => 'User', 
    698       'points'  => 'Points', 
    699       'correct' => 'Correct' 
    700     ) 
    701   ); 
    702 } 
     690 
    703691 
    704692add_action( 'admin_footer-edit.php', 'quizmasterRemovePostEditTitle' ); 
     
    711699} 
    712700 
    713 add_filter('manage_quizmaster_score_posts_custom_column', 'quizmaster_score_column_content', 10, 2); 
    714 function quizmaster_score_column_content( $column, $post_id ) { 
    715  
    716   $score = new QuizMaster_Model_Score( $post_id ); 
    717  
    718   switch ( $column ) { 
    719     case 'quiz' : 
    720       $quizRevisionId = get_field( $score->getFieldPrefix() . 'quiz_revision', $post_id ); 
    721       print get_the_title( $quizRevisionId ); 
    722       break; 
    723     case 'user' : 
    724       $user = get_field( $score->getFieldPrefix() . 'user', $post_id ); 
    725             if( is_array( $user )) { 
    726                 print $user['display_name']; 
    727             } else { 
    728                 print __('anonymous', 'quizmaster'); 
    729             } 
    730       break; 
    731     case 'points' : 
    732       $totals = $score->getTotals(); 
    733       print $totals['pointsEarned']; 
    734       break; 
    735     case 'correct' : 
    736       $totals = $score->getTotals(); 
    737       print $totals['qCorrect'] . '/' . $totals['qCount']; 
    738       break; 
    739   } 
    740 } 
    741  
    742 add_filter('manage_edit-quizmaster_score_sortable_columns', 'quizmaster_score_sortable_column'); 
    743 function quizmaster_score_sortable_column( $columns ) { 
    744   $columns['quiz']   = 'quiz'; 
    745   $columns['user']   = 'user'; 
    746   $columns['points'] = 'points'; 
    747   return $columns; 
    748 } 
     701/* 
     702 * Setup Admin Columns, Filters 
     703 */ 
     704QuizMaster_Helper_Admin::init(); 
    749705 
    750706/* Quiz Scores Filters */ 
  • quizmaster/trunk/readme.txt

    r1719136 r1719320  
    55Requires at least: 4.0 
    66Tested up to: 4.3 
    7 Stable tag: 0.7.3 
     7Stable tag: 0.7.4 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
Note: See TracChangeset for help on using the changeset viewer.