Server : LiteSpeed
System : Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64
User : gazetufm ( 1431)
PHP Version : 8.1.35
Disable Function : NONE
Directory :  /home2/gazetufm/drlinda.al/wp-content/plugins/flipbox-builder/admin/

šŸ“ Create New:
ā¬†ļø Upload File:
Current Dir [ Writable ] Root [ Writable ]


OR Upload from URL:
URL: Save as:

šŸ“„ File: reg_post.php

Path: //home2/gazetufm/drlinda.al/wp-content/plugins/flipbox-builder/admin/reg_post.php

Size: 4.9 KB

Permissions: 0644

<?php
function flipbox_builder_flipbox_builder_init() {
    $labels = array(
        'name'                  => _x( 'Flipbox Builder', 'Post type general name', 'flipbox-builder-text-domain' ),
        'singular_name'         => _x( 'Flipbox Builder', 'Post type singular name', 'flipbox-builder-text-domain' ),
        'menu_name'             => _x( 'Flipbox Builder', 'Admin Menu text', 'flipbox-builder-text-domain' ),
        'name_admin_bar'        => _x( 'Flipbox Builder', 'Add New on Toolbar', 'flipbox-builder-text-domain' ),
        'add_new'               => __( 'Add New Flipbox', 'flipbox-builder-text-domain' ),
        'add_new_item'          => __( 'Create New Flipbox', 'flipbox-builder-text-domain' ),
        'new_item'              => __( 'New Flipbox', 'flipbox-builder-text-domain' ),
        'edit_item'             => __( 'Edit Flipbox', 'flipbox-builder-text-domain' ),
        'view_item'             => __( 'View Flipbox', 'flipbox-builder-text-domain' ),
        'all_items'             => __( 'All Flipbox', 'flipbox-builder-text-domain' ),
        'search_items'          => __( 'Search Flipbox Builder', 'flipbox-builder-text-domain' ),
        'parent_item_colon'     => __( 'Parent Flipbox Builder:', 'flipbox-builder-text-domain' ),
        'not_found'             => __( 'No Flipbox Builder found.', 'flipbox-builder-text-domain' ),
        'not_found_in_trash'    => __( 'No Flipbox Builder found in Trash.', 'flipbox-builder-text-domain' ),
        'featured_image'        => _x( 'Flipbox Cover Image', 'Overrides the ā€œFeatured Imageā€ phrase for this post type. Added in 4.3', 'flipbox-builder-text-domain' ),
        'set_featured_image'    => _x( 'Set cover image', 'Overrides the ā€œSet featured imageā€ phrase for this post type. Added in 4.3', 'flipbox-builder-text-domain' ),
        'remove_featured_image' => _x( 'Remove cover image', 'Overrides the ā€œRemove featured imageā€ phrase for this post type. Added in 4.3', 'flipbox-builder-text-domain' ),
        'use_featured_image'    => _x( 'Use as cover image', 'Overrides the ā€œUse as featured imageā€ phrase for this post type. Added in 4.3', 'flipbox-builder-text-domain' ),
        'archives'              => _x( 'Flipbox archives', 'The post type archive label used in nav menus. Default ā€œPost Archivesā€. Added in 4.4', 'flipbox-builder-text-domain' ),
        'insert_into_item'      => _x( 'Insert into Flipbox', 'Overrides the ā€œInsert into postā€/ā€Insert into pageā€ phrase (used when inserting media into a post). Added in 4.4', 'flipbox-builder-text-domain' ),
        'uploaded_to_this_item' => _x( 'Uploaded to this Flipbox', 'Overrides the ā€œUploaded to this postā€/ā€Uploaded to this pageā€ phrase (used when viewing media attached to a post). Added in 4.4', 'flipbox-builder-text-domain' ),
        'filter_items_list'     => _x( 'Filter Flipbox Builder list', 'Screen reader text for the filter links heading on the post type listing screen. Default ā€œFilter posts listā€/ā€Filter pages listā€. Added in 4.4', 'flipbox-builder-text-domain' ),
        'items_list_navigation' => _x( 'Flipbox Builder list navigation', 'Screen reader text for the pagination heading on the post type listing screen. Default ā€œPosts list navigationā€/ā€Pages list navigationā€. Added in 4.4', 'flipbox-builder-text-domain' ),
        'items_list'            => _x( 'Flipbox Builder list', 'Screen reader text for the items list heading on the post type listing screen. Default ā€œPosts listā€/ā€Pages listā€. Added in 4.4', 'flipbox-builder-text-domain' ),
    );
 
    $args = array(
        'labels'             => $labels,
        'public'             => true,
        'publicly_queryable' => true,
        'show_ui'            => true,
        'show_in_menu'       => true,
        'query_var'          => true,
        'rewrite'            => array( 'slug' => 'fb' ),
        'capability_type'    => 'post',
        'has_archive'        => true,
        'hierarchical'       => false,
        'menu_position'      => null,
        'supports'           => array( 'title'),
		'menu_icon'=>'dashicons-image-flip-vertical',
    );
 
    register_post_type( 'fb', $args );
} 
add_action( 'init', 'flipbox_builder_flipbox_builder_init' );
?>
<?php 
add_filter( 'manage_edit-fb_columns', 'flipbox_builder_columns' ) ;
add_action( 'manage_fb_posts_custom_column', 'flipbox_builder_manage_columns' , 10, 2 );
function flipbox_builder_columns( $columns )
{
	$columns = array(
		'cb' => '<input type="checkbox" />',
		'title' => __( 'Flipbox' ),
		'shortcode' => __( 'Flipbox Shortcode' ),
		'date' => __( 'Date' )
	);
	return $columns;
}
function flipbox_builder_manage_columns( $column, $post_id ){  
		
	switch( $column ) {
		case 'shortcode' :
		echo '<input style="width:150px;" type="text" value="[Flipbox id='.esc_attr($post_id).']" readonly="readonly" onclick="this.select()" />';
		break;		
		default :
		break;
	}
}
?>

← Back to Directory Edit File šŸ”’ Chmod

WP File Manager