Beispiel #1
0
?>
</h2>
	
	<ul>
		 <li><strong><?php 
_e('Intelligence module -', 'watupro');
?>
</strong> <?php 
echo watupro_intel() ? __("Installed", 'watupro') : __("Not installed", 'watupro');
?>
</li>
		 <li><strong><?php 
_e('Reporting module -', 'watupro');
?>
</strong> <?php 
echo watupro_module('reports') ? __("Installed", 'watupro') : __("Not installed", 'watupro');
?>
</li>
	</ul>
	
	<p><a href="http://calendarscripts.info/watupro/modules.html" target="_blank"><?php 
_e('For more info about the additional modules please click here.', 'watupro');
?>
</a></p>
	
	<p><?php 
printf(__('Check also our <a href="%s" target="_blank">free add-ons and bridges</a>.', 'watupro'), 'http://calendarscripts.info/watupro/bridges.html');
?>
</p>
	
	<?php 
Beispiel #2
0
</p>
			<?php 
} else {
    ?>
				<p><?php 
    _e('Display code:', 'watupro');
    ?>
 <input type="text" size="14" readonly="true" onclick="this.select();" value="{{{answerto-<?php 
    echo $question->ID;
    ?>
}}}"> <?php 
    _e('(You can use this in the final screen or certificate contents to display the user answer on this question.)', 'watupro');
    ?>
</p>	
				<?php 
    if (watupro_module('reports')) {
        ?>
				<p><?php 
        _e('Shortcode for poll-like chart:', 'watupro');
        ?>
 <input type="text" size="30" onclick="this.select();" value='[watupror-poll question_id="<?php 
        echo $question->ID;
        ?>
"]' readonly="readonly"> <a href="admin.php?page=watupro_help#reporting" target="_blank"><?php 
        _e('How to configure?', 'watupro');
        ?>
</a></p>
				<?php 
    }
    // end if reporting moudle available
}
Beispiel #3
0
add_action('wp_ajax_nopriv_watupro_submit', 'watupro_submit');
add_action('wp_ajax_watupro_initialize_timer', 'watupro_initialize_timer');
add_action('wp_ajax_nopriv_watupro_initialize_timer', 'watupro_initialize_timer');
add_action('wp_ajax_watupro_store_details', 'watupro_store_details');
add_action('wp_ajax_nopriv_watupro_store_details', 'watupro_store_details');
add_action('wp_ajax_watupro_liveresult', 'watupro_liveresult');
add_action('wp_ajax_nopriv_watupro_liveresult', 'watupro_liveresult');
add_action('wp_ajax_watupro_store_all', 'watupro_store_all');
add_action('wp_ajax_watupro_get_hints', 'watupro_get_hints');
add_action('wp_ajax_nopriv_watupro_get_hints', 'watupro_get_hints');
add_action('wp_ajax_watupro_ajax', 'watupro_ajax');
add_action('wp_ajax_nopriv_watupro_ajax', 'watupro_ajax');
// misc ajax handler to avoid adding more ajax actions
// user groups - functions in controllers/groups.php
add_action('show_user_profile', 'watupro_user_fields');
add_action('edit_user_profile', 'watupro_user_fields');
add_action('personal_options_update', 'watupro_save_extra_user_fields');
add_action('edit_user_profile_update', 'watupro_save_extra_user_fields');
add_filter('plugin_action_links', 'watupro_plugin_action_links', 10, 2);
// extra columns in user profile
add_filter('manage_users_columns', array('WTPUser', 'add_custom_column'));
add_action('manage_users_custom_column', array('WTPUser', 'manage_custom_column'), 10, 3);
if (watupro_module("reports")) {
    require WATUPRO_PATH . "/modules/reports/controllers/init.php";
}
function watupro_get_version()
{
    $plugin_data = get_plugin_data(__FILE__);
    $plugin_version = $plugin_data['Version'];
    return $plugin_version;
}