WordPress.org

Plugin Directory

Changeset 532283


Ignore:
Timestamp:
04/17/12 14:09:13 (2 years ago)
Author:
ZaMoose
Message:

Updating AJAX functionality. Still NRFPT.

Location:
lb-colorbox/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • lb-colorbox/trunk/include/js/lbcb-ajax.js

    r532108 r532283  
    22    $(".save a").click( function() { 
    33        var data = { 
    4             action: "", 
     4            action: 'process_kuler', 
    55            kuler: 'this will be echoed back' 
    66        }; 
  • lb-colorbox/trunk/include/lbcb-cpt.php

    r532108 r532283  
    147147add_filter( 'cmb_meta_boxes', 'lbcb_metaboxes' ); 
    148148 
     149/** 
     150 * Initialize the CMB meta boxes. 
     151 */ 
    149152function lbcb_initialize_cmb_meta_boxes() { 
    150153 
     
    155158add_action( 'init', 'lbcb_initialize_cmb_meta_boxes', 9999 ); 
    156159 
     160/** 
     161 * Insert colorbox into the CPTs. 
     162 */ 
    157163function lbcb_insert_colorbox( $colorbox = array() ){ 
    158164    $post = array( 
     
    163169     
    164170    $cb_ID = wp_insert_post( $post ); 
     171     
    165172     
    166173    if( $cb_ID != 0 ){ 
  • lb-colorbox/trunk/include/lbcb-list-table.php

    r532108 r532283  
    3131    function column_title( $item ){ 
    3232        $actions = array( 
    33             'save'  => sprintf('<a href="?page=%s&post_type=colorbox&action=%s&kuler=%s">Save</a>',$_REQUEST['page'],'save',urlencode($item['url'])), 
     33            'save'  => sprintf('<a href="?page=%s&post_type=colorbox&action=%s&kuler=%s">Save</a>',$_REQUEST['page'],'process_kuler',urlencode($item['url'])), 
    3434        ); 
    3535         
     
    9898     */ 
    9999    function get_sortable_columns(){ 
    100         $sortable_columns = array( 
    101             'title'     => array( 'title', false ), 
    102             'author'    => array( 'author', false ) 
    103         ); 
     100        // $sortable_columns = array( 
     101        //          'title'     => array( 'title', false ), 
     102        //          'author'    => array( 'author', false ) 
     103        //      ); 
    104104        return $sortable_columns; 
    105105    } 
  • lb-colorbox/trunk/lb-colorbox.php

    r532108 r532283  
    4141    include( 'include/lbcb-options.php' ); 
    4242    include( 'include/lbcb-list-table.php' ); 
     43    include( 'include/lbcb-ajax.php' ); 
    4344} 
    4445include( 'include/lbcb-cpt.php' ); 
     
    4647include( 'include/lbcb-kuler.php' ); 
    4748include( 'include/lbcb-output.php' ); 
    48  
    49 // $ratedk = lbcb_get_kulers( 'rating' ); 
    50 // $popk = lbcb_get_kulers( 'popular' ); 
    5149 
    5250foreach($ratedk as $rks){ 
     
    5957 
    6058function lbcb_enqueue_styles(){ 
    61     //if( ( 'colorbox' == get_post_type() ) ){ 
    6259        wp_enqueue_style( 'lb-colorbox', plugin_dir_url(__FILE__) . 'include/css/lbcb-core.css', '', '', 'screen' ); 
    63     //} 
    6460} 
    6561add_action( 'wp_enqueue_scripts', 'lbcb_enqueue_styles', 11 ); 
Note: See TracChangeset for help on using the changeset viewer.