objChildParams = new UniteCreatorChildParamsPro(); else $this->objChildParams = new UniteCreatorAddonViewChildParams(); } /** * * init skip panel params */ public function initSkipPanelParams(){ $this->arrSkipPanelParams = array(); $this->arrSkipPanelParams[UniteCreatorDialogParam::PARAM_TYPOGRAPHY] = true; $this->arrSkipPanelParams[UniteCreatorDialogParam::PARAM_MARGINS] = true; $this->arrSkipPanelParams[UniteCreatorDialogParam::PARAM_PADDING] = true; $this->arrSkipPanelParams[UniteCreatorDialogParam::PARAM_BACKGROUND] = true; $this->arrSkipPanelParams[UniteCreatorDialogParam::PARAM_BORDER] = true; } /** * run view */ public function runView($isPutHtml = true){ $this->init(); $this->putHtml(); if($isPutHtml == false) return(false); } /** * validate init settings */ private function validateInitSettings(){ if($this->putAllTabs == false && empty($this->arrTabsToPut)) UniteFunctionsUC::throwError("if all tabs setting turned off should be some tabs in arrTabsToPut array"); } /** * get settings item output */ private function initSettingsItem(){ $options = $this->objAddon->getOptions(); //items editor - settings $settingsItem = new UniteCreatorSettings(); $settingsItem->addRadioBoolean("enable_items", esc_html__("Enable Items", "unlimited-elements-for-elementor"), false); $params = array(); $params["placeholder"] = __("Default is 'Items'","unlimited-elements-for-elementor"); $params["class"] = "alias"; $settingsItem->addTextBox("items_section_title", "", "     ".esc_html__("Section Label", "unlimited-elements-for-elementor"), $params); $settingsItem->addControl("enable_items", "items_section_title", "show", "true"); //heading $params = array(); $params["class"] = "alias"; $settingsItem->addTextBox("items_section_heading", "", "     ".esc_html__("Section Heading", "unlimited-elements-for-elementor"), $params); $settingsItem->addControl("enable_items", "items_section_heading", "show", "true"); //title field $params["placeholder"] = "Default is: {{{title}}}"; $settingsItem->addTextBox("items_title_field", "", "     ".esc_html__("Title Field", "unlimited-elements-for-elementor"), $params); $settingsItem->addControl("enable_items", "items_title_field", "show", "true"); $settingsItem->setStoredValues($options); $this->settingsItemOutput = new UniteSettingsOutputInlineUC(); $this->settingsItemOutput->init($settingsItem); $this->settingsItemOutput->setAddCss("[wrapperid] .unite_table_settings_wide th{width:100px;}"); } /** * get settings item output */ private function initSettingsJS(){ $options = $this->objAddon->getOptions(); //items editor - settings $settingsJS = new UniteCreatorSettings(); $settingsJS->addCheckbox("js_as_module", false, UniteSettingsUC::PARAM_NOTEXT, __("load as module", "unlimited-elements-for-elementor")); $settingsJS->setStoredValues($options); $this->settingsJSOutput = new UniteSettingsOutputInlineUC(); $this->settingsJSOutput->init($settingsJS); } /** * init svg addon type */ private function initByAddonType_svg(){ $this->putAllTabs = false; $this->arrTabsToPut["html"] = true; $this->isSVG = true; } /** * init by addon type generally */ private function initByAddonType_general(){ if($this->objAddonType->typeName == GlobalsUC::ADDON_TYPE_BGADDON) $this->hasAttributesCats = false; if($this->objAddonType->addonView_htmlTabOnly == true){ $this->putAllTabs = false; $this->arrTabsToPut["html"] = true; } if($this->objAddonType->addonView_showConstantVars == false) $this->showContstantVars = false; if($this->objAddonType->addonView_showPreviewSettings == false) $this->showPreviewSettings = false; if($this->objAddonType->addonView_showAddonDefaults == false) $this->showAddonDefaluts = false; if($this->objAddonType->addonView_showTestAddon == false) $this->showTestAddon = false; if(!empty($this->objAddonType->addonView_tabHtmlTitle)) $this->tabHtmlTitle = $this->objAddonType->addonView_tabHtmlTitle; if(!empty($this->objAddonType->addonView_htmlEditorMode)) $this->htmlEditorMode = $this->objAddonType->addonView_htmlEditorMode; if(!empty($this->objAddonType->addonView_arrCustomConstants)) $this->arrCustomConstants = $this->objAddonType->addonView_arrCustomConstants; if(!empty($this->objAddonType->addonView_urlBack)) $this->urlViewBack = $this->objAddonType->addonView_urlBack; $this->showSmallIconOption = $this->objAddonType->addonView_showSmallIconOption; } /** * init by addon type */ private function initByAddonType(){ $this->textSingle = $this->objAddonType->textSingle; $this->textPlural = $this->objAddonType->textPlural; if($this->objAddonType->isSVG){ $this->initByAddonType_svg(); return(false); } $this->initByAddonType_general(); } /** * init the view */ private function init(){ $addonID = UniteFunctionsUC::getGetVar("id","",UniteFunctionsUC::SANITIZE_ID); if(empty($addonID)) UniteFunctionsUC::throwError("Widget ID not given"); $this->objAddon = new UniteCreatorAddon(); $this->objAddon->setOperationType(UniteCreatorAddon::OPERATION_EDIT); $this->objAddon->initByID($addonID); $this->addonType = $this->objAddon->getType(); $this->objAddonType = $this->objAddon->getObjAddonType(); $this->addonOptions = $this->objAddon->getOptions(); UniteCreatorAdmin::setAdminGlobalsByAddonType($this->objAddonType, $this->objAddon); $this->initByAddonType(); $this->initSettingsItem(); $this->initSettingsJS(); $this->validateInitSettings(); $this->initSkipPanelParams(); } private function z________PUT_HTML______(){} /** * get header title */ protected function getHeaderTitle(){ $title = $this->objAddon->getTitle(true); $addonID = $this->objAddon->getID(); $headerTitle = esc_html__("Edit ","unlimited-elements-for-elementor").$this->textSingle; $headerTitle .= " - " . $title; return($headerTitle); } /** * put top html */ private function putHtml_top(){ $headerTitle = $this->getHeaderTitle(); require HelperUC::getPathTemplate("header"); } /** * modify general settings by svg type */ private function modifyGeneralSettings_SVG($generalSettings){ $generalSettings->hideSetting("show_small_icon"); $generalSettings->hideSetting("text_preview"); return($generalSettings); } /** * modify general settings by svg type */ private function modifyGeneralSettings_general($generalSettings){ //hide preview settings if($this->showPreviewSettings == false){ $generalSettings->hideSetting("show_small_icon"); $generalSettings->hideSetting("text_preview"); $generalSettings->hideSetting("preview_size"); $generalSettings->hideSetting("preview_bgcol"); } if($this->showSmallIconOption == false){ $generalSettings->hideSetting("show_small_icon"); } return($generalSettings); } /** * init general settings from file */ private function initGeneralSettings(){ $filepathAddonSettings = GlobalsUC::$pathSettings."addon_fields.php"; require $filepathAddonSettings; if($this->isSVG) $generalSettings = $this->modifyGeneralSettings_SVG($generalSettings); else $generalSettings = $this->modifyGeneralSettings_general($generalSettings); return($generalSettings); } /** * put general settings tab html */ private function putHtml_generalSettings(){ $addonID = $this->objAddon->getID(); $title = $this->objAddon->getTitle(true); $name = $this->objAddon->getNameByType(); $catTitle = $this->objAddon->getCatTitle(); $generalSettings = $this->initGeneralSettings(); //set options from addon $arrOptions = $this->objAddon->getOptions(); $generalSettings->setStoredValues($arrOptions); $settingsOutput = new UniteSettingsOutputWideUC(); $settingsOutput->init($generalSettings); $addonTypeTitle = $this->objAddonType->textShowType; ?>
textSingle.esc_html__(" Title", "unlimited-elements-for-elementor"); ?>:
textSingle.esc_html__(" Name", "unlimited-elements-for-elementor"); ?>:
:
:     
draw("uc_general_settings", true); ?>
putAllTabs == true) return(true); if(isset($this->arrTabsToPut[$tabName])) return(true); return(false); } /** * if put changelog tab */ private function isPutChangelogTab(){ $isChangelogEnabled = HelperProviderUC::isAddonChangelogEnabled(); return $isChangelogEnabled === true; } /** * if put revisions tab */ private function isPutRevisionsTab(){ $isRevisionsEnabled = HelperProviderUC::isAddonRevisionsEnabled(); return $isRevisionsEnabled === true; } /** * put tabs html */ private function putHtml_tabs(){ $isPut_general = true; //always put general tab $isPut_html = $this->isPutTab("html"); $isPut_attr = $this->isPutTab("attr"); $isPut_itemattr = $this->isPutTab("itemattr"); $isPut_css = $this->isPutTab("css"); $isPut_js = $this->isPutTab("js"); $isPut_includes = $this->isPutTab("includes"); $isPut_assets = $this->isPutTab("assets"); $isPut_changelog = $this->isPutChangelogTab(); $isPut_revisions = $this->isPutRevisionsTab(); $htmlTabTitle = esc_html__("HTML", "unlimited-elements-for-elementor"); if($this->isSVG == true) $htmlTabTitle = esc_html__("SVG Content","unlimited-elements-for-elementor"); else{ if(!empty($this->tabHtmlTitle)) $htmlTabTitle = $this->tabHtmlTitle; } ?>
  • >
  • getArrLibrary(); foreach($arrLibrary as $item){ $name = $item["name"]; $title = $item["title"]; $this->putIncludeLibraryItem($title, $name, $arrJsLibIncludes); } } /** * put includes assets browser */ private function putHtml_Includes_assetsBrowser(){ $objAssets = new UniteCreatorAssetsWork(); $objAssets->initByKey("includes", $this->objAddon); $pathAssets = $this->objAddon->getPathAssetsFull(); $objAssets->putHTML($pathAssets); } /** * put includes html */ private function putHtml_Includes(){ $arrJsLibIncludes = $this->objAddon->getJSLibIncludes(); $arrJsIncludes = $this->objAddon->getJSIncludes(); $arrCssIncludes = $this->objAddon->getCSSIncludes(); $dataJs = UniteFunctionsUC::jsonEncodeForHtmlData($arrJsIncludes, "init"); $dataCss = UniteFunctionsUC::jsonEncodeForHtmlData($arrCssIncludes, "init"); ?>
    putHtml_Includes_assetsBrowser(); ?>
    • :
    • putHtml_LibraryIncludes($arrJsLibIncludes)?>
    Js Includes:
      >
    Css Includes:
      >
    " class="unite-inputs" style="display:none">
    *
    objAddon->getPathAssets(); $pathAbsolute = $this->objAddon->getPathAssetsFull(); $textNotSet = esc_html__("[not set]", "unlimited-elements-for-elementor"); $unsetAddHtml = "style='display:none'"; $htmlPath = $textNotSet; $dataPath = ""; if(!empty($path)){ $unsetAddHtml = ""; $htmlPath = htmlspecialchars($path); $dataPath = $htmlPath; } ?>
    textSingle.esc_html__(" Assets Path: ", "unlimited-elements-for-elementor")?> >
    initByKey("assets_manager", $this->objAddon); $objAssets->putHTML($pathAbsolute); } /** * put changelog tab html */ private function putHtml_changelogTab(){ $changelog = new UniteCreatorAddonChangelog(); $types = $changelog->getTypes(); ?>
    settingsJSOutput->draw("uc_form_js_options"); } /** * put html tab content */ private function putHtml_tabTableRow($textareaID, $title, $areaHtml, $paramsPanelID, $addVariableID = null, $isItemsRelated = false, $params = array()){ $rowClass = ""; $rowAddHtml = ""; $paramsPanelClassAdd = " uc-params-panel-main"; if($isItemsRelated == true){ $rowClass = "uc-items-related"; $hasItems = $this->objAddon->isHasItems(); if($hasItems == false) $rowAddHtml = "style='display:none'"; $paramsPanelClassAdd = ""; } $isExpanded = UniteFunctionsUC::getVal($params, "expanded"); $isExpanded = UniteFunctionsUC::strToBool($isExpanded); $mode = UniteFunctionsUC::getVal($params, "mode"); $areaAddParams = ""; if(!empty($mode)) $areaAddParams = " data-mode='{$mode}'"; if($isExpanded == true) $rowClass .= " uc-row-expanded"; if(!empty($rowClass)){ $rowClass = esc_attr($rowClass); $rowClass = "class='$rowClass'"; } $styleRight = ""; if($this->isSVG == true) $styleRight = 'style="display:none;"'; ?> >
    putLinkExpand($textareaID)?> putHTML_jsLeftContent(); break; } ?> >
    >
    objAddon->getTitle(); $name = $this->objAddon->getName(); $description = $this->objAddon->getDescription(); $link = $this->objAddon->getOption("link_resource"); if(!empty($link)) $link = HelperHtmlUC::getHtmlLink($link, $link, "uc_overview_link","",true); $addonIcon = $this->objAddon->getUrlIcon(); ?>
    :
    :
    :
    :
    :
    . .
    objAddon->getCss(true); $cssItem = $this->objAddon->getCssItem(true); $html = $this->objAddon->getHtml(true); $htmlItem = $this->objAddon->getHtmlItem(true); $htmlItem2 = $this->objAddon->getHtmlItem2(true); $js = $this->objAddon->getJs(true); $hasItems = $this->objAddon->isHasItems(); $params = $this->objAddon->getParams(); $paramsItems = $this->objAddon->getParamsItems(); $paramsEditorItems = new UniteCreatorParamsEditor(); if($hasItems == false) $paramsEditorItems->setHiddenAtStart(); $paramsEditorItems->init("items"); ?>
    objAddon->getID(); $addonType = $this->objAddon->getType(); $urlTestAddon = HelperUC::getViewUrl_TestAddon($addonID); $urlTestAddonNew = HelperUC::getViewUrl("testaddonnew", "id=$addonID"); $urlPreviewAddon = HelperUC::getViewUrl_TestAddon($addonID,"preview=1"); $urlAddonDefaults = helperuc::getViewUrl_AddonDefaults($addonID); $textPreviewAddon = esc_html__("Preview ","unlimited-elements-for-elementor").$this->textSingle; $textTestAddon = esc_html__("Test ","unlimited-elements-for-elementor").$this->textSingle; $textTestAddonNew = esc_html__("Test ","unlimited-elements-for-elementor").$this->textSingle . " - New"; $textBack = esc_html__("Back To ","unlimited-elements-for-elementor").$this->textPlural.esc_html__(" List","unlimited-elements-for-elementor"); $textDefaults = $this->textSingle.esc_html__(" Defaults","unlimited-elements-for-elementor"); $textExport = esc_html__("Export ", "unlimited-elements-for-elementor").$this->textSingle; $isExistsInCatalog = $this->objAddon->isExistsInCatalog(); $urlBack = HelperUC::getViewUrl_Addons($addonType); if(!empty($this->urlViewBack)) $urlBack = $this->urlViewBack; ?>
    showAddonDefaluts == true):?> showTestAddon == true):?> showTestAddonNew == true):?>   
    $param, "type"=>$type); switch($type){ //case UniteCreatorDialogParam::PARAM_IMAGE: //break; } if(!empty($addParams)) $arr = array_merge($arr, $addParams); return($arr); } /** * add custom fields * function for override */ protected function addCustomFieldsParams($arrParams, $postID){ return($arrParams); } /** * get post child params */ public function getChildParams_post($postID = null, $arrAdditions = array()){ $arrParams = $this->objChildParams->getChildParams_post($postID, $arrAdditions); return($arrParams); } /** * get post child params */ protected function getChildParams_instagramItem(){ $arrParams = array(); $arrParams[] = $this->createChildParam("caption",UniteCreatorDialogParam::PARAM_EDITOR); $arrParams[] = $this->createChildParam("thumb"); $arrParams[] = $this->createChildParam("image"); $arrParams[] = $this->createChildParam("link"); $arrParams[] = $this->createChildParam("num_likes"); $arrParams[] = $this->createChildParam("num_comments"); $arrParams[] = $this->createChildParam("time_passed"); $arrParams[] = $this->createChildParam("link"); $arrParams[] = $this->createChildParam("isvideo"); $arrParams[] = $this->createChildParam("num_video_views"); $arrParams[] = $this->createChildParam("video_class"); return($arrParams); } /** * add responsive parameters */ protected function getAddParams_responsive(){ $arrParams = array(); $arrParams[] = $this->createChildParam(null); $addParams = array("condition"=>"responsive"); $arrParams[] = $this->createChildParam("tablet", null ,$addParams); $arrParams[] = $this->createChildParam("mobile",null, $addParams); return($arrParams); } /** * add simple array */ protected function getAddParams_array(){ $strText = "{% for value in [param_prefix] %}\n"; $strText .= " {{value}}\n"; $strText .= "{% endfor %}\n"; $arrParams = array(); $arrParams[] = $this->createChildParam(null, null, array("raw_insert_text"=>$strText)); return($arrParams); } /** * get post child params */ protected function getChildParams_instagramMain(){ $arrParams = array(); $arrParams[] = $this->createChildParam("name", UniteCreatorDialogParam::PARAM_EDITOR); $arrParams[] = $this->createChildParam("username"); $arrParams[] = $this->createChildParam("biography", UniteCreatorDialogParam::PARAM_EDITOR); $arrParams[] = $this->createChildParam("image_profile"); $arrParams[] = $this->createChildParam("num_followers"); $arrParams[] = $this->createChildParam("num_following"); $arrParams[] = $this->createChildParam("num_posts"); $arrParams[] = $this->createChildParam("url_external"); $arrParams[] = $this->createChildParam("link"); $arrParams[] = $this->createChildParam("no_items_code",null,array("child_param_name"=>"hasitems")); return($arrParams); } /** * get dataset param */ protected function getAddParams_dataset($paramDataset){ $datasetType = UniteFunctionsUC::getVal($paramDataset, "dataset_type"); $datasetQuery = UniteFunctionsUC::getVal($paramDataset, "dataset_{$datasetType}_query"); $arrItemHeaders = array(); $arrItemHeaders = UniteProviderFunctionsUC::applyFilters(UniteCreatorFilters::FILTER_GET_DATASET_HEADERS, $arrItemHeaders, $datasetType, $datasetQuery); $arrChildKeys = array(); foreach($arrItemHeaders as $key){ $arrChildKeys[] = $this->createChildParam($key); } return($arrChildKeys); } /** * add dynamic fields child keys * function for override */ protected function addDynamicChildKeys($arrChildKeys){ return($arrChildKeys); } /** * get child post options - postID, and if use custom fields */ private function getChildPostOptions(){ $paramPostList = $this->objAddon->getParamByType(UniteCreatorDialogParam::PARAM_POSTS_LIST); $output = array(); $output["post_id"] = null; $output["use_custom_fields"] = false; $output["use_category"] = false; $output["add_woo"] = false; //return by post list if(!empty($paramPostList)){ $useCategory = UniteFunctionsUC::getVal($paramPostList, "use_category"); $useCategory = UniteFunctionsUC::strToBool($useCategory); $output["use_category"] = $useCategory; $postExample = UniteFunctionsUC::getVal($paramPostList, "post_example"); $useCustomFields = UniteFunctionsUC::getVal($paramPostList, "use_custom_fields"); $useCustomFields = UniteFunctionsUC::strToBool($useCustomFields); if(!empty($postExample)){ $output = array(); $output["post_id"] = $postExample; $output["use_custom_fields"] = $useCustomFields; } $forWooProducts = UniteFunctionsUC::getVal($paramPostList, "for_woocommerce_products"); $forWooProducts = UniteFunctionsUC::strToBool($forWooProducts); $output["add_woo"] = $forWooProducts; } return($output); } /** * get post additions for showing post params first time * search in param and in post options */ protected function getParamChildKeys_getPostAdditions($postOptions){ $enableCustomFields = $postOptions["use_custom_fields"]; $isAddWoo = UniteFunctionsUC::getVal($postOptions, "add_woo"); $arrAdditions = array(); if($isAddWoo == true) $arrAdditions[GlobalsProviderUC::POST_ADDITION_WOO] = GlobalsProviderUC::POST_ADDITION_WOO; if($enableCustomFields == true) $arrAdditions[GlobalsProviderUC::POST_ADDITION_CUSTOMFIELDS] = GlobalsProviderUC::POST_ADDITION_CUSTOMFIELDS; $params = $this->objAddon->getParams(UniteCreatorDialogParam::PARAM_POSTS_LIST); if(empty($params)) return($arrAdditions); $param = $params[0]; $enableCustomFields = UniteFunctionsUC::getVal($param, "use_custom_fields"); $enableCustomFields = UniteFunctionsUC::strToBool($enableCustomFields); $enableCategory = UniteFunctionsUC::getVal($param, "use_category"); $enableCategory = UniteFunctionsUC::strToBool($enableCategory); if($enableCustomFields == true) $arrAdditions[GlobalsProviderUC::POST_ADDITION_CUSTOMFIELDS] = GlobalsProviderUC::POST_ADDITION_CUSTOMFIELDS; if($enableCategory == true) $arrAdditions[GlobalsProviderUC::POST_ADDITION_CATEGORY] = GlobalsProviderUC::POST_ADDITION_CATEGORY; $arrAdditions = array_values($arrAdditions); return($arrAdditions); } /** * get params child keys */ protected function getParamChildKeys(){ $postOptions = $this->getChildPostOptions(); $postID = $postOptions["post_id"]; $arrAdditions = $this->getParamChildKeys_getPostAdditions($postOptions); $arrPostParams = $this->getChildParams_post($postID, $arrAdditions); $arrChildKeys = array(); $arrChildKeys[UniteCreatorDialogParam::PARAM_POST] = $arrPostParams; $arrChildKeys["uc_current_post"] = $arrPostParams; $arrChildKeys[UniteCreatorDialogParam::PARAM_INSTAGRAM] = $this->getChildParams_instagramMain(); $arrChildKeys["uc_instagram_item"] = $this->getChildParams_instagramItem(); $arrChildKeys = $this->addDynamicChildKeys($arrChildKeys); $arrChildKeys["uc_code_examples"] = $this->objChildParams->getChildParams_codeExamples(); $arrChildKeys["uc_code_examples_js"] = $this->objChildParams->getChildParams_codeExamplesJS(); $arrChildKeys[UniteCreatorDialogParam::PARAM_IMAGE] = $this->objChildParams->getChildParams_image(); //add dataset params $paramDataset = $this->objAddon->getParamByType(UniteCreatorDialogParam::PARAM_DATASET); if(!empty($paramDataset)) $arrChildKeys[UniteCreatorDialogParam::PARAM_DATASET] = $this->getAddParams_dataset($paramDataset); return($arrChildKeys); } /** * get additional param keys by type */ protected function getAddParamKeys(){ $arrAddKeys = array(); $arrAddKeys[UniteCreatorDialogParam::PARAM_MULTIPLE_SELECT] = $this->getAddParams_array(); $arrAddKeys[UniteCreatorDialogParam::PARAM_NUMBER] = $this->getAddParams_responsive(); $arrAddKeys[UniteCreatorDialogParam::PARAM_POST_TERMS] = $this->objChildParams->getAddParams_terms(); $arrAddKeys[UniteCreatorDialogParam::PARAM_WOO_CATS] = $this->objChildParams->getAddParams_terms(true); $arrAddKeys[UniteCreatorDialogParam::PARAM_LISTING] = $this->objChildParams->getAddParams_listing(); $arrAddKeys[UniteCreatorDialogParam::PARAM_USERS] = $this->objChildParams->getAddParams_users(); $arrAddKeys[UniteCreatorDialogParam::PARAM_ICON_LIBRARY] = $this->objChildParams->getAddParams_iconLibrary(); $arrAddKeys[UniteCreatorDialogParam::PARAM_LINK] = $this->objChildParams->getAddParams_link(); $arrAddKeys[UniteCreatorDialogParam::PARAM_DATETIME] = $this->objChildParams->getAddParams_datetime(); $arrAddKeys[UniteCreatorDialogParam::PARAM_SLIDER] = $this->objChildParams->getAddParams_slider(); $arrAddKeys[UniteCreatorDialogParam::PARAM_DROPDOWN] = $this->objChildParams->getAddParams_dropdown(); $arrAddKeys[UniteCreatorDialogParam::PARAM_RADIOBOOLEAN] = $this->objChildParams->getAddParams_dropdown(); $arrAddKeys[UniteCreatorDialogParam::PARAM_MENU] = $this->objChildParams->getAddParams_menu(); $arrAddKeys[UniteCreatorDialogParam::PARAM_TEMPLATE] = $this->objChildParams->getAddParams_template(); return($arrAddKeys); } /** * get code replacements for params panel */ protected function getParamTemplateCodes(){ $codeNoItems = "{% if [param_name] == false %}\n\n"; $codeNoItems .= " No items text\n\n"; $codeNoItems .= "{% else %}\n\n"; $codeNoItems .= " {{put_items()}}\n\n"; $codeNoItems .= "{% endif %}"; $arrCode = array(); $arrCode["no_items_code"] = $codeNoItems; return($arrCode); } private function z____________OTHERS___________(){} /** * get thumb sizes - function for override */ protected function getThumbSizes(){ return(null); } /** * get image param add fields */ protected function getImageAddFields(){ return(null); } /** * put config */ private function putConfig(){ $options = array(); $options["url_preview"] = $this->objAddon->getPreviewImageUrl(); $arrThumbSizes = $this->getThumbSizes(); $options["thumb_sizes"] = $arrThumbSizes; $arrImageAddFields = $this->getImageAddFields(); $options["image_add_fields"] = $arrImageAddFields; $options["items_type"] = $this->objAddon->getItemsType(); $dataOptions = UniteFunctionsUC::jsonEncodeForHtmlData($options, "options"); $params = $this->objAddon->getParams(); $dataParams = UniteFunctionsUC::jsonEncodeForHtmlData($params, "params"); $paramsItems = $this->objAddon->getParamsItems(); $dataParamsItems = UniteFunctionsUC::jsonEncodeForHtmlData($paramsItems, "params-items"); $variablesItems = $this->objAddon->getVariablesItem(); $variablesMain = $this->objAddon->getVariablesMain(); $paramsCats = $this->objAddon->getParamsCats(); $dataVarItems = UniteFunctionsUC::jsonEncodeForHtmlData($variablesItems, "variables-items"); $dataVarMain = UniteFunctionsUC::jsonEncodeForHtmlData($variablesMain, "variables-main"); $dataParamsCats = UniteFunctionsUC::jsonEncodeForHtmlData($paramsCats, "params-cats"); $objOutput = new UniteCreatorOutput(); $objOutput->setProcessType(UniteCreatorParamsProcessor::PROCESS_TYPE_CONFIG); $objOutput->initByAddon($this->objAddon); $arrConstantData = $objOutput->getConstantDataKeys(true); if($this->showContstantVars == false) $arrConstantData = array(); if(!empty($this->arrCustomConstants)) $arrConstantData += $this->arrCustomConstants; $dataPanelKeys = UniteFunctionsUC::jsonEncodeForHtmlData($arrConstantData, "panel-keys"); $arrItemConstantData = $objOutput->getItemConstantDataKeys(); $dataItemPanelKeys = UniteFunctionsUC::jsonEncodeForHtmlData($arrItemConstantData, "panel-item-keys"); //child keys of some fields $arrPanelChildKeys = $this->getParamChildKeys(); $dataPanelChildKeys = UniteFunctionsUC::jsonEncodeForHtmlData($arrPanelChildKeys, "panel-child-keys"); $arrPanelAddKeys = $this->getAddParamKeys(); $dataPanelAddKeys = UniteFunctionsUC::jsonEncodeForHtmlData($arrPanelAddKeys, "panel-add-keys"); $arrPanelTemplateCode = $this->getParamTemplateCodes(); $dataPanelCode = UniteFunctionsUC::jsonEncodeForHtmlData($arrPanelTemplateCode, "panel-template-code"); $dataSkipParams = UniteFunctionsUC::jsonEncodeForHtmlData($this->arrSkipPanelParams, "panel-skip-params"); ?>
    " class="unite-inputs" style="display:none"> bulk operations dialog
    initByID($addonID); $addonType = $addon->getType(); $catID = $addon->getCatID(); UniteFunctionsUC::validateNotEmpty($catID); $addons = new UniteCreatorAddons(); $arrAddons = $addons->getCatAddons($catID, false, null, $addonType); //make html ob_start(); $addonTitle = $addon->getTitle(); ?>
    : ( ) :

    $catAddon){ $title = $catAddon->getTitle(); $catAddonID = $catAddon->getID(); if($catAddonID == $addonID) continue; $rowClass = $index%2?"unite-row1":"unite-row2"; $isMain = ($paramType == "main"); $isExists = $catAddon->isParamExists($paramName, $isMain); $status = "".__("not exists","unlimited-elements-for-elementor").""; if($isExists) $status = "".__("exists","unlimited-elements-for-elementor").""; $checked = ""; if($isExists == false){ $checked = " checked"; $numSelected++; $rowClass .= " unite-row-selected"; } ?>
    " class="uc-check-all">
    class="uc-check-select">

    getAddonChangelogs($addonID); ob_start(); ?>
    initByID($addonID); $revisioner = new UniteCreatorAddonRevisioner(); $revisions = $revisioner->getAddonRevisions($addon); $previousRevision = null; ob_start(); ?>
    objAddon->getType(); //dialog param $objDialogParam = UniteCreatorDialogParam::getInstance($addonType); $objDialogParam->init(UniteCreatorDialogParam::TYPE_MAIN, $this->objAddon); $objDialogParam->outputHtml(); //dialog variable item $objDialogVariableItem = UniteCreatorDialogParam::getInstance($addonType); $objDialogVariableItem->init(UniteCreatorDialogParam::TYPE_ITEM_VARIABLE, $this->objAddon); $objDialogVariableItem->outputHtml(); //dialog variable main $objDialogVariableMain = UniteCreatorDialogParam::getInstance($addonType); $objDialogVariableMain->init(UniteCreatorDialogParam::TYPE_MAIN_VARIABLE, $this->objAddon); $objDialogVariableMain->outputHtml(); $this->putBulkDialog(); } /** * put some html that will appear before tabs */ private function putHtml_beforeTabs(){ ?> showHeader == true) $this->putHtml_top(); else require HelperUC::getPathTemplate("header_missing"); ?>
    showToolbar == true) $this->putHtml_actionButtons(); $this->putHtml_beforeTabs(); $this->putHtml_tabs(); $this->putHtml_content(); $this->putConfig(); $this->putJs(); $this->putDialogs(); ?>