diff -r 000000000000 -r d970ebf37754 wp/wp-content/themes/themeforest-2964855-scrn-responsive-single-page-portfolio/SCRN/includes/additional_functions.php
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wp/wp-content/themes/themeforest-2964855-scrn-responsive-single-page-portfolio/SCRN/includes/additional_functions.php Wed Nov 06 03:21:17 2013 +0000
@@ -0,0 +1,166 @@
+ID,'vp_settings',true));
+ $background = isset($temp['background']) ? $temp['background'] : '';
+ $background_color = isset($temp['background_color']) ? $temp['background_color'] : '';
+ $slogan = isset($temp['slogan']) ? $temp['slogan'] : '';
+ $slogan_bg = isset($temp['slogan_bg']) ? $temp['slogan_bg'] : '';
+ $variation = isset($temp['variation']) ? $temp['variation'] : '';
+?>
+
+
+post_type )
+ {
+ if ( !current_user_can( 'edit_page', $post_id ) )
+ return;
+ }
+ else
+ {
+ if ( !current_user_can( 'edit_post', $post_id ) )
+ return;
+ }
+ $temp['background'] = isset($_POST['vp_background']) ? esc_attr($_POST['vp_background']) : '';
+ $temp['background_color'] = isset($_POST['vp_background_color']) ? esc_attr($_POST['vp_background_color']) : '';
+ $temp['slogan'] = isset($_POST['vp_slogan']) ? $_POST['vp_slogan'] : '';
+ $temp['slogan_bg'] = isset($_POST['vp_sloganbg']) ? esc_attr($_POST['vp_sloganbg']) : '';
+ $temp['variation'] = isset($_POST['vp_bg_style']) ? esc_attr($_POST['vp_bg_style']) : '';
+ update_post_meta($post_id, 'vp_settings', $temp);
+}
+
+//*********** Page Templates Area **************
+
+function vp_pagetemplates_meta() {
+ global $post;
+ $temp = maybe_unserialize(get_post_meta($post->ID,'vp_ptemplate_settings',true));
+ $categories = isset($temp['categories']) ? $temp['categories'] : '';
+ $blog_posts = isset($temp['blog_posts']) ? $temp['blog_posts'] : '';
+?>
+ Here you'll see some page template options(just for the theme specific page templates)
+
+
Select categories to include:
+
+ cat_ID, $categories)) $checked = "checked=\"checked\"";
+ } ?>
+
+
+
+
+
+
+
+
+
+
+post_type )
+ {
+ if ( !current_user_can( 'edit_page', $post_id ) )
+ return;
+ }
+ else
+ {
+ if ( !current_user_can( 'edit_post', $post_id ) )
+ return;
+ }
+ $temp = array();
+ if(isset($_POST['vp_categories']))
+ {
+ $temp['categories'] = (array)$_POST['vp_categories'];
+ }
+ else
+ $temp['categories'] = '';
+
+ if(isset($_POST['vp_blogposts']) != '' && is_numeric($_POST['vp_blogposts']) )
+ $temp['blog_posts'] = (int)$_POST['vp_blogposts'];
+ else
+ $temp['blog_posts'] = 6;
+ update_post_meta($post_id, 'vp_ptemplate_settings', $temp);
+}
+
+?>
\ No newline at end of file