get blank after install tabbed products por , help me please
Hi
i get blank page after install tabbed products por ,and it display:Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /host/includes/functions/extra_functions/class.rlwp.php on line 23
already install wordpress
class.rlwp.php :
define ('ABSPATH','/****/wordpress/'); // abs-path to wp
if (file_exists(ABSPATH.'wp-config.php')) {
require_once(ABSPATH.'wp-config.php');
$wpinstall = true;
}
class rlWP {
public $wpinstall;
private $tag;
function __construct(){
$this->wpinstall = false;
if (file_exists(ABSPATH.'wp-config.php')) {
$this->wpinstall = true;
require_once(ABSPATH.'wp-config.php');
}
}
public function getWPTag($tag = 'zen-cart'){
$content = '';
$this->tag = $tag;
if($this->wpinstall == true) {
$lastposts = get_posts('tag=' . $this->tag);
if(empty($lastposts)){
$content = 'NIX gefunden';
} else {
foreach ($lastposts as $post) {
$content .= '<div style="padding:4px; border: 1px solid green;"><h3>' . $post->post_title . '</h3><p>' . $post->post_content . '</p></div>';
}
}
} else {
$content = 'WP nicht installiert/richtig konfiguriert';
}
return $content;
}
}
function getWPTag($tag = 'zen-cart'){
$wp = new rlWP();
return $wp->getWPTag($tag);
}
help me please
www.cbwp.us
tabbed_products_pro_1-06b.zip
Bookmarks