Collections functions
General functions
Render functions
Theme permission functions
Resource functions

get_home_page_promoted_collections()

Parameters

This function accepts no parameters.

Location

include/collections_functions.php lines 3699 to 3704

Definition

 
function get_home_page_promoted_collections()
    {
    global 
$COLLECTION_PUBLIC_TYPES;
    
$public_types join(", "$COLLECTION_PUBLIC_TYPES); // Note this is a constant and not user input - does not need to be a a parameter in the next line.
    
return ps_query("select collection.ref, collection.`type`,collection.name,collection.home_page_publish,collection.home_page_text,collection.home_page_image,resource.thumb_height,resource.thumb_width, resource.resource_type, resource.file_extension from collection left outer join resource on collection.home_page_image=resource.ref where collection.`type` IN ({$public_types}) and collection.home_page_publish=1 order by collection.ref desc");
    }

This article was last updated 3rd February 2023 16:35 Europe/London time based on the source file dated 1st February 2023 15:00 Europe/London time.