';
}
if (isset($_GET["job"])){
if ($_GET['job'] == "create_timeclock_page") {
$tc_page = $this->aio_check_tc_shortcode_lite();
if ($tc_page == null) {
$my_post = array(
'post_type' => 'page',
'post_title' => 'Time Clock',
'post_status' => 'publish',
'post_content' => '[show_aio_time_clock_lite]',
'comment_status' => 'closed',
'post_author' => $current_user->ID
);
// Insert the post into the database
$new_post_id = wp_insert_post($my_post);
}
echo '';
}
if ($_GET['job'] == "create_eprofile_page") {
$eprofile_page = check_eprofile_shortcode_lite();
if ($eprofile_page == null) {
$my_post = array(
'post_type' => 'page',
'post_title' => 'Employee Profile',
'post_status' => 'publish',
'post_content' => '[show_aio_employee_profile_lite]',
'comment_status' => 'closed',
'post_author' => 1
);
// Insert the post into the database
$new_eprofile_id = wp_insert_post($my_post);
}
echo '';
if ($new_eprofile_id != null) {
echo __('Employee Profile Page Created Sucessfully', 'aio-time-clock-lite'). "
";
echo '
'.__(' View Page', 'aio-time-clock-lite').'';
} else {
__('Something went wrong. Employee Profile Page was not created successfully', 'aio-time-clock-lite');
if ($eprofile_page != null) {
_e('You already have a Employee Profile page created', 'aio-time-clock-lite'). ".
";
echo '
'.__(' View Page', 'aio-time-clock-lite').'';
}
}
echo '
';
}
}
?>
Need Help?');
echo __('Visit this link and we\'ll get you on your way').'. '.__('Get Support', 'aio-time-clock-lite').'';
}
if ($tab == "news") {
include("aio-news.php");
}
if ($tab == "get_pro") {
echo '';
echo '
'.__('AIO Time Clock Pro', 'aio-time-clock-lite').'
';
echo '
';
echo '
'.__('Some Pro Features Include', 'aio-time-clock-lite').':
- '.__('Add your own custom roles for time clock access', 'aio-time-clock-lite').'
- '.__('Custom Weekly and Monthly shift reports', 'aio-time-clock-lite').'
- '.__('Export Reports to Spreadsheet/CSV', 'aio-time-clock-lite').'
- '.__('Manage Wages', 'aio-time-clock-lite').'
- '.__('Monthly/Yearly Charts', 'aio-time-clock-lite').'
- '.__('Unlimited Clock in Locations', 'aio-time-clock-lite').'
- '.__('Google Analytics', 'aio-time-clock-lite').'
- '.__('Employee IP Address Tracking', 'aio-time-clock-lite').'
- '.__('Extensions/Addons Supported to allow anything to be possible', 'aio-time-clock-lite').'
- '.__('And much much more', 'aio-time-clock-lite').'
';
echo '
'.__('Learn More about Pro', 'aio-time-clock-lite').'
';
echo '
';
}
?>