Changeset 831806
- Timestamp:
- 01/02/2014 07:16:53 PM (12 years ago)
- Location:
- membership-simplified-for-oap-members-only/trunk
- Files:
-
- 4 edited
-
duplicate-post-common.php (modified) (1 diff)
-
functions.php (modified) (1 diff)
-
oapmembership.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
membership-simplified-for-oap-members-only/trunk/duplicate-post-common.php
r707212 r831806 27 27 if ( !duplicate_post_is_current_user_allowed_to_copy() ) 28 28 return; 29 if ( !$post = &get_post( $id ) )29 if ( !$post = get_post( $id ) ) 30 30 return; 31 31 if ($draft) -
membership-simplified-for-oap-members-only/trunk/functions.php
r827640 r831806 1362 1362 */ 1363 1363 /** * Function to get the plugin category Hidden Div don't delete */ 1364 function get_memoverview(){ 1365 $postid = $_GET['post']; 1366 $plugin_url = plugin_dir_url($file); 1367 $plugin_path = plugin_dir_path($file); 1368 $popup = dirname(dirname(__FILE__)) . '/membership-simplified-for-oap-members-only/inc/memoverview.php'; 1369 $popup1 = dirname(dirname(__FILE__)) . '/membership-simplified-for-oap-members-only/inc/memoverview-error.php'; 1370 if(get_post_type($postid)=='page' || $_GET['post_type']=='page'){ 1371 include $popup; 1372 } else if(get_post_type($postid)=='oaplesson' || $_GET['post_type']=='oaplesson'){ 1373 include $popup1; 1374 } 1364 function get_memoverview() 1365 { 1366 $postid = (isset($_GET['post']) ? $_GET['post'] : null); 1367 $popup = dirname(dirname(__FILE__)) . '/membership-simplified-for-oap-members-only/inc/memoverview.php'; 1368 $popup1 = dirname(dirname(__FILE__)) . '/membership-simplified-for-oap-members-only/inc/memoverview-error.php'; 1369 if (get_post_type($postid)=='page' || $_GET['post_type']=='page') 1370 { 1371 include $popup; 1372 } 1373 else if (get_post_type($postid)=='oaplesson' || $_GET['post_type']=='oaplesson') 1374 { 1375 include $popup1; 1376 } 1375 1377 } 1376 1378 add_action('admin_head', 'get_memoverview'); 1377 1379 // Add Buttons To TinyMCE 1378 1380 add_action('init', 'add_pp_buttons'); 1379 function add_pp_buttons($post) {1380 $postid= $_GET['post']; 1381 function add_pp_buttons($post) 1382 { 1381 1383 if ( current_user_can('edit_posts') && current_user_can('edit_pages') ) 1382 1384 { 1383 add_filter('mce_external_plugins', 'add_ppshortcode_plugin');1384 add_filter('mce_buttons_3', 'register_button');1385 add_filter('mce_external_plugins', 'add_ppshortcode_plugin'); 1386 add_filter('mce_buttons_3', 'register_button'); 1385 1387 } 1386 }1388 } 1387 1389 function register_button($buttons) { 1388 1390 array_push($buttons, "separator", "separator", "separator", "oaplesson", "separator", "showifhasone", "showifhasall", "showifnotone", "showifnotall", "showifhastag", "showifiscontact", "showifnotcontact"); -
membership-simplified-for-oap-members-only/trunk/oapmembership.php
r827640 r831806 5 5 Description: Membership Simplified allows you to generate membership lessons with templated content to create a unified look and feel throughout your courses. It also provides the inner workings such as navigation options, a login widget, and tinymce buttons to use when protecting any post or page content. Additionally, it sits on top of PilotPress, thus allowing you to use videos from the video manager, downloadable files from the file manager, and much more. Super easy to setup and manage! (Requires an OfficeAutopilot account and PilotPress installed) 6 6 Author: William DeAngelis of OfficeAutopilot 7 Version: Beta 1.4 18 Release date: 1 2/23/20137 Version: Beta 1.42 8 Release date: 1/2/2014 9 9 Author URI: http://membership.officeautopilot.com 10 10 */ -
membership-simplified-for-oap-members-only/trunk/readme.txt
r827640 r831806 47 47 48 48 == Changelog == 49 50 = Beta 1.41 = 51 * Fixes minor php notices in functions.php 49 52 50 53 = Beta 1.41 =
Note: See TracChangeset
for help on using the changeset viewer.