Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/custom-t.../inc/Builder/Controls
File: SB_Customview_Control.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Customizer Builder
[2] Fix | Delete
* Custom View
[3] Fix | Delete
* This control will used for custom HTMlL controls like (source, feed type...)
[4] Fix | Delete
* @since 2.0
[5] Fix | Delete
*/
[6] Fix | Delete
namespace TwitterFeed\Builder\Controls;
[7] Fix | Delete
[8] Fix | Delete
if(!defined('ABSPATH')) exit;
[9] Fix | Delete
[10] Fix | Delete
class SB_Customview_Control extends SB_Controls_Base{
[11] Fix | Delete
[12] Fix | Delete
/**
[13] Fix | Delete
* Get control type.
[14] Fix | Delete
*
[15] Fix | Delete
* Getting the Control Type
[16] Fix | Delete
*
[17] Fix | Delete
* @since 2.0
[18] Fix | Delete
* @access public
[19] Fix | Delete
*
[20] Fix | Delete
* @return string
[21] Fix | Delete
*/
[22] Fix | Delete
public function get_type(){
[23] Fix | Delete
return 'customview';
[24] Fix | Delete
}
[25] Fix | Delete
[26] Fix | Delete
/**
[27] Fix | Delete
* Output Control
[28] Fix | Delete
*
[29] Fix | Delete
*
[30] Fix | Delete
* @since 2.0
[31] Fix | Delete
* @access public
[32] Fix | Delete
*
[33] Fix | Delete
* @return HTML
[34] Fix | Delete
*/
[35] Fix | Delete
public function get_control_output($controlEditingTypeModel){
[36] Fix | Delete
$this->get_control_sources_output($controlEditingTypeModel);
[37] Fix | Delete
$this->get_control_feedtemplate_output($controlEditingTypeModel);
[38] Fix | Delete
}
[39] Fix | Delete
[40] Fix | Delete
[41] Fix | Delete
[42] Fix | Delete
[43] Fix | Delete
[44] Fix | Delete
[45] Fix | Delete
[46] Fix | Delete
[47] Fix | Delete
/**
[48] Fix | Delete
* Feed Type Output Control
[49] Fix | Delete
*
[50] Fix | Delete
*
[51] Fix | Delete
* @since 2.0
[52] Fix | Delete
* @access public
[53] Fix | Delete
*
[54] Fix | Delete
* @return HTML
[55] Fix | Delete
*/
[56] Fix | Delete
public function get_control_sources_output($controlEditingTypeModel){
[57] Fix | Delete
?>
[58] Fix | Delete
<div class="sb-control-feedtype-ctn" v-if="control.viewId == 'sources'">
[59] Fix | Delete
[60] Fix | Delete
<div class="sb-control-feedtype-item ctf-fb-fs" v-for="(feedType, feedTypeID) in selectSourceScreen.multipleTypes" v-if="checkMultipleFeedTypeActiveCustomizer(feedTypeID)">
[61] Fix | Delete
<div class="sb-control-elem-label-title ctf-fb-fs">
[62] Fix | Delete
<div class="sb-control-elem-heading sb-small-p sb-dark-text" v-html="feedType.heading"></div>
[63] Fix | Delete
<!--<div class="sb-control-elem-tltp" @mouseover.prevent.default="toggleElementTooltip(feedType.description, 'show', 'center' )" @mouseleave.prevent.default="toggleElementTooltip('', 'hide')">
[64] Fix | Delete
<div class="sb-control-elem-tltp-icon" v-html="svgIcons['info']"></div>
[65] Fix | Delete
</div>-->
[66] Fix | Delete
</div>
[67] Fix | Delete
<div class="sb-control-feedtype-list ctf-fb-fs" v-if="feedTypeID != 'mentionstimeline' && feedTypeID != 'hometimeline'">
[68] Fix | Delete
<div class="sb-control-feedtype-list-item" v-for="selectedSource in returnSelectedSourcesByTypeCustomizer(feedTypeID)">
[69] Fix | Delete
<div class="sb-control-feedtype-list-item-icon" v-html="svgIcons[selectSourceScreen.multipleTypes[feedTypeID].icon]"></div>
[70] Fix | Delete
<span v-html="feedTypeID == 'lists' ? selectedSource.name : selectedSource"></span>
[71] Fix | Delete
</div>
[72] Fix | Delete
</div>
[73] Fix | Delete
[74] Fix | Delete
<div class="sb-control-feedtype-list ctf-fb-fs" v-if="feedTypeID == 'mentionstimeline' || feedTypeID == 'hometimeline'">
[75] Fix | Delete
<div class="sb-control-feedtype-list-item">
[76] Fix | Delete
<div class="sb-control-feedtype-list-item-icon" v-html="svgIcons['user']"></div>
[77] Fix | Delete
<span v-html="accountDetails.account_handle"></span>
[78] Fix | Delete
</div>
[79] Fix | Delete
</div>
[80] Fix | Delete
[81] Fix | Delete
</div>
[82] Fix | Delete
[83] Fix | Delete
<button class="sb-control-action-button sb-btn sb-btn-grey ctf-fb-fs" @click.prevent.default="openFeedTypesPopupCustomizer()">
[84] Fix | Delete
<div v-html="svgIcons['edit']"></div>
[85] Fix | Delete
<span>{{genericText.editSources}}</span>
[86] Fix | Delete
</button>
[87] Fix | Delete
[88] Fix | Delete
</div>
[89] Fix | Delete
<?php
[90] Fix | Delete
}
[91] Fix | Delete
[92] Fix | Delete
/**
[93] Fix | Delete
* Feed Templates Output Control
[94] Fix | Delete
*
[95] Fix | Delete
*
[96] Fix | Delete
* @since 4.0
[97] Fix | Delete
* @access public
[98] Fix | Delete
*
[99] Fix | Delete
* @return HTML
[100] Fix | Delete
*/
[101] Fix | Delete
public function get_control_feedtemplate_output($controlEditingTypeModel){
[102] Fix | Delete
?>
[103] Fix | Delete
<div :class="['sb-control-feedtype-ctn sb-control-feedtemplate-ctn', 'ctf-feedtemplate-' + customizerScreens.printedTemplate.type]" v-if="control.viewId == 'feedtemplate'">
[104] Fix | Delete
<div class="ctf-fb-type-el" v-if="customizerFeedTemplatePrint()" @click.prevent.default="activateView('feedtemplatesPopup')">
[105] Fix | Delete
<div class="ctf-fb-type-el-img ctf-fb-fs" v-html="svgIcons[customizerScreens.printedTemplate.icon]"></div>
[106] Fix | Delete
<div class="ctf-fb-type-el-info ctf-fb-fs">
[107] Fix | Delete
<strong class="ctf-fb-fs" v-html="customizerScreens.printedTemplate.title"></strong>
[108] Fix | Delete
</div>
[109] Fix | Delete
</div>
[110] Fix | Delete
<button class="sb-control-action-button sb-btn ctf-fb-fs sb-btn-grey" @click.prevent.default="activateView('feedtemplatesPopup')">
[111] Fix | Delete
<div v-html="svgIcons['edit']"></div>
[112] Fix | Delete
<span>{{genericText.change}}</span>
[113] Fix | Delete
</button>
[114] Fix | Delete
<p class="ctf-fb-feedtemplate-alert ctf-fb-fs">
[115] Fix | Delete
<span v-html="svgIcons['info']"></span>
[116] Fix | Delete
{{selectFeedTemplateScreen.updateHeadingWarning2}}
[117] Fix | Delete
</p>
[118] Fix | Delete
</div>
[119] Fix | Delete
[120] Fix | Delete
<?php
[121] Fix | Delete
}
[122] Fix | Delete
[123] Fix | Delete
}
[124] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function