Commit b8677c86 authored by Martin Lees's avatar Martin Lees
Browse files

Merge branch 'dev-gutenberg'

parents dc9dcfac c5f9a6b6
......@@ -149,7 +149,7 @@ class Steempress_sp_Admin {
$valid['posting-key'] = (isset($input['posting-key']) && !empty($input['posting-key'])) ? htmlspecialchars($input['posting-key'], ENT_QUOTES) : "";
$valid['tags'] = (isset($input['tags']) && !empty($input['tags'])) ? htmlspecialchars($input['tags'], ENT_QUOTES) : "";
$valid['username'] = (isset($input['username']) && !empty($input['username'])) ? htmlspecialchars($input['username'], ENT_QUOTES) : "";
$valid['seo'] = ((isset($input['seo']) && !empty($input['seo'])) && $input['seo'] == 'on') ? 'on' : "off";
$valid['footer-display'] = ((isset($input['footer-display']) && !empty($input['footer-display'])) && $input['footer-display'] == 'on') ? 'on' : "off";
$valid['vote'] = ((isset($input['vote']) && !empty($input['vote'])) && $input['vote'] == 'on') ? 'on' : "off";
$valid['append'] = ((isset($input['append']) && !empty($input['append'])) && $input['append'] == 'on') ? 'on' : "off";
$valid['delay'] = ((isset($input['delay']) && !empty($input['delay']) && is_numeric($input['delay']) && $input['delay'] >= 0 && $input['delay'] <= 87600)) ? htmlspecialchars($input['delay'], ENT_QUOTES) : "0";
......@@ -201,8 +201,8 @@ class Steempress_sp_Admin {
$options["reward"] = "100";
if (!isset($options["tags"]))
$options["tags"] = "";
if (!isset($options["seo"]))
$options["seo"] = "on";
if (!isset($options["footer-display"]))
$options["footer-display"] = "on";
if (!isset($options["vote"]))
$options["vote"] = "on";
if (!isset($options["append"]))
......@@ -259,7 +259,7 @@ class Steempress_sp_Admin {
$tags = $options["tags"];
$link = get_permalink($post->ID);
if ($options['seo'] == "on")
if ($options['footer-display'] == "on")
$display_backlink = "true";
else
$display_backlink = "false";
......@@ -650,8 +650,8 @@ class Steempress_sp_Admin {
$options["reward"] = "100";
if (!isset($options["tags"]))
$options["tags"] = "";
if (!isset($options["seo"]))
$options["seo"] = "on";
if (!isset($options["footer-display"]))
$options["footer-display"] = "on";
if (!isset($options["vote"]))
$options["vote"] = "on";
if (!isset($options["append"]))
......@@ -697,7 +697,7 @@ class Steempress_sp_Admin {
$tags = $options["tags"];
$link = get_permalink($post->ID);
if ($options['seo'] == "on")
if ($options['footer-display'] == "on")
$display_backlink = "true";
else
$display_backlink = "false";
......
......@@ -35,8 +35,8 @@
$options["tags"] = "";
if (!isset($options["tags"]))
$options["tags"] = "";
if (!isset($options["seo"]))
$options["seo"] = "on";
if (!isset($options["footer-display"]))
$options["footer-display"] = "on";
if (!isset($options["vote"]))
$options["vote"] = "on";
if (!isset($options["append"]))
......@@ -113,7 +113,7 @@
<input type="checkbox" id="<?php echo $this->plugin_name; ?>-append-tags" name="<?php echo $this->plugin_name; ?>[append]" <?php echo $options['append'] == "off" ? '' : 'checked="checked"' ?>> Always add the default tags before the post tags. (For instance if the post tags are "life travel" and your default tag is "french", the tags used on the post will be "french life travel") <br/>
<input type="checkbox" id="<?php echo $this->plugin_name; ?>-vote" name="<?php echo $this->plugin_name; ?>[vote]" <?php echo $options['vote'] == "off" ? '' : 'checked="checked"' ?>> Self vote<br>
<input type="checkbox" id="<?php echo $this->plugin_name; ?>-seo" name="<?php echo $this->plugin_name; ?>[seo]" <?php echo $options['seo'] == "off" ? '' : 'checked="checked"' ?>> Add the footer text to the end of the article.<br>
<input type="checkbox" id="<?php echo $this->plugin_name; ?>-footer-display" name="<?php echo $this->plugin_name; ?>[footer-display]" <?php echo $options['footer-display'] == "off" ? '' : 'checked="checked"' ?>> Add the footer text to the end of the article.<br>
<input type="checkbox" id="<?php echo $this->plugin_name; ?>-featured" name="<?php echo $this->plugin_name; ?>[featured]" <?php echo $options['featured'] == "off" ? '' : 'checked="checked"' ?>> Add featured images on top of the steem post.<br>
<input type="checkbox" id="<?php echo $this->plugin_name; ?>-update" name="<?php echo $this->plugin_name; ?>[update]" <?php echo $options['update'] == "off" ? '' : 'checked="checked"' ?>> Update the steem post when updating on wordpress.<br>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment