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

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/accelera.../includes/options
File: admin-config.php
array('amp-design-selector', '=' , '3'),
[9000] Fix | Delete
array('enable-single-telegram-profile', '=' , '1')
[9001] Fix | Delete
),
[9002] Fix | Delete
),
[9003] Fix | Delete
)
[9004] Fix | Delete
) );
[9005] Fix | Delete
[9006] Fix | Delete
// Date SECTION
[9007] Fix | Delete
Redux::setSection( $opt_name, array(
[9008] Fix | Delete
'title' => esc_html__( 'Date', 'accelerated-mobile-pages' ),
[9009] Fix | Delete
'id' => 'ampforwp-date-section',
[9010] Fix | Delete
'subsection' => true,
[9011] Fix | Delete
'fields' => array(
[9012] Fix | Delete
[9013] Fix | Delete
array(
[9014] Fix | Delete
'id' => 'date-tab-1',
[9015] Fix | Delete
'type' => 'section',
[9016] Fix | Delete
'title' => esc_html__('General', 'accelerated-mobile-pages'),
[9017] Fix | Delete
'indent' => true,
[9018] Fix | Delete
'layout_type' => 'accordion',
[9019] Fix | Delete
'accordion-open'=> 1,
[9020] Fix | Delete
),
[9021] Fix | Delete
// Date on Single Design 3
[9022] Fix | Delete
array(
[9023] Fix | Delete
'id' => 'amp-design-3-date-feature',
[9024] Fix | Delete
'type' => 'switch',
[9025] Fix | Delete
'title' => esc_html__( 'Date in Posts', 'accelerated-mobile-pages' ),
[9026] Fix | Delete
'required' => array(
[9027] Fix | Delete
array('amp-design-selector', '=' , '3')
[9028] Fix | Delete
),
[9029] Fix | Delete
'tooltip-subtitle' => esc_html__('Display date along with author and category in posts', 'accelerated-mobile-pages' ),
[9030] Fix | Delete
'default' => '0'
[9031] Fix | Delete
),
[9032] Fix | Delete
// Show Date As
[9033] Fix | Delete
array(
[9034] Fix | Delete
'id' => 'ampforwp-post-date-global',
[9035] Fix | Delete
'type' => 'select',
[9036] Fix | Delete
'title' => esc_html__( 'Show Date As', 'accelerated-mobile-pages' ),
[9037] Fix | Delete
'options' => array(
[9038] Fix | Delete
'1' => 'Published Date',
[9039] Fix | Delete
'2' => 'Modified Date'
[9040] Fix | Delete
),
[9041] Fix | Delete
'default' => '1',
[9042] Fix | Delete
),
[9043] Fix | Delete
// Date Format
[9044] Fix | Delete
array(
[9045] Fix | Delete
'id' =>'ampforwp-post-date-format',
[9046] Fix | Delete
'type' =>'select',
[9047] Fix | Delete
'title' =>esc_html__('Date Format','accelerated-mobile-pages'),
[9048] Fix | Delete
'tooltip-subtitle' => esc_html__('Select the Date Format of Posts', 'accelerated-mobile-pages'),
[9049] Fix | Delete
'options' => array(
[9050] Fix | Delete
'1' => 'Ago',
[9051] Fix | Delete
'2' => 'Traditional view'
[9052] Fix | Delete
),
[9053] Fix | Delete
'default' =>'1',
[9054] Fix | Delete
),
[9055] Fix | Delete
array(
[9056] Fix | Delete
'id' =>'ampforwp-post-date-format-text',
[9057] Fix | Delete
'type' =>'text',
[9058] Fix | Delete
'title' =>esc_html__('Text for the Date Format','accelerated-mobile-pages'),
[9059] Fix | Delete
'desc' =>esc_html__('Example: English - % days ago, Spain - ago % days','accelerated-mobile-pages'),
[9060] Fix | Delete
'required' => array( array('ampforwp-post-date-format', '=', '1') ),
[9061] Fix | Delete
'default' =>'% days ago',
[9062] Fix | Delete
),
[9063] Fix | Delete
array(
[9064] Fix | Delete
'id' =>'ampforwp-post-time',
[9065] Fix | Delete
'type' =>'switch',
[9066] Fix | Delete
'title' => esc_html__('Time','accelerated-mobile-pages'),
[9067] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable or Disable Time In Posts', 'accelerated-mobile-pages'),
[9068] Fix | Delete
'default' =>'1',
[9069] Fix | Delete
'required' => array( array('ampforwp-post-date-format', '=', '2') ),
[9070] Fix | Delete
),
[9071] Fix | Delete
// Post Modified Date
[9072] Fix | Delete
array(
[9073] Fix | Delete
'id' => 'post-modified-date',
[9074] Fix | Delete
'type' => 'switch',
[9075] Fix | Delete
'title' => esc_html__('Date Notice', 'accelerated-mobile-pages'),
[9076] Fix | Delete
'default' => 0,
[9077] Fix | Delete
'tooltip-subtitle' => esc_html__('Show Modified date of an article at the end of the post.', 'accelerated-mobile-pages'),
[9078] Fix | Delete
),
[9079] Fix | Delete
array(
[9080] Fix | Delete
'id' =>'ampforwp-post-date-notice-type',
[9081] Fix | Delete
'type' =>'select',
[9082] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[9083] Fix | Delete
'title' =>esc_html__('Notice Type','accelerated-mobile-pages'),
[9084] Fix | Delete
'tooltip-subtitle' => esc_html__('Select Date Format of Posts', 'accelerated-mobile-pages'),
[9085] Fix | Delete
'options' => array(
[9086] Fix | Delete
'modified' => 'Modified Date Notice',
[9087] Fix | Delete
'published' => 'Published Date Notice'
[9088] Fix | Delete
),
[9089] Fix | Delete
'default' =>'modified',
[9090] Fix | Delete
'required' => array( array('post-modified-date', '=', '1') ),
[9091] Fix | Delete
),
[9092] Fix | Delete
array(
[9093] Fix | Delete
'id' => 'ampforwp-post-date-notice-time',
[9094] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[9095] Fix | Delete
'type' => 'switch',
[9096] Fix | Delete
'title' => esc_html__('Time', 'accelerated-mobile-pages'),
[9097] Fix | Delete
'default' => 1,
[9098] Fix | Delete
'tooltip-subtitle' => esc_html__('Show Modified date of an article at the end of the post.', 'accelerated-mobile-pages'),
[9099] Fix | Delete
'required' => array( array('ampforwp-post-date-notice-type', '!=', ''),array('post-modified-date', '=', '1') ),
[9100] Fix | Delete
),
[9101] Fix | Delete
)
[9102] Fix | Delete
[9103] Fix | Delete
) );
[9104] Fix | Delete
if ( 4 == ampforwp_get_setting('amp-design-selector')) {
[9105] Fix | Delete
$post_builder = '';
[9106] Fix | Delete
}
[9107] Fix | Delete
else{
[9108] Fix | Delete
$post_builder = '<br /><a href="' . esc_url(admin_url('customize.php?autofocus[section]=amp_design&customize_amp=1')) .'" target="_blank"><img class="ampforwp-post-builder-img" src="'.AMPFORWP_IMAGE_DIR . '/amp-post-builder.png" width="489" height="72" /></a>';
[9109] Fix | Delete
}
[9110] Fix | Delete
// Misc SECTION
[9111] Fix | Delete
Redux::setSection( $opt_name, array(
[9112] Fix | Delete
'title' => esc_html__( 'Misc', 'accelerated-mobile-pages' ),
[9113] Fix | Delete
'desc' => $post_builder,
[9114] Fix | Delete
'id' => 'amp-design',
[9115] Fix | Delete
'subsection' => true,
[9116] Fix | Delete
'fields' => array(
[9117] Fix | Delete
array(
[9118] Fix | Delete
'id' => 'misc-tab-1',
[9119] Fix | Delete
'type' => 'section',
[9120] Fix | Delete
'title' => esc_html__('General', 'accelerated-mobile-pages'),
[9121] Fix | Delete
'indent' => true,
[9122] Fix | Delete
'layout_type' => 'accordion',
[9123] Fix | Delete
'accordion-open'=> 1,
[9124] Fix | Delete
),
[9125] Fix | Delete
[9126] Fix | Delete
// RTL
[9127] Fix | Delete
array(
[9128] Fix | Delete
'id' =>'amp-rtl-select-option',
[9129] Fix | Delete
'type' => 'switch',
[9130] Fix | Delete
'title' => esc_html__('RTL Support', 'accelerated-mobile-pages'),
[9131] Fix | Delete
'default' => 0,
[9132] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable Right to Left language support', 'accelerated-mobile-pages'),
[9133] Fix | Delete
'true' => 'true',
[9134] Fix | Delete
'false' => 'false',
[9135] Fix | Delete
),
[9136] Fix | Delete
array(
[9137] Fix | Delete
'id' => 'ampforwp-sub-categories-support',
[9138] Fix | Delete
'type' => 'switch',
[9139] Fix | Delete
'title' => esc_html__('Sub-Categories under Category', 'accelerated-mobile-pages'),
[9140] Fix | Delete
'tooltip-subtitle' => esc_html__('Display sub-categories on category pages', 'accelerated-mobile-pages'),
[9141] Fix | Delete
'default' => '0'
[9142] Fix | Delete
),
[9143] Fix | Delete
)
[9144] Fix | Delete
[9145] Fix | Delete
) );
[9146] Fix | Delete
[9147] Fix | Delete
// Extension Section
[9148] Fix | Delete
$selectedOption = get_option('redux_builder_amp',true);
[9149] Fix | Delete
$value = array();
[9150] Fix | Delete
if (isset($selectedOption['amp-license']) && $selectedOption['amp-license']) {
[9151] Fix | Delete
$value = is_array($selectedOption['amp-license'])? array_values($selectedOption['amp-license']): array();
[9152] Fix | Delete
}
[9153] Fix | Delete
if (empty($value[0]["license"]) && ampforwp_check_extensions()){
[9154] Fix | Delete
$selected = '<span class="exclamation">!</span>';
[9155] Fix | Delete
Redux::setSection( $opt_name, array(
[9156] Fix | Delete
'title' => __( "Extensions$selected" , 'accelerated-mobile-pages' ),
[9157] Fix | Delete
'id' => 'opt-go-premium',
[9158] Fix | Delete
'subsection' => false,
[9159] Fix | Delete
'desc' => $extension_listing,
[9160] Fix | Delete
) );
[9161] Fix | Delete
}else{
[9162] Fix | Delete
Redux::setSection( $opt_name, array(
[9163] Fix | Delete
'title' => esc_html__( 'Extensions', 'accelerated-mobile-pages' ),
[9164] Fix | Delete
'id' => 'opt-go-premium',
[9165] Fix | Delete
'subsection' => false,
[9166] Fix | Delete
'desc' => $extension_listing,
[9167] Fix | Delete
'icon' => 'el el-puzzle',
[9168] Fix | Delete
) );
[9169] Fix | Delete
}
[9170] Fix | Delete
if(!ampforwp_check_extensions()){
[9171] Fix | Delete
Redux::setSection( $opt_name, array(
[9172] Fix | Delete
'title' => esc_html__( 'Upgrade to Pro', 'accelerated-mobile-pages' ),
[9173] Fix | Delete
'id' => 'opt-choose',
[9174] Fix | Delete
'subsection' => false,
[9175] Fix | Delete
'desc' => $freepro_listing,
[9176] Fix | Delete
'icon' => 'el el-download',
[9177] Fix | Delete
) );
[9178] Fix | Delete
}
[9179] Fix | Delete
[9180] Fix | Delete
if(function_exists('ampforwp_plugin_supporter_activator')){
[9181] Fix | Delete
if(!function_exists('ampforwp_create_controls_for_plugin_manager')){
[9182] Fix | Delete
// Plugin Manager
[9183] Fix | Delete
Redux::setSection( $opt_name, array(
[9184] Fix | Delete
'title' => esc_html__( 'Plugins Manager', 'accelerated-mobile-pages' ),
[9185] Fix | Delete
'id' => 'opt-plugins-manager',
[9186] Fix | Delete
'subsection' => false,
[9187] Fix | Delete
'desc' => sprintf('%s <a href="http://ampforwp.com/plugins-manager" target="_blank"> %s</a>',
[9188] Fix | Delete
esc_html__('You can Disable Plugins only in AMP which are causing AMP validation errors.','accelerated-mobile-pages'),
[9189] Fix | Delete
esc_html__('More Information.','accelerated-mobile-pages')
[9190] Fix | Delete
),
[9191] Fix | Delete
'icon' => 'el el-magic',
[9192] Fix | Delete
'fields' => array(
[9193] Fix | Delete
[9194] Fix | Delete
array(
[9195] Fix | Delete
'id' => 'ampforwp-plugin-manager-core',
[9196] Fix | Delete
'type' => 'switch',
[9197] Fix | Delete
'title' => esc_html__('Enable Plugin Manager', 'accelerated-mobile-pages'),
[9198] Fix | Delete
'default' => 0
[9199] Fix | Delete
),
[9200] Fix | Delete
array(
[9201] Fix | Delete
'id' => 'info_normal',
[9202] Fix | Delete
'type' => 'info',
[9203] Fix | Delete
'required' => array('ampforwp-plugin-manager-core', '=' , '1'),
[9204] Fix | Delete
'desc' =>sprintf('<div style="background: #FFF9C4;padding: 12px;line-height: 1.6;margin:-45px -14px -18px -17px;"><b>%s</b> %s <a href="https://ampforwp.com/plugins-manager" target="_blank">%s</a>.<br /><div style="margin-top:4px;">(<a href="https://ampforwp.com/plugins-manager" target="_blank">%s</a>)</div></div>',
[9205] Fix | Delete
esc_html__('ONE LAST STEP REQUIRED:','accelerated-mobile-pages'),
[9206] Fix | Delete
esc_html__('This feature requires','accelerated-mobile-pages'),
[9207] Fix | Delete
esc_html__('AMP Plugin Manager','accelerated-mobile-pages'),
[9208] Fix | Delete
esc_html__('Click here for more info','accelerated-mobile-pages')
[9209] Fix | Delete
),
[9210] Fix | Delete
),
[9211] Fix | Delete
)
[9212] Fix | Delete
) );
[9213] Fix | Delete
}
[9214] Fix | Delete
}
[9215] Fix | Delete
Redux::setExtensions( $opt_name, AMPFORWP_PLUGIN_DIR.'includes/options/extensions/demolink_image_select' );
[9216] Fix | Delete
// Documentation Section
[9217] Fix | Delete
Redux::setSection( $opt_name, array(
[9218] Fix | Delete
'title' => esc_html__( 'Documentation', 'accelerated-mobile-pages' ),
[9219] Fix | Delete
'subsection' => false,
[9220] Fix | Delete
'desc' => '<div class="fp-cnt doc-cnt"><h1>'.esc_html__('Documentation','accelerated-mobile-pages').'</h1><p>'.esc_html__('Without documentation, software is just a black box that aren’t anywhere near as useful as they could be because their inner workings are hidden from those who need them. Documentation turns your software into a glass box by explaining to users as well as developers how it operates.','accelerated-mobile-pages').'</p><a class="buy" href="https://ampforwp.com/tutorials/" target="_blank">'.esc_html__('View Documentation','accelerated-mobile-pages').'</a></div>',
[9221] Fix | Delete
) );
[9222] Fix | Delete
/*
[9223] Fix | Delete
* <--- END SECTIONS
[9224] Fix | Delete
*/
[9225] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function