Changeset 1854646
- Timestamp:
- 04/07/2018 11:14:04 PM (8 years ago)
- Location:
- hot-corners/trunk
- Files:
-
- 4 edited
-
_hc-functions.php (modified) (1 diff)
-
_hc-output.php (modified) (2 diffs)
-
_hc-settings.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hot-corners/trunk/_hc-functions.php
r1452179 r1854646 106 106 <?php 107 107 break; 108 case 'new_post' : 109 ?> 110 <li class="draggable" data-id="new_post"> 111 <span>New Post</span> 112 <span class="drag-icon"></span> 113 </li> 114 <?php 115 break; 108 116 case 'hcsettings' : 109 117 ?> -
hot-corners/trunk/_hc-output.php
r1452179 r1854646 1 1 <?php 2 /** 3 * All output to front end 4 * 5 * 6 */ 2 7 3 function wphc_hot_corners_main( ){ 4 global $post; 8 function wphc_hot_corners_main(){ 9 global $post; 10 11 $current_user_id = get_current_user_id(); 12 $corners_enabled = false; 5 13 6 $current_user_id = get_current_user_id(); 7 $corners_enabled = false; 8 9 if( !$current_user_id ) 10 return; 11 14 if( !$current_user_id ) 15 return; 12 16 13 17 $user_data = get_userdata($current_user_id); … … 58 62 } else { 59 63 $edit_url = $admin_url . 'post.php?post=' . $id . '&action=edit'; 60 } 64 } 65 66 $new_post_link = $admin_url . "post-new.php"; 61 67 62 $edit_link = '<a href="'. $edit_url . '">edit</a>'; 63 $admin_link = '<a href="'.$admin_url.'">admin</a>'; 64 $cust_link = '<a href="'.$customizer_url.'">customizer</a>'; 65 68 $new_post_link = "<a href='$new_post_link'>New Post</a>"; 69 $edit_link = '<a href="'. $edit_url . '">Edit Post</a>'; 70 $admin_link = '<a href="'.$admin_url.'">Dashboard</a>'; 71 $cust_link = '<a href="'.$customizer_url.'">Customizer</a>'; 72 66 73 $links = array( 67 74 'admin' => $admin_link, 68 75 'edit' => $edit_link, 76 'new_post' => $new_post_link, 69 77 'customizer' => $cust_link, 70 78 'hcsettings' => '<a href="'.admin_url('options-general.php?page=wphc-settings.php').'">Hot Corners Settings</a>', -
hot-corners/trunk/_hc-settings.php
r1452179 r1854646 19 19 <div class="wrap wphc-settings"> 20 20 <div id="wphc-message-container"></div> 21 <a target="_blank" class="beer" title="B uy me a beer." href="https://www.paypal.me/richardkeller" style="padding: 1em;position: absolute;top: 0;right: 0;"><img style="width:20px;" src="<?php echo plugin_dir_url( __FILE__ ) . '/assets/images/beercon.png' ?>" alt="Buy me a beer"></a>21 <a target="_blank" class="beer" title="Beer me!" href="https://www.paypal.me/richardkeller" style="padding: 1em;position: absolute;top: 0;right: 0;"><img style="width:20px;" src="<?php echo plugin_dir_url( __FILE__ ) . '/assets/images/beercon.png' ?>" alt="Buy me a beer"></a> 22 22 23 23 <?php … … 47 47 wphc_get_item('customizer'); 48 48 wphc_get_item('edit'); 49 wphc_get_item('new_post'); 49 50 wphc_get_item('hcsettings'); 50 51 wphc_get_item('logout'); … … 55 56 56 57 <?php $corners = get_option( 'wphc-corners'); ?> 57 58 <!-- <pre id="dev-debug"> -->59 <?php60 61 // print_r( $corners );62 63 64 ?>65 <!-- </pre> -->66 58 67 59 <table class="wphc-table-corners"> -
hot-corners/trunk/readme.txt
r1452182 r1854646 4 4 Tags: toolbar 5 5 Requires at least: 3.0.1 6 Tested up to: 4. 4.27 Stable tag: 4. 46 Tested up to: 4.9.5 7 Stable tag: 4.9.5 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 31 31 32 32 == Changelog == 33 33 0.1.1 - Added new post link option, tested with latest WordPress 4.9.5 34 34 0.1.0 - Added ability to activate corners by role. 35 35
Note: See TracChangeset
for help on using the changeset viewer.