aioseop_mrt_pccolumn

The All In One SEO Pack aioseop mrt pccolumn function.

Description

aioseop_mrt_pccolumn( $aioseopcn, $aioseoppi ); 

Parameters (2)

0. $aioseopcn
The aioseopcn.
1. $aioseoppi
The aioseoppi.

Usage

  1. if ( !function_exists( 'aioseop_mrt_pccolumn' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'all-in-one-seo-pack/inc/aioseop_functions.php'; 
  3.  
  4. // The aioseopcn. 
  5. $aioseopcn = null; 
  6.  
  7. // The aioseoppi. 
  8. $aioseoppi = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = aioseop_mrt_pccolumn($aioseopcn, $aioseoppi); 
  12.  

Defined (1)

The function is defined in the following location(s).

/inc/aioseop_functions.php  
  1. function aioseop_mrt_pccolumn( $aioseopcn, $aioseoppi ) { 
  2. $id = $aioseoppi; 
  3. $target = null; 
  4. if ( $aioseopcn === 'seotitle' ) { 
  5. $target = 'title'; 
  6. if ( $aioseopcn === 'seokeywords' ) { 
  7. $target = 'keywords'; 
  8. if ( $aioseopcn === 'seodesc' ) { 
  9. $target = 'description'; 
  10. if ( ! $target ) { 
  11. return; 
  12. if ( current_user_can( 'edit_post', $id ) ) { ?> 
  13. <div class="aioseop_mpc_admin_meta_container"> 
  14. <div class="aioseop_mpc_admin_meta_options" 
  15. id="aioseop_<?php print $target; ?>_<?php echo $id; ?>" 
  16. style="float:left;"> 
  17. <?php $content = strip_tags( stripslashes( get_post_meta( $id, '_aioseop_' . $target, true ) ) ); 
  18. if ( ! empty( $content ) ): 
  19. $label = "<label id='aioseop_label_{$target}_{$id}'><span style='width: 20px;display: inline-block;'></span>" . $content . '</label>'; 
  20. else: 
  21. $label = "<label id='aioseop_label_{$target}_{$id}'></label><span style='width: 20px;display: inline-block;'></span><strong><i>" . __( 'No', 'all-in-one-seo-pack' ) . ' ' . $target . '</i></strong>'; 
  22. endif; 
  23. $nonce = wp_create_nonce( "aioseop_meta_{$target}_{$id}" ); 
  24. echo '<a id="' . $target . 'editlink' . $id . '" class="aioseop_edit_link" href="javascript:void(0);" onclick=\'aioseop_ajax_edit_meta_form(' . 
  25. $id . ', "' . $target . '", "' . $nonce . '");return false;\' title="' . __( 'Edit' ) . '">' 
  26. . "<img class='aioseop_edit_button' 
  27. id='aioseop_edit_id' 
  28. src='" . AIOSEOP_PLUGIN_IMAGES_URL . "cog_edit.png' /></a> " . $label; 
  29. ?> 
  30. </div> 
  31. </div> 
  32. <?php }