pid ) || empty( $res->name ) ) { return; } // Skip hidden projects. if ( $res->is_hidden ) { return; } $free_addon = ! empty( $res->is_free ); $unconnected_free_addon = $free_addon && ! Forminator_Hub_Connector::hub_connector_connected(); $has_features = false; $features = array( 0 => array(), 1 => array(), ); // chunk feature into 2. if ( is_array( $res->features ) && ! empty( $res->features ) ) { $has_features = true; $chunk_size = ceil( count( $res->features ) / 2 ); $features = array_chunk( $res->features, $chunk_size ); } $addon_slug = Forminator_Admin_Addons_Page::get_addon_slug( $pid ); ?>