Ejemplo n.º 1
0
            Penguin::$MEGAMEN_STYLE = 'iconleft';
            break;
        case 4:
            Penguin::$MEGAMEN_STYLE = 'titleleft';
            break;
        case 5:
            Penguin::$MEGAMEN_STYLE = 'fullborder';
            break;
        case 6:
            Penguin::$MEGAMEN_STYLE = '3d';
            break;
    }
} else {
    Penguin::$MEGAMEN_STYLE = 'default';
}
Penguin::start($optionsConfig, $metasConfig, $postsConfig, $postsColumnsConfig, true);
// here need custom return value
function Penguin_Custom_Posts_Columns_Value($type, $column_name, $id)
{
    /* start */
    if ($type == 'portfolio') {
        if ($column_name == 'portfolio-type') {
            switch (intval(penguin_get_post_meta_key($column_name, $id))) {
                case 0:
                    _e('Image', 'ROEN');
                    break;
                case 1:
                    _e('Gallery', 'ROEN');
                    break;
                case 2:
                    _e('Video', 'ROEN');