<?php
/**
* @package googlemapsForWP
* @author webcat
*/
//#################################################################
// Stop direct call
//if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
//#################################################################
if (!class_exists('googlemapsForWPScreen')) {
/**
* Main class for the plugin
*
* sets up all the links into wordpress and provides access to the output functions
*/
class googlemapsForWPScreen {
function __construct() {
}
/**
*
*/
function screenMenu(){
ob_start();
$b = ob_get_clean();
return $b;
}
/**
*
* @param bool $submitted
*/
function twitter($submitted){
if(!$submitted){
/* require googlemapsForWP::pluginDir().'libraries'.DIRECTORY_SEPARATOR.'twitter.php';
$twitter= new Twitter();
$authpage =$twitter->authenticate();
if (!strcmp((substr($authpage, 0, 1)),"0")==0){
include_once googlemapsForWP::pluginDir().'output'.DIRECTORY_SEPARATOR.'twitterForm.tpl';
}else{
$authpage = split(';',$authpage);
include_once googlemapsForWP::pluginDir().'output'.DIRECTORY_SEPARATOR.'twitterFail.tpl';
} */
}else{
//validate here
//require 'business\companyTweep.php';
//new companytweep with login credentials
//assign return values to template tags and return confirmation of success or fail
//include_once googlemapsForWP::pluginDir().'output'.DIRECTORY_SEPARATOR.'twitterConfirm.tpl';
}
}
private function compForm(){
//include_once googlemapsForWP::pluginDir().'output'.DIRECTORY_SEPARATOR.'compForm.tpl';
}
private function entriesList(){
//include_once googlemapsForWP::pluginDir().'output'.DIRECTORY_SEPARATOR.'entriesList.tpl';
}
}
}
?>