Plugin Directory

Changeset 1492831


Ignore:
Timestamp:
09/08/2016 08:36:34 PM (10 years ago)
Author:
thrivehive
Message:

updating appropriate meta values and custom style for parallax

Location:
thrivehive/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • thrivehive/trunk/controllers/posts.php

    r1338431 r1492831  
    3939    $_REQUEST['categories'] = $categories;
    4040
    41     nocache_headers();
     41    $meta_values = strtolower(str_replace('\\', '', $_REQUEST['meta_values']));
     42    $meta_values = json_decode($meta_values);
     43    $_REQUEST['meta_values'] = $meta_values;
     44
     45
     46      nocache_headers();
    4247    $post = new JSON_API_Post();
    4348
     
    5358    {
    5459      update_post_meta($id, 'th_data', $_REQUEST['th_data']);
     60    }
     61
     62    foreach ($meta_values as $key => $value){
     63      update_post_meta($id, $key, $value);
    5564    }
    5665    return array(
     
    92101    }
    93102
     103    $meta_values = strtolower(str_replace('\\', '', $_REQUEST['meta_values']));
     104    $meta_values = json_decode($meta_values);
     105    $_REQUEST['meta_values'] = $meta_values;
     106
    94107    nocache_headers();
    95108    $post = new JSON_API_Post($post);
     
    102115    {
    103116      update_post_meta($_REQUEST['post_id'], 'th_data', $_REQUEST['th_data']);
     117    }
     118    foreach ($meta_values as $key => $value){
     119      update_post_meta($id, $key, $value);
    104120    }
    105121    return array(
  • thrivehive/trunk/css/custom_style.css

    r1371710 r1492831  
    858858/*  margin: 12px 0;*/
    859859}
     860.widget, .widget_nav_menu .widget-wrap{
     861    text-align: right;
     862}
    860863
    861864
Note: See TracChangeset for help on using the changeset viewer.