I'm not too much familiar with PHP and i'm trying to set up a wordpress page..
I have a function like;
public static function autoload() {
$path_ = GMEDIA_ABSPATH . '/admin/class.processor.';
$page = !isset($_GET['page'])?: $_GET['page'];
switch($page) {
case 'GrandMedia':
include_once($path_ . 'library.php');
break;
case 'GrandMedia_AddMedia':
include_once($path_ . 'addmedia.php');
break;
case 'GrandMedia_Terms':
include_once($path_ . 'terms.php');
break;
case 'GrandMedia_Galleries':
include_once($path_ . 'galleries.php');
break;
case 'GrandMedia_Modules':
include_once($path_ . 'modules.php');
break;
case 'GrandMedia_Settings':
include_once($path_ . 'settings.php');
break;
case 'GrandMedia_WordpressLibrary':
include_once($path_ . 'wpmedia.php');
break;
default:
global $gmProcessor;
$gmProcessor = new GmediaProcessor();
break;
}
}
and in the line 3 (is the line 144 in entire code) i get this;
Parse error: syntax error, unexpected ':' in /vhosts/karasinek.biz/http/wp-content/plugins/grand-media/admin/class.processor.php on line 144
Can you please help me to solve it?