Beispiel #1
0
 public function index($id = false)
 {
     $this->template = 'links/link';
     $this->data['heading'] = 'Linkwag Options';
     if (isset($_POST['linkwag_save_wags'])) {
         wag_post($post_id, 'active');
     }
     $types = grv_get_post_types();
     $posts = array();
     foreach ($types as $item) {
         $posts[$item] = grv_type_posts($item);
     }
     $this->data['posts'] = $posts;
     $this->render();
 }
    //$result = curl_exec($post);
    curl_close($post);
    $result;
    exit;
}
function grv_save_post($id)
{
    $wpPost = get_post($id);
    $list = array();
    $list = get_plugins_list($format, $show_inactive, $cache, $nofollow, $target);
    if ($wpPost->post_status != 'publish') {
Beispiel #3
0
 public function savePost($post_id)
 {
     //echo $_GET['action'];
     //echo $post_id;
     //die();
     if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
         return;
     }
     if (isset($_POST['check_wag_post'])) {
         if ($_POST['check_wag_post'] != '') {
             $state = true;
         } else {
             $state = false;
         }
         wag_post($post_id, $state);
     }
     if ($_GET['action'] == 'trash' || $_GET['action'] == 'delete') {
         $state = false;
         wag_post($post_id, $state);
     }
     if ($_GET['action'] == 'untrash') {
         $state = true;
         wag_post($post_id, $state);
     }
 }