Esempio n. 1
0
 add_action("admin_head", "wpdm_adminjs");
 add_action('admin_head', "addusercolumn");
 add_action('post_submitbox_misc_actions', 'wpdm_download_periods');
 //add_action('init','wpdm_update_package');
 add_action("wp_ajax_quick_add_package", "wpdm_save_new_package");
 add_action('wp_ajax_wpdm_category_dropdown', 'wpdm_print_cat_dropdown');
 add_action('wp_ajax_wpdm-install-addon', 'wpdm_install_addon');
 add_action('wp_ajax_delete_package_frontend', 'delete_package_frontend');
 add_action('wp_ajax_dismiss-wpdm-pointer', 'wpdm_dismiss_pointer');
 add_action('wp_ajax_get_link_templates', 'wpdm_get_link_templates');
 add_action('wp_ajax_get_page_templates', 'wpdm_get_page_templates');
 add_action('wp_ajax_wpdm_generate_password', 'wpdm_generate_password');
 add_action('wp_ajax_photo_gallery_upload', 'wpdm_check_upload');
 add_action('wp_ajax_wpdm_frontend_file_upload', 'wpdm_frontend_file_upload');
 add_action('wp_ajax_icon_upload', 'wpdm_upload_icon');
 add_wdm_settings_tab("license", "License", 'wpdm_licnese');
 add_action('init', 'wpdm_delete_all_cats');
 add_action("admin_init", "wpdm_import_csv_file");
 add_action("admin_init", "wpdm_import_category_csv_file");
 add_filter("wpdm_export_custom_form_fields", 'wpdm_export_custom_form_fields');
 add_action("wpdm_custom_form_field", 'wpdm_ask_for_custom_data');
 add_action('wp_ajax_template_preview', 'wpdm_template_preview');
 //Activate auto update
 //add_action('init', 'wpdm_activate_au');
 add_action('admin_footer', 'wpdm_check_update');
 add_action('admin_init', 'wpdm_meta_boxes', 0);
 add_action("wp_ajax_wpdm_dimport", "wpdm_dimport");
 add_filter('manage_posts_columns', 'wpdm_columns_th');
 add_action('manage_posts_custom_column', 'wpdm_columns_td', 10, 2);
 add_filter('request', 'wpdm_dlc_orderby');
 add_filter('manage_edit-wpdmpro_sortable_columns', 'wpdm_dlc_sortable');
        echo $copied;
        ?>
</b></td>

     </tr>
     <?php 
    }
    ?>
    </tbody>
</table>

 <script language="JavaScript">
 <!--
   jQuery('.call').click(function(){
       if(this.checked)
       jQuery('.m').attr('checked','checked');
       else
       jQuery('.m').removeAttr('checked');
   });
 //-->
 </script>

    <?php 
}
global $wpdb;
if ($wpdb->get_var("SHOW TABLES LIKE 'ahm_files'") == 'ahm_files') {
    $tf = $wpdb->get_var("select count(*) from `ahm_files`");
    if (function_exists('add_wdm_settings_tab') && $tf > 0) {
        add_wdm_settings_tab("m24x", "Migrate", 'wpdm_m24x');
    }
}