From 61af4045933960e880e9b0c591e065b98f66637b Mon Sep 17 00:00:00 2001 From: Emmanuel Date: Sat, 22 Mar 2014 23:32:16 +0100 Subject: [PATCH 1/2] [NEW] add checkbox 'Index and include in sitemap.xml' --- oc-admin/themes/modern/pages/frm.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/oc-admin/themes/modern/pages/frm.php b/oc-admin/themes/modern/pages/frm.php index 5e9fd00db7..e2c0275e11 100644 --- a/oc-admin/themes/modern/pages/frm.php +++ b/oc-admin/themes/modern/pages/frm.php @@ -142,9 +142,15 @@ function ajaxfilemanager(field_name, url, type, win) {
-
- - +
+
+ +
+
+
+
+ +
From 2307bd4b9897a0e0d3c601af2ce8292df4957fed Mon Sep 17 00:00:00 2001 From: Emmanuel Date: Sat, 22 Mar 2014 23:52:20 +0100 Subject: [PATCH 2/2] [NEW] add indexed_checkbox for SEO purpose --- oc-includes/osclass/frm/Page.form.class.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/oc-includes/osclass/frm/Page.form.class.php b/oc-includes/osclass/frm/Page.form.class.php index 9cfaf0adf3..cca10203c7 100755 --- a/oc-includes/osclass/frm/Page.form.class.php +++ b/oc-includes/osclass/frm/Page.form.class.php @@ -40,14 +40,17 @@ static public function internal_name_input_text($page = null) { } static public function link_checkbox($page = null) { - $checked = true; - if( is_array($page) && isset($page['b_link']) && $page['b_link']==0 ) { - $checked = false; - } + $checked = ! ( is_array($page) && isset($page['b_link']) && $page['b_link'] == 0 ); parent::generic_input_checkbox('b_link', "1", $checked); } + static public function indexed_checkbox($page = null) { + $checked = ! ( is_array($page) && isset($page['b_indexed']) && $page['b_indexed'] == 0 ); + + parent::generic_input_checkbox('b_indexed', "1", $checked); + } + static public function multilanguage_name_description($locales, $page = null) { $num_locales = count($locales); if($num_locales > 1) echo '
';