|
generalOptions["lang"]) ? $this->generalOptions["lang"] : get_user_locale(); ?>
" target="_blank">
|
|
generalOptions["roles_cannot_comment"]) ? $this->generalOptions["roles_cannot_comment"] : [];
foreach ($blogRoles as $role => $info) {
if ($role !== "administrator") {
?>
value=""
name="[roles_cannot_comment][]"
id="wpd-"
style="margin:0px; vertical-align: middle;"/>
" target="_blank">
|
|
generalOptions["guest_can_comment"]) ? $this->generalOptions["guest_can_comment"] : 1; ?>
type="radio"
name="[guest_can_comment]"
value="1" id="wpd_cf_guest_yes">
type="radio"
name="[guest_can_comment]"
value="0" id="wpd_cf_guest_no">
" target="_blank">
|
|
generalOptions["roles_cannot_see_comments"]) ? $this->generalOptions["roles_cannot_see_comments"] : [];
foreach ($blogRoles as $role => $info) {
if ($role !== "administrator") {
?>
value=""
name="[roles_cannot_see_comments][]"
id="wpd-cannot-see-comments-"
style="margin:0px; vertical-align: middle;"/>
|
|
generalOptions["guest_can_see_comments"]) ? $this->generalOptions["guest_can_see_comments"] : 1; ?>
type="radio"
name="[guest_can_see_comments]"
value="1" id="wpd_csc_guest_yes">
type="radio"
name="[guest_can_see_comments]"
value="0" id="wpd_csc_guest_no">
|
|
generalOptions["show_subscription_bar"]) ? $this->generalOptions["show_subscription_bar"] : 1; ?>
type="radio"
name="[show_subscription_bar]"
value="1" id="wpd_cf_sbbar_yes">
type="radio"
name="[show_subscription_bar]"
value="0" id="wpd_cf_sbbar_no">
"
target="_blank">
|
|
generalOptions["guest_can_subscribe"]) ? $this->generalOptions["guest_can_subscribe"] : 1; ?>
type="radio"
name="[guest_can_subscribe]"
value="1" id="wpd_cf_gcs_yes">
type="radio"
name="[guest_can_subscribe]"
value="0" id="wpd_cf_gcs_no">
"
target="_blank">
|
|
generalOptions["roles_can_subscribe"]) ? $this->generalOptions["roles_can_subscribe"] : $this->getDefaultRoles();
foreach ($blogRoles as $role => $info) {
if ($role === "administrator") {
continue;
}
?>
value=""
name="[roles_can_subscribe][]"
id="wpd-can-subscribe-"
style="margin:0px; vertical-align: middle;"/>
|
|
generalOptions["show_subscription_agreement"]) ? $this->generalOptions["show_subscription_agreement"] : 0; ?>
type="radio"
name="[show_subscription_agreement]"
value="1"
id="wpd_cf_sbbar_agreement_yes">
type="radio"
name="[show_subscription_agreement]"
value="0"
id="wpd_cf_sbbar_agreement_no">
" target="_blank">
|
|
generalOptions["subscription_agreement_label"]) && $this->generalOptions["subscription_agreement_label"] ? $this->generalOptions["subscription_agreement_label"] : esc_html__("I allow to use my email address and send notification about new comments and replies (you can unsubscribe at any time).", "wpdiscuz"); ?>
|
|
"
value="generalOptions["header_text_single"]) ? htmlentities($this->generalOptions["header_text_single"], ENT_QUOTES) : esc_html__("Comment", "wpdiscuz"); ?>"
style="width:80%;">
" target="_blank">
|
|
"
value="generalOptions["header_text_plural"]) ? htmlentities($this->generalOptions["header_text_plural"], ENT_QUOTES) : esc_html__("Comments", "wpdiscuz"); ?>"
style="width:80%;">
" target="_blank">
|
|
formPostTypes = $this->formPostTypes ? $this->formPostTypes : [];
$registeredPostTypes = get_post_types(["public" => true]);
$formContentTypeRel = $this->wpdOptions->formContentTypeRel;
$hasForm = false;
$formRelExistsInfo = " " . esc_html__("The red marked post types are already attached to other comment form. If you set this form too, the old forms will not be used for them.", "wpdiscuz") . " ";
foreach ($registeredPostTypes as $typeKey => $typeValue) {
if (!post_type_supports($typeKey, "comments")) {
continue;
}
$checked = array_key_exists($typeKey, $this->formPostTypes) ? "checked" : "";
$formRelExistsClass = "";
if (!$checked && !empty($formContentTypeRel[$typeKey][$lang])) {
$formRelExistsClass = "wpd-form-rel-exixts";
$hasForm = true;
}
?>
" target="_blank">
|
|
generalOptions["postid"], ENT_QUOTES) : ""; ?>"
style="width:80%;">
" target="_blank">
|
getThemes()) {
$theme = !empty($this->generalOptions["theme"]) && isset($themes[$this->generalOptions["theme"]]) ? $this->generalOptions["theme"] : $this->getDefaultTheme();
if (count($themes) > 1) {
?>
|
$val) {
?>
type="radio"
name="[theme]"
value=""
id="wpd_cf_theme_">
|
getLayouts($theme)) && count($layouts) > 1) {
?>
|
"
target="_blank">
|
|
generalOptions) ? $this->generalOptions["enable_post_rating"] : 1; ?>
type="radio"
name="[enable_post_rating]"
value="1"
id="wpd_enable_post_rating_yes">
type="radio"
name="[enable_post_rating]"
value="0"
id="wpd_enable_post_rating_no">
" target="_blank">
|
|
"
value="generalOptions["post_rating_title"]) ? htmlentities($this->generalOptions["post_rating_title"], ENT_QUOTES) : esc_html__("Article Rating", "wpdiscuz"); ?>"
style="width:80%;">
|
|
generalOptions["allow_guests_rate_on_post"]) ? $this->generalOptions["allow_guests_rate_on_post"] : 1; ?>
type="radio"
name="[allow_guests_rate_on_post]"
value="1"
id="wpd_allow_guests_rate_on_post_yes">
type="radio"
name="[allow_guests_rate_on_post]"
value="0"
id="wpd_allow_guests_rate_on_post_no">
" target="_blank">
|
|
generalOptions["is_rate_editable"]) ? $this->generalOptions["is_rate_editable"] : 0; ?>
type="radio"
name="[is_rate_editable]"
value="1"
id="wpd_is_rate_editable_yes">
type="radio"
name="[is_rate_editable]"
value="0"
id="wpd_is_rate_editable_no">
" target="_blank">
|