0 && get_resource_access($bg_img_resource_ref) == RESOURCE_ACCESS_FULL ) { $coldata["bg_img_resource_ref"] = $bg_img_resource_ref; } // If invalid bg_img_resource_ref or no full access to resource, then don't submit the change elseif ($thumbnail_selection_method == $FEATURED_COLLECTION_BG_IMG_SELECTION_OPTIONS["manual"]) { $reset_thumbnail_selection_method = (isset($collection['thumbnail_selection_method']) ? $collection['thumbnail_selection_method'] : $FEATURED_COLLECTION_BG_IMG_SELECTION_OPTIONS["no_image"]); $coldata['featured_collections_changes']['thumbnail_selection_method'] = $reset_thumbnail_selection_method; $coldata['bg_img_resource_ref'] = 0; } } } elseif ($collection["type"] == COLLECTION_TYPE_FEATURED && checkperm("h")) { $coldata['featured_collections_changes']['name'] = ""; } if (checkperm("h")) { $coldata["home_page_publish"] = (getval("home_page_publish", "") != "") ? "1" : "0"; $coldata["home_page_text"] = getval("home_page_text", ""); if (getval("home_page_image", "") != "") { $coldata["home_page_image"] = getval("home_page_image", ""); } } if ( ( $coldata["public"] == 0 || ( isset($coldata["featured_collections_changes"]["update_parent"]) && $coldata["featured_collections_changes"]["update_parent"] == 0 && getval("force_featured_collection_type", "") != "true" ) ) && is_featured_collection_category_by_children($collection["ref"]) ) { $error = $lang["error_save_not_allowed_fc_has_children"]; } if (!isset($error)) { save_collection($ref, $coldata); if ($redirect) { if ($redirection_endpoint == "") { $redirection_endpoint = generateURL( "{$baseurl_short}pages/collection_manage.php", array( "offset" => $offset, "col_order_by" => $col_order_by, "sort" => $sort, "find" => $find, "reload" => "true", ) ); } if ($modal) { ?> $collection["ref"]], $search_params); $form_action = generateURL("{$baseurl_short}pages/collection_edit.php", $url_params); include "../include/header.php"; ?>

">
" maxlength="100" readonly=true >
$collection, "depth" => 0, "current_branch_path" => get_featured_collection_category_branch_by_leaf((int) $collection["ref"], array()), "modal" => $modal, ) ); if ($themes_simple_images && $collection["type"] == COLLECTION_TYPE_FEATURED) { $configurable_options = array( $FEATURED_COLLECTION_BG_IMG_SELECTION_OPTIONS["no_image"] => $lang["select"], $FEATURED_COLLECTION_BG_IMG_SELECTION_OPTIONS["most_popular_image"] => $lang["background_most_popular_image"], $FEATURED_COLLECTION_BG_IMG_SELECTION_OPTIONS["most_popular_images"] => str_replace("%n", $theme_images_number, $lang["background_most_popular_images"]), $FEATURED_COLLECTION_BG_IMG_SELECTION_OPTIONS["most_recent_image"] => $lang["background_most_recent_image"], $FEATURED_COLLECTION_BG_IMG_SELECTION_OPTIONS["manual"] => $lang["background_manual_selection"], ); render_dropdown_question( $lang["background_image"], "thumbnail_selection_method", $configurable_options, $collection["thumbnail_selection_method"], 'class="stdwidth"', array( "onchange" => "toggle_fc_bg_image_txt_input(this, " . $FEATURED_COLLECTION_BG_IMG_SELECTION_OPTIONS["manual"] . ");", ) ); $display_bg_img_ref = ($collection["thumbnail_selection_method"] == $FEATURED_COLLECTION_BG_IMG_SELECTION_OPTIONS["manual"] && $collection["bg_img_resource_ref"] > 0); $current_bg_img_ref = ($display_bg_img_ref ? $collection["bg_img_resource_ref"] : ""); render_text_question( $lang["background_manual_selection_resource_label"], "bg_img_resource_ref", "", true, 'class="stdwidth"', $current_bg_img_ref, array( "div_class" => ($display_bg_img_ref ? array() : array("DisplayNone")), ) ); } } if (checkperm("h") && $collection['public'] == 1 && !$home_dash) { # Option to publish to the home page. ?>
checked onclick="document.getElementById('redirect').value='';Post(document.getElementById('collectionform'));" >
checked >
" />