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 3632 to 3637

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 5th October 2022 03:05 Europe/London time based on the source file dated 4th October 2022 09:50 Europe/London time.