var $theme;
// Facebook theme
$this->theme = $pluginParams->get('fb-theme','dark');
<div class="fb-comments" data-href="{post-url}" data-num-posts="{postcount}" data-width="{width}" <div class="fb-comments" data-href="home.rhuk.net" data-num-posts="5" data-width="500" data-colorscheme="light"></div>';
}
<div class="fb-comments" data-href="{post-url}" data-num-posts="{postcount}" data-width="{width}" data-colorscheme="{theme}" <div class="fb-comments" data-href="home.rhuk.net" data-num-posts="5" data-width="500" data-colorscheme="dark"></div>';
}
$search = array('{subdomain}', '{post-id}', '{post-url}', '{post-path}', '{devmode}', '{rk-icon}', '{domain}', '{account}', '{width}', '{postcount}', '{host}');
$search = array('{subdomain}', '{post-id}', '{post-url}', '{post-path}', '{devmode}', '{rk-icon}', '{domain}', '{account}', '{width}', '{postcount}', '{theme}', '{host}');
$replace = array($this->subdomain, $this->postid, $this->url, $this->path, $this->devmode, $this->commenticon, $this->domain, $this->account, $this->width, $this->postcount, $this->host);
$replace = array($this->subdomain, $this->postid, $this->url, $this->path, $this->devmode, $this->commenticon, $this->domain, $this->account, $this->width, $this->postcount, $this->theme, $this->host);
<field name="fb-theme" type="list" default="1" label="Facebook Theme" description="Select the desire facebook theme">
<option value="dark">Dark</option>
<option value="light">Light</option>
</field>
$theme = $pluginParams->get('fb-theme','dark');
$search = array('{subdomain}','{post-id}','{post-url}','{post-path}','{devmode}','{rk-icon}','{domain}','{account}', '{width}', '{postcount}', '{theme}', '{host}');
$search = array('{subdomain}','{post-id}','{post-url}','{post-path}','{devmode}','{rk-icon}','{domain}','{account}', '{width}', '{postcount}', '{host}');
$replace = array($subdomain,$postid,$url,$path,$devmode,$commenticon,$domain,$account,$width,$postcount,$host);
$replace = array($subdomain,$postid,$url,$path,$devmode,$commenticon,$domain,$account,$width,$postcount,$theme,$host);
<div class="fb-comments" data-href="{post-url}" data-num-posts="{postcount}" data-width="{width}" <div class="fb-comments" data-href="home.rhuk.net" data-num-posts="5" data-width="500" data-colorscheme="light"></div>';
}
<div class="fb-comments" data-href="{post-url}" data-num-posts="{postcount}" data-width="{width}" data-colorscheme="{theme}" <div class="fb-comments" data-href="home.rhuk.net" data-num-posts="5" data-width="500" data-colorscheme="light"></div>';
}
<param name="fb-theme" type="list" default="1" label="Facebook Theme" description="Select the desire facebook theme">
<option value="dark">Dark</option>
<option value="light">Light</option>
</param>
Time to create page: 0.075 seconds