芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/optimyar/wp-content/plugins/shortcoder/admin/manage.php
$val ){ if( $id == 'taxonomy-sc_tag' ){ $new_columns[ 'shortcode' ] = __( 'Shortcode', 'shortcoder'); $new_columns[ 'desc' ] = __( 'Description', 'shortcoder'); } $new_columns[$id] = $val; } return $new_columns; } public static function column_content( $column, $post_id ){ $general_settings = Shortcoder::get_settings(); if( $column == 'shortcode' ){ $sc_tag = Shortcoder::get_sc_tag( $post_id ); echo '
'; if( $general_settings[ 'list_content' ] != 'no' ){ $sc_post = get_post( $post_id ); $sc_content = trim( $sc_post->post_content ); if( !empty( $sc_content ) ){ $content_size = intval( $general_settings[ 'list_content' ] ); $sc_content = substr( $sc_content, 0, $content_size ? $content_size : 100 ); echo '
' . esc_html( trim( $sc_content ) ) . '...
'; } } } if( $column == 'desc' ){ $sc_settings = Shortcoder::get_sc_settings( $post_id ); echo esc_html( $sc_settings[ '_sc_description' ] ); } } public static function per_page_count( $count, $post_type ){ if( $post_type == SC_POST_TYPE && $count == 20 ){ return 500; } return $count; } } SC_Admin_Manage::init(); ?>