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
'class' => 'child_opt child_opt_arrow',
[6500] Fix | Delete
'id' => 'ampforwp-bread-crumb-post',
[6501] Fix | Delete
'type' => 'switch',
[6502] Fix | Delete
'tooltip-subtitle' => esc_html__('enable or disable the post title on breadcrumb','accelerated-mobile-pages'),
[6503] Fix | Delete
'title' => esc_html__('Post title on Breadcrumb', 'accelerated-mobile-pages'),
[6504] Fix | Delete
'default' => '0',
[6505] Fix | Delete
'required' => array('ampforwp-bread-crumb' , '=' , 1),
[6506] Fix | Delete
),
[6507] Fix | Delete
//Categories ON/OFF
[6508] Fix | Delete
array(
[6509] Fix | Delete
'id' => 'ampforwp-cats-single',
[6510] Fix | Delete
'type' => 'switch',
[6511] Fix | Delete
'default' => '1',
[6512] Fix | Delete
'title' => esc_html__('Categories', 'accelerated-mobile-pages'),
[6513] Fix | Delete
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
[6514] Fix | Delete
esc_html__('Enable this option to show categories in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-show-categories-in-single-page/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
[6515] Fix | Delete
[6516] Fix | Delete
),
[6517] Fix | Delete
$yoast_primary_cat,
[6518] Fix | Delete
//Tags ON/OFF
[6519] Fix | Delete
array(
[6520] Fix | Delete
'id' => 'ampforwp-tags-single',
[6521] Fix | Delete
'type' => 'switch',
[6522] Fix | Delete
'default' => '1',
[6523] Fix | Delete
'title' => esc_html__('Tags', 'accelerated-mobile-pages'),
[6524] Fix | Delete
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
[6525] Fix | Delete
esc_html__('Enable this option to show tags in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-show-tags-in-single-page/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
[6526] Fix | Delete
[6527] Fix | Delete
),
[6528] Fix | Delete
//Categories and Tags Links
[6529] Fix | Delete
array(
[6530] Fix | Delete
'id' => 'ampforwp-cats-tags-links-single',
[6531] Fix | Delete
'type' => 'switch',
[6532] Fix | Delete
'default' => '1',
[6533] Fix | Delete
'title' => esc_html__('Categories & Tags Links', 'accelerated-mobile-pages'),
[6534] Fix | Delete
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
[6535] Fix | Delete
esc_html__('Enable this option to make categories and tags links in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-enable-categories-tags-links-in-single-page/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
[6536] Fix | Delete
[6537] Fix | Delete
),
[6538] Fix | Delete
[6539] Fix | Delete
// Excerpt ON/OFF
[6540] Fix | Delete
array(
[6541] Fix | Delete
'id' => 'enable-excerpt-single',
[6542] Fix | Delete
'type' => 'switch',
[6543] Fix | Delete
'title' => esc_html__('Excerpt', 'accelerated-mobile-pages'),
[6544] Fix | Delete
'default' => 0,
[6545] Fix | Delete
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
[6546] Fix | Delete
esc_html__('Enable this option to show excerpt in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-enable-excerpt-in-amp/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
[6547] Fix | Delete
[6548] Fix | Delete
),
[6549] Fix | Delete
//deselectable next previous links
[6550] Fix | Delete
array(
[6551] Fix | Delete
'id' => 'enable-single-next-prev',
[6552] Fix | Delete
'type' => 'switch',
[6553] Fix | Delete
'title' => esc_html__('Next-Previous Links', 'accelerated-mobile-pages'),
[6554] Fix | Delete
'default' => 1,
[6555] Fix | Delete
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
[6556] Fix | Delete
esc_html__('Enable this option to show next and previous links in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-enable-next-previous-links-in-single-page/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
[6557] Fix | Delete
[6558] Fix | Delete
),
[6559] Fix | Delete
array(
[6560] Fix | Delete
'id' => 'single-next-prev-to-nonamp',
[6561] Fix | Delete
'type' => 'switch',
[6562] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[6563] Fix | Delete
'title' => esc_html__('Link to Non-AMP page', 'accelerated-mobile-pages'),
[6564] Fix | Delete
'default' => 0,
[6565] Fix | Delete
'required' => array('enable-single-next-prev' , '=' , '1')
[6566] Fix | Delete
),
[6567] Fix | Delete
// Author Bio
[6568] Fix | Delete
array(
[6569] Fix | Delete
'id' => 'amp-author-description',
[6570] Fix | Delete
'type' => 'switch',
[6571] Fix | Delete
'title' => esc_html__( 'Author Bio', 'accelerated-mobile-pages' ),
[6572] Fix | Delete
'default' => '1',
[6573] Fix | Delete
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
[6574] Fix | Delete
esc_html__('Enable this option to show author bio in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-enable-author-bio-in-single-page/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
[6575] Fix | Delete
),
[6576] Fix | Delete
// Author name
[6577] Fix | Delete
array(
[6578] Fix | Delete
'id' => 'amp-author-bio-name',
[6579] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[6580] Fix | Delete
'type' => 'switch',
[6581] Fix | Delete
'title' => esc_html__( 'Author Name', 'accelerated-mobile-pages' ),
[6582] Fix | Delete
'default' => '1',
[6583] Fix | Delete
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
[6584] Fix | Delete
esc_html__('Enable this option to show author name in author bio and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-author-name-in-author-bio-section/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
[6585] Fix | Delete
'required' => array(
[6586] Fix | Delete
array('amp-design-selector' , '=' , '4'),
[6587] Fix | Delete
array('amp-author-description' , '=' , '1'),
[6588] Fix | Delete
)
[6589] Fix | Delete
),
[6590] Fix | Delete
// Author Image
[6591] Fix | Delete
array(
[6592] Fix | Delete
'id' => 'amp-author-bio-image',
[6593] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[6594] Fix | Delete
'type' => 'switch',
[6595] Fix | Delete
'title' => esc_html__( 'Author Image', 'accelerated-mobile-pages' ),
[6596] Fix | Delete
'default' => '1',
[6597] Fix | Delete
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
[6598] Fix | Delete
esc_html__('Enable this option to show author image in author bio and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-author-image-in-author-bio-section/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
[6599] Fix | Delete
'required' => array(
[6600] Fix | Delete
array('amp-design-selector' , '=' , '4'),
[6601] Fix | Delete
array('amp-author-description' , '=' , '1'),
[6602] Fix | Delete
)
[6603] Fix | Delete
),
[6604] Fix | Delete
array(
[6605] Fix | Delete
'id' => 'amp-author-bio-image-width',
[6606] Fix | Delete
'type' => 'text',
[6607] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[6608] Fix | Delete
'title' => esc_html__('Width', 'accelerated-mobile-pages'),
[6609] Fix | Delete
'validate' => 'numeric',
[6610] Fix | Delete
'default' => '60',
[6611] Fix | Delete
'required' => array('amp-author-bio-image' , '=' , '1'),
[6612] Fix | Delete
),
[6613] Fix | Delete
array(
[6614] Fix | Delete
'id' => 'amp-author-bio-image-height',
[6615] Fix | Delete
'type' => 'text',
[6616] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[6617] Fix | Delete
'title' => esc_html__('Height', 'accelerated-mobile-pages'),
[6618] Fix | Delete
'validate' => 'numeric',
[6619] Fix | Delete
'default' => '60',
[6620] Fix | Delete
'required' => array('amp-author-bio-image' , '=' , '1'),
[6621] Fix | Delete
),
[6622] Fix | Delete
// Author description
[6623] Fix | Delete
array(
[6624] Fix | Delete
'id' => 'amp-author-box-description',
[6625] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[6626] Fix | Delete
'type' => 'switch',
[6627] Fix | Delete
'title' => esc_html__( 'Author Description', 'accelerated-mobile-pages' ),
[6628] Fix | Delete
'default' => '1',
[6629] Fix | Delete
'required' => array(
[6630] Fix | Delete
array('amp-design-selector' , '=' , '4'),
[6631] Fix | Delete
array('amp-author-description' , '=' , '1'),
[6632] Fix | Delete
)
[6633] Fix | Delete
),
[6634] Fix | Delete
// Author Pages
[6635] Fix | Delete
array(
[6636] Fix | Delete
'id' => 'ampforwp-author-page-url',
[6637] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[6638] Fix | Delete
'type' => 'switch',
[6639] Fix | Delete
'title' => esc_html__( 'Link to Author Pages', 'accelerated-mobile-pages' ),
[6640] Fix | Delete
'default' => '0',
[6641] Fix | Delete
'required' => array('amp-author-description' , '=' , '1'),
[6642] Fix | Delete
),
[6643] Fix | Delete
// Pagination //#1015
[6644] Fix | Delete
array(
[6645] Fix | Delete
'id' => 'amp-pagination',
[6646] Fix | Delete
'type' => 'switch',
[6647] Fix | Delete
'title' => esc_html__( 'Post Pagination', 'accelerated-mobile-pages' ),
[6648] Fix | Delete
'default' => 1,
[6649] Fix | Delete
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
[6650] Fix | Delete
esc_html__('Enable this option to show pagination in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-enable-post-pagination-in-single-page/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
[6651] Fix | Delete
[6652] Fix | Delete
),
[6653] Fix | Delete
array(
[6654] Fix | Delete
'id' => 'ampforwp-pagination-select',
[6655] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[6656] Fix | Delete
'type' => 'select',
[6657] Fix | Delete
'title' => esc_html__('Post Pagination Type', 'accelerated-mobile-pages'),
[6658] Fix | Delete
'options' => array(
[6659] Fix | Delete
'1' => 'Numbering',
[6660] Fix | Delete
'2' => 'Next-Previous',
[6661] Fix | Delete
),
[6662] Fix | Delete
'default' => '1',
[6663] Fix | Delete
'required' => array('amp-pagination' , '=' , '1'),
[6664] Fix | Delete
),
[6665] Fix | Delete
array(
[6666] Fix | Delete
'id' => 'ampforwp-pagination-link-type',
[6667] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[6668] Fix | Delete
'type' => 'switch',
[6669] Fix | Delete
'title' => esc_html__('Change Pagination Links to /amp', 'accelerated-mobile-pages'),
[6670] Fix | Delete
'default' => '0',
[6671] Fix | Delete
'required' => array('amp-pagination' , '=' , '1'),
[6672] Fix | Delete
'tooltip-subtitle' => sprintf('%s',
[6673] Fix | Delete
esc_html__('Enable this option if post pagination link with ?amp=1 does not work. It will change pagination link ?amp=1 to /amp', 'accelerated-mobile-pages')),
[6674] Fix | Delete
),
[6675] Fix | Delete
array(
[6676] Fix | Delete
'id' => 'ampforwp-swift-recent-posts',
[6677] Fix | Delete
'type' => 'switch',
[6678] Fix | Delete
'title' => esc_html__('Recent Posts below Related', 'accelerated-mobile-pages'),
[6679] Fix | Delete
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
[6680] Fix | Delete
esc_html__('Enable this option to show recent posts in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-enable-recent-posts-below-related-in-single-page/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
[6681] Fix | Delete
'default' => 1,
[6682] Fix | Delete
'required' => array('amp-design-selector' , '=' , '4'),
[6683] Fix | Delete
),
[6684] Fix | Delete
array(
[6685] Fix | Delete
'id' => 'amforwp-recentpost-date-switch',
[6686] Fix | Delete
'type' => 'switch',
[6687] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[6688] Fix | Delete
'title' => esc_html__('Recent Posts Date', 'accelerated-mobile-pages'),
[6689] Fix | Delete
'default' => 1,
[6690] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable this option to show data below each post of Recent post loop'),
[6691] Fix | Delete
'required' => array('ampforwp-swift-recent-posts' , '=' , '1'),
[6692] Fix | Delete
),
[6693] Fix | Delete
array(
[6694] Fix | Delete
'id' => 'amforwp-recentpost-image-switch',
[6695] Fix | Delete
'type' => 'switch',
[6696] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[6697] Fix | Delete
'title' => esc_html__('Image', 'accelerated-mobile-pages'),
[6698] Fix | Delete
'default' => 1,
[6699] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable this option to show image for each post of Recent post loop'),
[6700] Fix | Delete
'required' => array('ampforwp-swift-recent-posts' , '=' , '1'),
[6701] Fix | Delete
),
[6702] Fix | Delete
array(
[6703] Fix | Delete
'id' => 'amforwp-recentpost-excerpt-switch',
[6704] Fix | Delete
'type' => 'switch',
[6705] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[6706] Fix | Delete
'title' => esc_html__('Excerpt', 'accelerated-mobile-pages'),
[6707] Fix | Delete
'default' => 1,
[6708] Fix | Delete
'tooltip-subtitle' => esc_html__('Enable this option to show excerpt for each post of Recent post loop'),
[6709] Fix | Delete
'required' => array('ampforwp-swift-recent-posts' , '=' , '1'),
[6710] Fix | Delete
),
[6711] Fix | Delete
array(
[6712] Fix | Delete
'id' =>'amp-swift-recentpost-excerpt-len',
[6713] Fix | Delete
'class' => 'child_opt',
[6714] Fix | Delete
'type' =>'text',
[6715] Fix | Delete
'tooltip-subtitle' => esc_html__('Enter the number of words Eg: 15','accelerated-mobile-pages'),
[6716] Fix | Delete
'title' => esc_html__('Excerpt Length','accelerated-mobile-pages'),
[6717] Fix | Delete
'required' => array(
[6718] Fix | Delete
array('amp-design-selector', '=' , '4'),
[6719] Fix | Delete
array('amforwp-recentpost-excerpt-switch', '=' , '1'),
[6720] Fix | Delete
),
[6721] Fix | Delete
'validate' =>'numeric',
[6722] Fix | Delete
'default' =>'15',
[6723] Fix | Delete
),
[6724] Fix | Delete
array(
[6725] Fix | Delete
'id' => 'ampforwp-recentpost-posts-link',
[6726] Fix | Delete
'type' => 'switch',
[6727] Fix | Delete
'class' => 'child_opt',
[6728] Fix | Delete
'title' => esc_html__('Link to Non-AMP', 'accelerated-mobile-pages'),
[6729] Fix | Delete
'default' => 0,
[6730] Fix | Delete
'required' => array('ampforwp-swift-recent-posts' , '=' , '1'),
[6731] Fix | Delete
),
[6732] Fix | Delete
array(
[6733] Fix | Delete
'id' => 'ampforwp-number-of-recent-posts',
[6734] Fix | Delete
'type' => 'text',
[6735] Fix | Delete
'class' => 'child_opt',
[6736] Fix | Delete
'title' => esc_html__('Number of Recent Post', 'accelerated-mobile-pages'),
[6737] Fix | Delete
'validate' => 'numeric',
[6738] Fix | Delete
'default' => '6',
[6739] Fix | Delete
'required' => array('ampforwp-swift-recent-posts' , '=' , '1'),
[6740] Fix | Delete
),
[6741] Fix | Delete
array(
[6742] Fix | Delete
'id' => 'ampforwp-recent-post-utm-tracking-switch',
[6743] Fix | Delete
'type' => 'switch',
[6744] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[6745] Fix | Delete
'title' => esc_html__('UTM Tracking', 'accelerated-mobile-pages'),
[6746] Fix | Delete
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
[6747] Fix | Delete
esc_html__('Enable this option to add utm tracking to all your recent post links and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-utm-tracking-to-all-your-recent-post-links/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
[6748] Fix | Delete
'default' => 0,
[6749] Fix | Delete
'required' => array('ampforwp-swift-recent-posts', '=', '1')
[6750] Fix | Delete
),
[6751] Fix | Delete
array(
[6752] Fix | Delete
'id' => 'ampforwp-recent-posts-utm-tracking',
[6753] Fix | Delete
'title' => esc_html__('Campaign Source', 'accelerated-mobile-pages'),
[6754] Fix | Delete
'desc' =>esc_html__('Use \'&\' for adding parameters in the tracking. Example: utm_source=xxx&utm_medium=xxx','accelerated-mobile-pages'),
[6755] Fix | Delete
'type' => 'text',
[6756] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[6757] Fix | Delete
'required' => array('ampforwp-recent-post-utm-tracking-switch', '=' , '1'),
[6758] Fix | Delete
'default' => '',
[6759] Fix | Delete
),
[6760] Fix | Delete
array(
[6761] Fix | Delete
'id' => 'ampforwp-single_section_3',
[6762] Fix | Delete
'type' => 'section',
[6763] Fix | Delete
'title' => esc_html__('Related Post Settings', 'accelerated-mobile-pages'),
[6764] Fix | Delete
'indent' => true,
[6765] Fix | Delete
'layout_type' => 'accordion',
[6766] Fix | Delete
'accordion-open'=> 1,
[6767] Fix | Delete
),
[6768] Fix | Delete
// Related Post
[6769] Fix | Delete
array(
[6770] Fix | Delete
'id' => 'ampforwp-single-related-posts-switch',
[6771] Fix | Delete
'type' => 'switch',
[6772] Fix | Delete
'title' => esc_html__( 'Related Posts', 'accelerated-mobile-pages' ),
[6773] Fix | Delete
'default' => 1,
[6774] Fix | Delete
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
[6775] Fix | Delete
esc_html__('Enable this option to show related posts in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-related-posts-on-single-pages/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
[6776] Fix | Delete
[6777] Fix | Delete
),
[6778] Fix | Delete
array(
[6779] Fix | Delete
'id' => 'rp_design_type',
[6780] Fix | Delete
'title' => esc_html__('Related Post Designs', 'accelerated-mobile-pages'),
[6781] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[6782] Fix | Delete
'type' => 'image_select',
[6783] Fix | Delete
'options'=> array(
[6784] Fix | Delete
'1' => array(
[6785] Fix | Delete
'alt'=>' Single Design 1 ',
[6786] Fix | Delete
'img' =>AMPFORWP_PLUGIN_DIR_URI.'/images/rlp-1.png'
[6787] Fix | Delete
),
[6788] Fix | Delete
'2' => array(
[6789] Fix | Delete
'alt'=>' Single Design With Sidebar ',
[6790] Fix | Delete
'img' =>AMPFORWP_PLUGIN_DIR_URI.'/images/rlp-2.png'
[6791] Fix | Delete
),
[6792] Fix | Delete
'3' => array(
[6793] Fix | Delete
'alt'=>' Single Design With Sidebar ',
[6794] Fix | Delete
'img' =>AMPFORWP_PLUGIN_DIR_URI.'/images/rlp-3.png'
[6795] Fix | Delete
),
[6796] Fix | Delete
),
[6797] Fix | Delete
'default'=> '1',
[6798] Fix | Delete
'required' => array( array('amp-design-selector', '=' , '4'),
[6799] Fix | Delete
array('ampforwp-single-related-posts-switch', '=' , '1'),
[6800] Fix | Delete
array('single-design-type', '=' , '1')
[6801] Fix | Delete
),
[6802] Fix | Delete
),
[6803] Fix | Delete
array(
[6804] Fix | Delete
'id' => 'ampforwp-single-select-type-of-related',
[6805] Fix | Delete
'type' => 'select',
[6806] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[6807] Fix | Delete
'title' => esc_html__('Related Post by', 'accelerated-mobile-pages'),
[6808] Fix | Delete
'data' => 'page',
[6809] Fix | Delete
'tooltip-subtitle' => esc_html__('select the type of related posts', 'accelerated-mobile-pages'),
[6810] Fix | Delete
'options' => array(
[6811] Fix | Delete
'1' => 'Tags',
[6812] Fix | Delete
'2' => 'Categories',
[6813] Fix | Delete
),
[6814] Fix | Delete
'default' => '2',
[6815] Fix | Delete
'required' => array(
[6816] Fix | Delete
array('ampforwp-single-related-posts-switch', '=' , '1'),
[6817] Fix | Delete
),
[6818] Fix | Delete
),
[6819] Fix | Delete
array(
[6820] Fix | Delete
'id' => 'ampforwp-single-related-posts-image',
[6821] Fix | Delete
'type' => 'switch',
[6822] Fix | Delete
'class' => 'child_opt',
[6823] Fix | Delete
'title' => esc_html__('Image', 'accelerated-mobile-pages'),
[6824] Fix | Delete
'default' => 1,
[6825] Fix | Delete
'required' => array(
[6826] Fix | Delete
array('ampforwp-single-related-posts-switch', '=' , '1')
[6827] Fix | Delete
),
[6828] Fix | Delete
),
[6829] Fix | Delete
array(
[6830] Fix | Delete
'id' => 'ampforwp-single-related-posts-change-image-size',
[6831] Fix | Delete
'type' => 'switch',
[6832] Fix | Delete
'class' => 'child_opt',
[6833] Fix | Delete
'title' => esc_html__('Change Image Size', 'accelerated-mobile-pages'),
[6834] Fix | Delete
'default' => 0,
[6835] Fix | Delete
'required' => array(
[6836] Fix | Delete
array('amp-design-selector','=',4),
[6837] Fix | Delete
array('ampforwp-single-related-posts-switch', '=' , '1'),
[6838] Fix | Delete
array('ampforwp-single-related-posts-image', '=' , '1')
[6839] Fix | Delete
),
[6840] Fix | Delete
),
[6841] Fix | Delete
array(
[6842] Fix | Delete
'id' => 'ampforwp-single-related-posts-image-width',
[6843] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[6844] Fix | Delete
'type' => 'text',
[6845] Fix | Delete
'title' => esc_html__('Image Width', 'accelerated-mobile-pages'),
[6846] Fix | Delete
'tooltip-subtitle' => esc_html__('Defaults to 346', 'accelerated-mobile-pages'),
[6847] Fix | Delete
'default' => 346,
[6848] Fix | Delete
'required' => array(
[6849] Fix | Delete
array('amp-design-selector','=',4),
[6850] Fix | Delete
array('ampforwp-single-related-posts-change-image-size','=',1)
[6851] Fix | Delete
)
[6852] Fix | Delete
),
[6853] Fix | Delete
array(
[6854] Fix | Delete
'id' => 'ampforwp-single-related-posts-image-height',
[6855] Fix | Delete
'class' => 'child_opt',
[6856] Fix | Delete
'type' => 'text',
[6857] Fix | Delete
'title' => esc_html__('Image Height', 'accelerated-mobile-pages'),
[6858] Fix | Delete
'tooltip-subtitle' => esc_html__('Defaults to 188', 'accelerated-mobile-pages'),
[6859] Fix | Delete
'default' => 188,
[6860] Fix | Delete
'required' => array(
[6861] Fix | Delete
array('amp-design-selector','=',4),
[6862] Fix | Delete
array('ampforwp-single-related-posts-change-image-size','=',1)
[6863] Fix | Delete
)
[6864] Fix | Delete
),
[6865] Fix | Delete
array(
[6866] Fix | Delete
'id' => 'ampforwp-single-related-posts-excerpt',
[6867] Fix | Delete
'type' => 'switch',
[6868] Fix | Delete
'class' => 'child_opt',
[6869] Fix | Delete
'title' => esc_html__('Excerpt', 'accelerated-mobile-pages'),
[6870] Fix | Delete
'default' => 0,
[6871] Fix | Delete
'required' => array(
[6872] Fix | Delete
array('ampforwp-single-related-posts-switch', '=' , '1')
[6873] Fix | Delete
),
[6874] Fix | Delete
),
[6875] Fix | Delete
// Excerpt ON/OFF of Related Posts
[6876] Fix | Delete
array(
[6877] Fix | Delete
'id' => 'enable-excerpt-single-related-posts',
[6878] Fix | Delete
'type' => 'text',
[6879] Fix | Delete
'class' => 'child_opt',
[6880] Fix | Delete
'title' => esc_html__('Excerpt Length', 'accelerated-mobile-pages'),
[6881] Fix | Delete
'default' => 15,
[6882] Fix | Delete
'tooltip-subtitle' => esc_html__('Excerpt will be displayed on related posts', 'accelerated-mobile-pages'),
[6883] Fix | Delete
'required' => array(
[6884] Fix | Delete
array('ampforwp-single-related-posts-excerpt', '=' , '1') ),
[6885] Fix | Delete
),
[6886] Fix | Delete
array(
[6887] Fix | Delete
'id' => 'excerpt-option-small-rp',
[6888] Fix | Delete
'class' => 'child_opt',
[6889] Fix | Delete
'type' => 'switch',
[6890] Fix | Delete
'title' => esc_html__('Excerpt on Small Screens', 'accelerated-mobile-pages'),
[6891] Fix | Delete
'default' => '0',
[6892] Fix | Delete
'required' => array(
[6893] Fix | Delete
array('amp-design-selector', '!=' , '4'),
[6894] Fix | Delete
array('ampforwp-single-related-posts-excerpt', '=' , '1'),
[6895] Fix | Delete
)
[6896] Fix | Delete
),
[6897] Fix | Delete
array(
[6898] Fix | Delete
'id' => 'excerpt-option-rp-read-more',
[6899] Fix | Delete
'class' => 'child_opt',
[6900] Fix | Delete
'type' => 'switch',
[6901] Fix | Delete
'title' => esc_html__('Read More Link', 'accelerated-mobile-pages'),
[6902] Fix | Delete
'default' => '0',
[6903] Fix | Delete
'required' => array(
[6904] Fix | Delete
array('ampforwp-single-related-posts-excerpt', '=' , '1'),
[6905] Fix | Delete
)
[6906] Fix | Delete
),
[6907] Fix | Delete
array(
[6908] Fix | Delete
'id' => 'ampforwp-single-related-posts-link',
[6909] Fix | Delete
'type' => 'switch',
[6910] Fix | Delete
'class' => 'child_opt',
[6911] Fix | Delete
'title' => esc_html__('Link to Non-AMP', 'accelerated-mobile-pages'),
[6912] Fix | Delete
'default' => 0,
[6913] Fix | Delete
'required' => array(
[6914] Fix | Delete
array('ampforwp-single-related-posts-switch', '=' , '1')
[6915] Fix | Delete
),
[6916] Fix | Delete
),
[6917] Fix | Delete
array(
[6918] Fix | Delete
'id' => 'ampforwp-single-order-of-related-posts',
[6919] Fix | Delete
'type' => 'switch',
[6920] Fix | Delete
'class' => 'child_opt',
[6921] Fix | Delete
'title' => esc_html__('Sort Related Posts Randomly', 'accelerated-mobile-pages'),
[6922] Fix | Delete
'default' => 0,
[6923] Fix | Delete
'required' => array(
[6924] Fix | Delete
array('ampforwp-single-related-posts-switch', '=' , '1'),
[6925] Fix | Delete
),
[6926] Fix | Delete
),
[6927] Fix | Delete
array(
[6928] Fix | Delete
'id' => 'ampforwp-sort-related-posts-randomly-notice',
[6929] Fix | Delete
'type' => 'info',
[6930] Fix | Delete
'style' => 'info',
[6931] Fix | Delete
'desc' => esc_html__('Enabling this might have some performance effects for sites who have large number of posts. Please use this with caution.', 'accelerated-mobile-pages'),
[6932] Fix | Delete
'required' => array('ampforwp-single-order-of-related-posts', '=', 1)
[6933] Fix | Delete
),
[6934] Fix | Delete
array(
[6935] Fix | Delete
'id' => 'ampforwp-number-of-related-posts',
[6936] Fix | Delete
'type' => 'text',
[6937] Fix | Delete
'class' => 'child_opt',
[6938] Fix | Delete
'title' => esc_html__('Number of Related Post', 'accelerated-mobile-pages'),
[6939] Fix | Delete
'validate' => 'numeric',
[6940] Fix | Delete
'default' => '3',
[6941] Fix | Delete
'required' => array(
[6942] Fix | Delete
array('ampforwp-single-related-posts-switch', '=' , '1'),
[6943] Fix | Delete
),
[6944] Fix | Delete
),
[6945] Fix | Delete
array(
[6946] Fix | Delete
'id' => 'ampforwp-related-posts-days-switch',
[6947] Fix | Delete
'type' => 'switch',
[6948] Fix | Delete
'class' => 'child_opt',
[6949] Fix | Delete
'title' => esc_html__('By Last X Days', 'accelerated-mobile-pages'),
[6950] Fix | Delete
'tooltip-subtitle' => esc_html__('Show Related Posts From Past Few Days', 'accelerated-mobile-pages'),
[6951] Fix | Delete
'default' => 0,
[6952] Fix | Delete
'required' => array(
[6953] Fix | Delete
array('ampforwp-single-related-posts-switch', '=' , '1'),
[6954] Fix | Delete
),
[6955] Fix | Delete
),
[6956] Fix | Delete
array(
[6957] Fix | Delete
'id' => 'ampforwp-related-posts-days-text',
[6958] Fix | Delete
'type' => 'text',
[6959] Fix | Delete
'class' => 'child_opt',
[6960] Fix | Delete
'title' => esc_html__('Number of Days', 'accelerated-mobile-pages'),
[6961] Fix | Delete
'validate' => 'numeric',
[6962] Fix | Delete
'default' => '7',
[6963] Fix | Delete
'required' => array(
[6964] Fix | Delete
array('ampforwp-related-posts-days-switch', '=' , '1'),
[6965] Fix | Delete
),
[6966] Fix | Delete
),
[6967] Fix | Delete
array(
[6968] Fix | Delete
'id' => 'ampforwp-related-post-utm-tracking-switch',
[6969] Fix | Delete
'type' => 'switch',
[6970] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[6971] Fix | Delete
'title' => esc_html__('UTM Tracking', 'accelerated-mobile-pages'),
[6972] Fix | Delete
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
[6973] Fix | Delete
esc_html__('Enable this option to add utm tracking to all your related post links and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-add-utm-tracking-to-all-your-related-post-links/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
[6974] Fix | Delete
'default' => 0,
[6975] Fix | Delete
'required' => array('ampforwp-single-related-posts-switch', '=', '1')
[6976] Fix | Delete
),
[6977] Fix | Delete
array(
[6978] Fix | Delete
'id' => 'ampforwp-related-posts-utm-tracking',
[6979] Fix | Delete
'title' => esc_html__('Campaign Source', 'accelerated-mobile-pages'),
[6980] Fix | Delete
'desc' =>esc_html__('Use \'&\' for adding parameters in the tracking. Example: utm_source=xxx&utm_medium=xxx','accelerated-mobile-pages'),
[6981] Fix | Delete
'type' => 'text',
[6982] Fix | Delete
'class' => 'child_opt child_opt_arrow',
[6983] Fix | Delete
'required' => array('ampforwp-related-post-utm-tracking-switch', '=' , '1'),
[6984] Fix | Delete
'default' => '',
[6985] Fix | Delete
),
[6986] Fix | Delete
// DESIGN 3 RECENT POST BELOW RELATED
[6987] Fix | Delete
array(
[6988] Fix | Delete
'id' => 'ampforwp-design3-recent-posts',
[6989] Fix | Delete
'type' => 'switch',
[6990] Fix | Delete
'title' => esc_html__('Recent Posts below Related', 'accelerated-mobile-pages'),
[6991] Fix | Delete
'tooltip-subtitle' => sprintf('%s <a href="%s" target="_blank">%s</a> %s',
[6992] Fix | Delete
esc_html__('Enable this option to show recent posts in AMP and', 'accelerated-mobile-pages'), esc_url('https://ampforwp.com/tutorials/article/how-to-enable-recent-posts-below-related-in-single-page/'),esc_html__('Click Here','accelerated-mobile-pages'), esc_html__('for more info','accelerated-mobile-pages')),
[6993] Fix | Delete
'default' => 0,
[6994] Fix | Delete
'required' => array('amp-design-selector' , '=' , '3'),
[6995] Fix | Delete
),
[6996] Fix | Delete
array(
[6997] Fix | Delete
'id' => 'amforwp-design3-recentpost-date-switch',
[6998] Fix | Delete
'type' => 'switch',
[6999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function