function my_manage_inv_code_columns($column, $post_id) { global $post; switch ($column) { /* If displaying the 'package' column. */ case 'package': /* Get the post meta. */ $alid = get_post_meta($post_id, 'package', true); echo __(get_package_name($alid)); break; /* If displaying the 'left' column. */ /* If displaying the 'left' column. */ case 'left': /* Get the genres for the post. */ $left = get_post_meta($post_id, 'leftcount', true); echo $left; break; /* Just break out of the switch statement for everything else. */ /* Just break out of the switch statement for everything else. */ default: break; } }
if ($dosef == false) { return; } // ------------------ standard plugin initialize function - don't change --------------------------- $task = isset($task) ? @$task : null; $Itemid = isset($Itemid) ? @$Itemid : null; $title[] = 'resources manager'; if (isset($controller)) { } if (isset($task)) { $tmp_title = ''; switch ($task) { case 'package.checkout': $tmp_title = 'checkout'; if (isset($packageid)) { $package_name = get_package_name($packageid); if ($package_name) { $tmp_title .= '/' . $package_name; } shRemoveFromGETVarsList('packageid'); } break; case 'user.updateinfo': $tmp_title = 'update information'; break; case 'user.save': $tmp_title = 'save information'; break; case 'package.confirm': $tmp_title = 'confirm checkout'; break;