← Back
Editing: fbomatic-main.php
<?php function fbomatic_admin_settings() { $language_names = array( esc_html__("Disabled", 'fbomatic-facebook-post-generator'), esc_html__("Afrikaans (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Albanian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Arabic (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Amharic (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Armenian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Belarusian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Bulgarian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Catalan (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Chinese Simplified (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Croatian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Czech (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Danish (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Dutch (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("English (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Estonian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Filipino (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Finnish (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("French (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Galician (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("German (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Greek (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Hebrew (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Hindi (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Hungarian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Icelandic (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Indonesian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Irish (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Italian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Japanese (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Korean (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Latvian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Lithuanian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Norwegian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Macedonian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Malay (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Maltese (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Persian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Polish (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Portuguese (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Romanian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Russian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Serbian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Slovak (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Slovenian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Spanish (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Swahili (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Swedish (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Thai (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Turkish (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Ukrainian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Vietnamese (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Welsh (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Yiddish (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Tamil (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Azerbaijani (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Kannada (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Basque (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Bengali (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Latin (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Chinese Traditional (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Esperanto (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Georgian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Telugu (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Gujarati (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Haitian Creole (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Urdu (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Burmese (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Bosnian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Cebuano (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Chichewa (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Corsican (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Frisian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Scottish Gaelic (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Hausa (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Hawaian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Hmong (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Igbo (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Javanese (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Kazakh (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Khmer (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Kurdish (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Kyrgyz (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Lao (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Luxembourgish (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Malagasy (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Malayalam (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Maori (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Marathi (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Mongolian (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Nepali (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Pashto (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Punjabi (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Samoan (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Sesotho (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Shona (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Sindhi (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Sinhala (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Somali (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Sundanese (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Swahili (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Tajik (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Uzbek (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Xhosa (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Yoruba (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Zulu (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Assammese (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Aymara (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Bambara (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Bhojpuri (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Dhivehi (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Dogri (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Ewe (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Guarani (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Ilocano (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Kinyarwanda (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Konkani (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Krio (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Kurdish - Sorani (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Lingala (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Luganda (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Maithili (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Meiteilon (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Mizo (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Odia (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Oromo (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Quechua (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Sanskrit (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Sepedi (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Tatar (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Tigrinya (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Tsonga (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Turkmen (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Twi (Google Translate)", 'fbomatic-facebook-post-generator'), esc_html__("Uyghur (Google Translate)", 'fbomatic-facebook-post-generator') ); $language_codes = array( "disabled", "af", "sq", "ar", "am", "hy", "be", "bg", "ca", "zh-CN", "hr", "cs", "da", "nl", "en", "et", "tl", "fi", "fr", "gl", "de", "el", "iw", "hi", "hu", "is", "id", "ga", "it", "ja", "ko", "lv", "lt", "no", "mk", "ms", "mt", "fa", "pl", "pt", "ro", "ru", "sr", "sk", "sl", "es", "sw", "sv", "th", "tr", "uk", "vi", "cy", "yi", "ta", "az", "kn", "eu", "bn", "la", "zh-TW", "eo", "ka", "te", "gu", "ht", "ur", "my", "bs", "ceb", "ny", "co", "fy", "gd", "ha", "haw", "hmn", "ig", "jw", "kk", "km", "ku", "ky", "lo", "lb", "mg", "ml", "mi", "mr", "mn", "ne", "ps", "pa", "sm", "st", "sn", "sd", "si", "so", "su", "sw", "tg", "uz", "xh", "yo", "zu", "as", "ay", "bm", "bho", "dv", "doi", "ee", "gn", "ilo", "rw", "gom", "kri", "ckb", "ln", "lg", "mai", "mni-Mtei", "lus", "or", "om", "qu", "sa", "nso", "tt", "ti", "ts", "tk", "ak", "ug" ); ?> <div class="wp-header-end"></div> <div class="wrap gs_popuptype_holder seo_pops"> <div> <form id="myForm" method="post" action="<?php if(is_multisite() && is_network_admin()){echo '../options.php';}else{echo 'options.php';}?>"> <div class="cr_autocomplete"> <input type="password" id="PreventChromeAutocomplete" name="PreventChromeAutocomplete" autocomplete="address-level4" /> </div> <?php settings_fields('fbomatic_option_group'); do_settings_sections('fbomatic_option_group'); $fbomatic_Main_Settings = get_option('fbomatic_Main_Settings', false); if (isset($fbomatic_Main_Settings['fbomatic_enabled'])) { $fbomatic_enabled = $fbomatic_Main_Settings['fbomatic_enabled']; } else { $fbomatic_enabled = ''; } if (isset($fbomatic_Main_Settings['enable_metabox'])) { $enable_metabox = $fbomatic_Main_Settings['enable_metabox']; } else { $enable_metabox = ''; } if (isset($fbomatic_Main_Settings['sentence_list'])) { $sentence_list = $fbomatic_Main_Settings['sentence_list']; } else { $sentence_list = ''; } if (isset($fbomatic_Main_Settings['sentence_list2'])) { $sentence_list2 = $fbomatic_Main_Settings['sentence_list2']; } else { $sentence_list2 = ''; } if (isset($fbomatic_Main_Settings['variable_list'])) { $variable_list = $fbomatic_Main_Settings['variable_list']; } else { $variable_list = ''; } if (isset($fbomatic_Main_Settings['enable_detailed_logging'])) { $enable_detailed_logging = $fbomatic_Main_Settings['enable_detailed_logging']; } else { $enable_detailed_logging = ''; } if (isset($fbomatic_Main_Settings['enable_logging'])) { $enable_logging = $fbomatic_Main_Settings['enable_logging']; } else { $enable_logging = ''; } if (isset($fbomatic_Main_Settings['disable_backend_content'])) { $disable_backend_content = $fbomatic_Main_Settings['disable_backend_content']; } else { $disable_backend_content = ''; } if (isset($fbomatic_Main_Settings['auto_clear_logs'])) { $auto_clear_logs = $fbomatic_Main_Settings['auto_clear_logs']; } else { $auto_clear_logs = ''; } if (isset($fbomatic_Main_Settings['rule_timeout'])) { $rule_timeout = $fbomatic_Main_Settings['rule_timeout']; } else { $rule_timeout = ''; } if (isset($fbomatic_Main_Settings['disable_scripts'])) { $disable_scripts = $fbomatic_Main_Settings['disable_scripts']; } else { $disable_scripts = ''; } if (isset($fbomatic_Main_Settings['date_format'])) { $date_format = $fbomatic_Main_Settings['date_format']; } else { $date_format = ''; } if (isset($fbomatic_Main_Settings['default_user'])) { $default_user = $fbomatic_Main_Settings['default_user']; } else { $default_user = ''; } if (isset($fbomatic_Main_Settings['strip_links'])) { $strip_links = $fbomatic_Main_Settings['strip_links']; } else { $strip_links = ''; } if (isset($fbomatic_Main_Settings['max_title_words'])) { $max_title_words = $fbomatic_Main_Settings['max_title_words']; } else { $max_title_words = ''; } if (isset($fbomatic_Main_Settings['splitting_char'])) { $splitting_char = $fbomatic_Main_Settings['splitting_char']; } else { $splitting_char = ''; } if (isset($fbomatic_Main_Settings['no_img_link'])) { $no_img_link = $fbomatic_Main_Settings['no_img_link']; } else { $no_img_link = ''; } if (isset($fbomatic_Main_Settings['no_link'])) { $no_link = $fbomatic_Main_Settings['no_link']; } else { $no_link = ''; } if (isset($fbomatic_Main_Settings['link_source'])) { $link_source = $fbomatic_Main_Settings['link_source']; } else { $link_source = ''; } if (isset($fbomatic_Main_Settings['no_hash_link'])) { $no_hash_link = $fbomatic_Main_Settings['no_hash_link']; } else { $no_hash_link = ''; } if (isset($fbomatic_Main_Settings['send_email'])) { $send_email = $fbomatic_Main_Settings['send_email']; } else { $send_email = ''; } if (isset($fbomatic_Main_Settings['email_address'])) { $email_address = $fbomatic_Main_Settings['email_address']; } else { $email_address = ''; } if (isset($fbomatic_Main_Settings['run_before'])) { $run_before = $fbomatic_Main_Settings['run_before']; } else { $run_before = ''; } if (isset($fbomatic_Main_Settings['run_after'])) { $run_after = $fbomatic_Main_Settings['run_after']; } else { $run_after = ''; } if (isset($fbomatic_Main_Settings['default_types_fb'])) { $default_types_fb = $fbomatic_Main_Settings['default_types_fb']; } else { $default_types_fb = ''; } if (isset($fbomatic_Main_Settings['translate'])) { $translate = $fbomatic_Main_Settings['translate']; } else { $translate = ''; } if (isset($fbomatic_Main_Settings['translate_source'])) { $translate_source = $fbomatic_Main_Settings['translate_source']; } else { $translate_source = ''; } if (isset($fbomatic_Main_Settings['spin_text'])) { $spin_text = $fbomatic_Main_Settings['spin_text']; } else { $spin_text = ''; } if (isset($fbomatic_Main_Settings['google_trans_auth'])) { $google_trans_auth = $fbomatic_Main_Settings['google_trans_auth']; } else { $google_trans_auth = ''; } if (isset($fbomatic_Main_Settings['best_user'])) { $best_user = $fbomatic_Main_Settings['best_user']; } else { $best_user = ''; } if (isset($fbomatic_Main_Settings['best_password'])) { $best_password = $fbomatic_Main_Settings['best_password']; } else { $best_password = ''; } if (isset($fbomatic_Main_Settings['phantom_path'])) { $phantom_path = $fbomatic_Main_Settings['phantom_path']; } else { $phantom_path = ''; } if (isset($fbomatic_Main_Settings['screenshot_width'])) { $screenshot_width = $fbomatic_Main_Settings['screenshot_width']; } else { $screenshot_width = ''; } if (isset($fbomatic_Main_Settings['screenshot_height'])) { $screenshot_height = $fbomatic_Main_Settings['screenshot_height']; } else { $screenshot_height = ''; } if (isset($fbomatic_Main_Settings['phantom_screen'])) { $phantom_screen = $fbomatic_Main_Settings['phantom_screen']; } else { $phantom_screen = ''; } if (isset($fbomatic_Main_Settings['puppeteer_screen'])) { $puppeteer_screen = $fbomatic_Main_Settings['puppeteer_screen']; } else { $puppeteer_screen = ''; } if (isset($fbomatic_Main_Settings['min_word_title'])) { $min_word_title = $fbomatic_Main_Settings['min_word_title']; } else { $min_word_title = ''; } if (isset($fbomatic_Main_Settings['max_word_title'])) { $max_word_title = $fbomatic_Main_Settings['max_word_title']; } else { $max_word_title = ''; } if (isset($fbomatic_Main_Settings['min_word_content'])) { $min_word_content = $fbomatic_Main_Settings['min_word_content']; } else { $min_word_content = ''; } if (isset($fbomatic_Main_Settings['max_word_content'])) { $max_word_content = $fbomatic_Main_Settings['max_word_content']; } else { $max_word_content = ''; } if (isset($fbomatic_Main_Settings['required_words'])) { $required_words = $fbomatic_Main_Settings['required_words']; } else { $required_words = ''; } if (isset($fbomatic_Main_Settings['no_duplicate'])) { $no_duplicate = $fbomatic_Main_Settings['no_duplicate']; } else { $no_duplicate = ''; } if (isset($fbomatic_Main_Settings['banned_words'])) { $banned_words = $fbomatic_Main_Settings['banned_words']; } else { $banned_words = ''; } if (isset($fbomatic_Main_Settings['skip_old'])) { $skip_old = $fbomatic_Main_Settings['skip_old']; } else { $skip_old = ''; } if (isset($fbomatic_Main_Settings['skip_day'])) { $skip_day = $fbomatic_Main_Settings['skip_day']; } else { $skip_day = ''; } if (isset($fbomatic_Main_Settings['skip_month'])) { $skip_month = $fbomatic_Main_Settings['skip_month']; } else { $skip_month = ''; } if (isset($fbomatic_Main_Settings['skip_year'])) { $skip_year = $fbomatic_Main_Settings['skip_year']; } else { $skip_year = ''; } if (isset($fbomatic_Main_Settings['custom_html2'])) { $custom_html2 = $fbomatic_Main_Settings['custom_html2']; } else { $custom_html2 = ''; } if (isset($fbomatic_Main_Settings['custom_html'])) { $custom_html = $fbomatic_Main_Settings['custom_html']; } else { $custom_html = ''; } if (isset($fbomatic_Main_Settings['skip_no_img'])) { $skip_no_img = $fbomatic_Main_Settings['skip_no_img']; } else { $skip_no_img = ''; } if (isset($fbomatic_Main_Settings['strip_by_id'])) { $strip_by_id = $fbomatic_Main_Settings['strip_by_id']; } else { $strip_by_id = ''; } if (isset($fbomatic_Main_Settings['keyword_tag'])) { $keyword_tag = $fbomatic_Main_Settings['keyword_tag']; } else { $keyword_tag = ''; } if (isset($fbomatic_Main_Settings['strip_by_class'])) { $strip_by_class = $fbomatic_Main_Settings['strip_by_class']; } else { $strip_by_class = ''; } if (isset($fbomatic_Main_Settings['app_id'])) { $app_id = $fbomatic_Main_Settings['app_id']; } else { $app_id = ''; } if (isset($fbomatic_Main_Settings['app_secret'])) { $app_secret = $fbomatic_Main_Settings['app_secret']; } else { $app_secret = ''; } if (isset($fbomatic_Main_Settings['access_token'])) { $access_token = $fbomatic_Main_Settings['access_token']; } else { $access_token = ''; } if (isset($fbomatic_Main_Settings['app_id2'])) { $app_id2 = $fbomatic_Main_Settings['app_id2']; } else { $app_id2 = ''; } if (isset($fbomatic_Main_Settings['app_secret2'])) { $app_secret2 = $fbomatic_Main_Settings['app_secret2']; } else { $app_secret2 = ''; } if (isset($fbomatic_Main_Settings['access_token2'])) { $access_token2 = $fbomatic_Main_Settings['access_token2']; } else { $access_token2 = ''; } if (isset($fbomatic_Main_Settings['skip_types'])) { $skip_types = $fbomatic_Main_Settings['skip_types']; } else { $skip_types = ''; } if (isset($fbomatic_Main_Settings['enable_og'])) { $enable_og = $fbomatic_Main_Settings['enable_og']; } else { $enable_og = ''; } if (isset($fbomatic_Main_Settings['page_ids'])) { $page_ids = $fbomatic_Main_Settings['page_ids']; } else { $page_ids = ''; } if (isset($fbomatic_Main_Settings['fbomatic_pixel'])) { $fbomatic_pixel = $fbomatic_Main_Settings['fbomatic_pixel']; } else { $fbomatic_pixel = ''; } if (isset($fbomatic_Main_Settings['resize_width'])) { $resize_width = $fbomatic_Main_Settings['resize_width']; } else { $resize_width = ''; } if (isset($fbomatic_Main_Settings['copy_images'])) { $copy_images = $fbomatic_Main_Settings['copy_images']; } else { $copy_images = ''; } if (isset($fbomatic_Main_Settings['no_local_image'])) { $no_local_image = $fbomatic_Main_Settings['no_local_image']; } else { $no_local_image = ''; } if (isset($fbomatic_Main_Settings['no_video_img'])) { $no_video_img = $fbomatic_Main_Settings['no_video_img']; } else { $no_video_img = ''; } if (isset($fbomatic_Main_Settings['strip_featured_image'])) { $strip_featured_image = $fbomatic_Main_Settings['strip_featured_image']; } else { $strip_featured_image = ''; } if (isset($fbomatic_Main_Settings['resize_height'])) { $resize_height = $fbomatic_Main_Settings['resize_height']; } else { $resize_height = ''; } if (isset($fbomatic_Main_Settings['do_not_check_duplicates'])) { $do_not_check_duplicates = $fbomatic_Main_Settings['do_not_check_duplicates']; } else { $do_not_check_duplicates = ''; } if (isset($fbomatic_Main_Settings['app_review_mode'])) { $app_review_mode = $fbomatic_Main_Settings['app_review_mode']; } else { $app_review_mode = ''; } if (isset($fbomatic_Main_Settings['api_version'])) { $api_version = $fbomatic_Main_Settings['api_version']; } else { $api_version = ''; } if (isset($fbomatic_Main_Settings['cuser_cookie'])) { $cuser_cookie = $fbomatic_Main_Settings['cuser_cookie']; } else { $cuser_cookie = ''; } if (isset($fbomatic_Main_Settings['xs_cookie'])) { $xs_cookie = $fbomatic_Main_Settings['xs_cookie']; } else { $xs_cookie = ''; } if (isset($fbomatic_Main_Settings['links_hide'])) { $links_hide = $fbomatic_Main_Settings['links_hide']; } else { $links_hide = ''; } if (isset($fbomatic_Main_Settings['links_hide_google'])) { $links_hide_google = $fbomatic_Main_Settings['links_hide_google']; } else { $links_hide_google = ''; } if (isset($fbomatic_Main_Settings['links_hide_google2'])) { $links_hide_google2 = $fbomatic_Main_Settings['links_hide_google2']; } else { $links_hide_google2 = ''; } if (isset($fbomatic_Main_Settings['apiKey'])) { $apiKey = $fbomatic_Main_Settings['apiKey']; } else { $apiKey = ''; } if (isset($fbomatic_Main_Settings['gapiKey'])) { $gapiKey = $fbomatic_Main_Settings['gapiKey']; } else { $gapiKey = ''; } if (isset($fbomatic_Main_Settings['fix_html'])) { $fix_html = $fbomatic_Main_Settings['fix_html']; } else { $fix_html = ''; } if (isset($fbomatic_Main_Settings['no_utf'])) { $no_utf = $fbomatic_Main_Settings['no_utf']; } else { $no_utf = ''; } if (isset($fbomatic_Main_Settings['app_id_og'])) { $app_id_og = $fbomatic_Main_Settings['app_id_og']; } else { $app_id_og = ''; } if (isset($fbomatic_Main_Settings['default_image_og'])) { $default_image_og = $fbomatic_Main_Settings['default_image_og']; } else { $default_image_og = ''; } if (isset($fbomatic_Main_Settings['limit_max_posts'])) { $limit_max_posts = $fbomatic_Main_Settings['limit_max_posts']; } else { $limit_max_posts = ''; } if (isset($fbomatic_Main_Settings['no_check'])) { $no_check = $fbomatic_Main_Settings['no_check']; } else { $no_check = ''; } if (isset($fbomatic_Main_Settings['proxy_url'])) { $proxy_url = $fbomatic_Main_Settings['proxy_url']; } else { $proxy_url = ''; } if (isset($fbomatic_Main_Settings['proxy_auth'])) { $proxy_auth = $fbomatic_Main_Settings['proxy_auth']; } else { $proxy_auth = ''; } if (isset($fbomatic_Main_Settings['post_source_custom'])) { $post_source_custom = $fbomatic_Main_Settings['post_source_custom']; } else { $post_source_custom = ''; } $get_option_viewed = get_option('coderevolution_settings_viewed', 0); if ($get_option_viewed == 0) { ?> <div id="message" class="updated"> <p class="cr_saved_notif"><strong> <?php echo sprintf( wp_kses( __( 'Did you see our new <a href="%s" target="_blank">recommendations page</a>? It will help you increase your passive earnings!', 'fbomatic-facebook-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( 'admin.php?page=fbomatic_recommendations' ) );?></strong></p> </div> <?php } if (isset($_GET['settings-updated'])) { ?> <div id="message" class="updated"> <p class="cr_saved_notif"><strong> <?php echo esc_html__('Settings saved.', 'fbomatic-facebook-post-generator');?></strong></p> </div> <?php $get = get_option('coderevolution_settings_changed', 0); if($get == 1) { delete_option('coderevolution_settings_changed'); ?> <div id="message" class="updated"> <p class="cr_failed_notif"><strong> <?php echo esc_html__('Plugin registration failed!', 'fbomatic-facebook-post-generator');?></strong></p> </div> <?php } elseif($get == 2) { delete_option('coderevolution_settings_changed'); ?> <div id="message" class="updated"> <p class="cr_saved_notif"><strong> <?php echo esc_html__('Plugin registration successful!', 'fbomatic-facebook-post-generator');?></strong></p> </div> <?php } elseif($get != 0) { delete_option('coderevolution_settings_changed'); ?> <div id="message" class="updated"> <p class="cr_failed_notif"><strong> <?php echo esc_html($get);?></strong></p> </div> <?php } } ?> <div> <div class="fbomatic_class"> <table class="widefat"> <tr> <td> <h1> <span class="gs-sub-heading"><b>F-omatic Automatic Post Generator Plugin - <?php echo esc_html__('Main Switch:', 'fbomatic-facebook-post-generator');?></b> </span> <span class="cr_07_font">v<?php echo fbomatic_get_version();?> </span> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Enable or disable this plugin. This acts like a main switch.", 'fbomatic-facebook-post-generator'); ?> </div> </div> </h1> </td> <td> <div class="slideThree"> <input class="input-checkbox" type="checkbox" id="fbomatic_enabled" name="fbomatic_Main_Settings[fbomatic_enabled]"<?php if ($fbomatic_enabled == 'on') echo ' checked '; ?>> <label for="fbomatic_enabled"></label> </div> </td> </tr> </table> </div> <div><?php if($fbomatic_enabled != 'on'){echo '<div class="crf_bord cr_color_red cr_auto_update">' . esc_html__('This feature of the plugin is disabled! Please enable it from the above switch.', 'fbomatic-facebook-post-generator') . '</div>';}?> <table class="widefat"> <tr> <td colspan="2"> <?php $plugin = plugin_basename(__FILE__); $plugin_slug = explode('/', $plugin); $plugin_slug = $plugin_slug[0]; $uoptions = get_option($plugin_slug . '_registration', array()); if(isset($uoptions['item_id']) && isset($uoptions['item_name']) && isset($uoptions['created_at']) && isset($uoptions['buyer']) && isset($uoptions['licence']) && isset($uoptions['supported_until'])) { ?> <h3><b><?php echo esc_html__("Plugin Registration Info - Automatic Updates Enabled:", 'fbomatic-facebook-post-generator');?></b> </h3> <ul> <li><b><?php echo esc_html__("Item Name:", 'fbomatic-facebook-post-generator');?></b> <?php echo esc_html($uoptions['item_name']);?></li> <li> <b><?php echo esc_html__("Item ID:", 'fbomatic-facebook-post-generator');?></b> <?php echo esc_html($uoptions['item_id']);?> </li> <li> <b><?php echo esc_html__("Created At:", 'fbomatic-facebook-post-generator');?></b> <?php echo esc_html($uoptions['created_at']);?> </li> <li> <b><?php echo esc_html__("Buyer Name:", 'fbomatic-facebook-post-generator');?></b> <?php echo esc_html($uoptions['buyer']);?> </li> <li> <input type="submit" onclick="unsaved = false;" class="button button-primary" name="<?php echo esc_html($plugin_slug);?>_revoke_license" value="<?php echo esc_html__("Revoke License", 'fbomatic-facebook-post-generator');?>"> </li> </ul> <?php } else { ?> <div class="notice notice-error is-dismissible"><p><?php echo esc_html__("This is a trial version of the plugin. Automatic updates for this plugin are disabled. Please activate the plugin from below, so you can benefit of automatic updates for it!", 'fbomatic-facebook-post-generator');?></p></div> </td> </tr> <tr> <td> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo sprintf( wp_kses( __( 'Please input your Envato purchase code, to enable automatic updates in the plugin. To get your purchase code, please follow <a href="%s" target="_blank">this tutorial</a>. Info submitted to the registration server consists of: purchase code, site URL, site name, admin email. All these data will be used strictly for registration purposes.', 'fbomatic-facebook-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( '//coderevolution.ro/knowledge-base/faq/how-do-i-find-my-items-purchase-code-for-plugin-license-activation/' ) ); ?> </div> </div> <b><?php echo esc_html__("Register Envato Purchase Code To Enable Automatic Updates:", 'fbomatic-facebook-post-generator');?></b> </td> <td><input type="text" name="<?php echo esc_html($plugin_slug);?>_register_code" value="" placeholder="<?php echo esc_html__("Envato Purchase Code", 'fbomatic-facebook-post-generator');?>"></td> </tr> <tr> <td></td> <td><input type="submit" name="<?php echo esc_html($plugin_slug);?>_register" id="<?php echo esc_html($plugin_slug);?>_register" class="button button-primary" onclick="unsaved = false;" value="<?php echo esc_html__("Register Purchase Code", 'fbomatic-facebook-post-generator');?>"/> <?php } ?> </td> </tr> <tr> <td> <hr/> </td> <td> <hr/> </td> </tr> <tr><td colspan="2"> <h3> <ul> <li><?php echo sprintf( wp_kses( __( 'Need help configuring this plugin? Please check out it\'s <a href="%s" target="_blank">video tutorial</a>.', 'fbomatic-facebook-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( 'https://www.youtube.com/watch?v=0ibFQRcxXRs&list=PLEiGTaa0iBIhQ4w7Pcyph1UkPTrAQgubZ&index=1' ) );?> </li> <li><?php echo sprintf( wp_kses( __( 'Having issues with the plugin? Please be sure to check out our <a href="%s" target="_blank">knowledge-base</a> before you contact <a href="%s" target="_blank">our support</a>!', 'fbomatic-facebook-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( '//coderevolution.ro/knowledge-base' ), esc_url_raw('//coderevolution.ro/support' ) );?></li> <li><?php echo sprintf( wp_kses( __( 'Do you enjoy our plugin? Please give it a <a href="%s" target="_blank">rating</a> on CodeCanyon, or check <a href="%s" target="_blank">our website</a> for other cool plugins.', 'fbomatic-facebook-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( '//codecanyon.net/downloads' ), esc_url_raw( 'https://coderevolution.ro' ) );?></a></li> <li><br/><br/><span class="cr_color_red"><?php echo esc_html__("Are you looking for a cool new theme that best fits this plugin?", 'fbomatic-facebook-post-generator');?></span> <a onclick="revealRec()" class="cr_cursor_pointer"><?php echo esc_html__("Click here for our theme related recommendation", 'fbomatic-facebook-post-generator');?></a>. <br/><span id="diviIdrec"></span> </li> </ul> </h3> <hr/> <div class="hideInfo"> <h2><b><span class="cr_color_red"><?php echo esc_html__("Info: You have to create a Facebook App before filling the following details (if you do not have one). Please click", 'fbomatic-facebook-post-generator');?> <a href="https://developers.facebook.com/apps" target="_blank"><?php echo esc_html__("here", 'fbomatic-facebook-post-generator');?></a><?php echo esc_html__(" to create a new Facebook App.", 'fbomatic-facebook-post-generator');?></span></b></h2> </div> <table class="widefat"> <tr> <td colspan="2"><span class="cr_blue"><b><?php echo esc_html__("Facebook requires app review if you wish to import content from any Facebook page. You will need to request and get approved the 'Page Public Content Access' permission from Facebook.", 'fbomatic-facebook-post-generator');echo sprintf( wp_kses( __( ' For more info about the review process, please check: <a href="%s" target="_blank">%s</a>.', 'fbomatic-facebook-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( 'https://developers.facebook.com/docs/apps/review' ), esc_url_raw( 'https://developers.facebook.com/docs/apps/review' ) );?><br/><br/><?php echo sprintf( wp_kses( __( 'If you wish to import content from any Facebook group that you are administrator of, please check <a href="%s" target="_blank">this tutorial video</a>.', 'fbomatic-facebook-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( 'https://www.youtube.com/watch?v=3J1UHXiAQmU' ) );?></b></span></td> </tr> <tr> <td colspan="2"> <hr/> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo sprintf( wp_kses( __( "Insert your Facebook App ID. Learn how to get one <a href='%s' target='_blank'>here</a>.", 'fbomatic-facebook-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw('https://developers.facebook.com/docs/apps/register') ); ?> </div> </div> <b><?php echo esc_html__("Facebook App ID:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="number" min="0" step="1" id="app_id" name="fbomatic_Main_Settings[app_id]" value="<?php echo esc_html($app_id); ?>" placeholder="<?php echo esc_html__("Please insert your Facebook App ID", 'fbomatic-facebook-post-generator');?>" class="cr_width_full"> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo sprintf( wp_kses( __( "Insert your Facebook App Secret. Learn how to get one <a href='%s' target='_blank'>here</a>.", 'fbomatic-facebook-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw('https://developers.facebook.com/docs/apps/register') ); ?> </div> </div> <b><?php echo esc_html__("Facebook App Secret:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="password" autocomplete="off" id="app_secret" name="fbomatic_Main_Settings[app_secret]" value="<?php echo esc_html($app_secret); ?>" placeholder="<?php echo esc_html__("Please insert your Facebook App Secret", 'fbomatic-facebook-post-generator');?>"> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo sprintf( wp_kses( __( "Insert your Facebook Access Token. This is optional. Insert one only if you want to post from a age or country restricted page. Learn how to get one <a href='%s' target='_blank'>here</a>.", 'fbomatic-facebook-post-generator' ), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( 'https://developers.facebook.com/docs/facebook-login/access-tokens' ) ); ?> </div> </div> <b><?php echo esc_html__("Facebook Access Token (Optional):", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="password" autocomplete="off" name="fbomatic_Main_Settings[access_token]" value="<?php echo esc_html($access_token); ?>" placeholder="<?php echo esc_html__("Please insert your Facebook Access Token", 'fbomatic-facebook-post-generator');?>"> </div> </td> </tr> <tr> <td colspan="2"> <hr/> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo sprintf( wp_kses( __( "Insert your Facebook App ID what you wish to use to publish to Facebook only. If you leave this field blank, the above credentials will be used. Learn how to get one <a href='%s' target='_blank'>here</a>.", 'fbomatic-facebook-post-generator' ), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( 'https://developers.facebook.com/docs/apps/register' ) ); ?> </div> </div> <b><?php echo esc_html__("Secondary Facebook App ID (for Publishing to Facebook Only - Optional):", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="number" min="0" step="1" id="app_id2" name="fbomatic_Main_Settings[app_id2]" value="<?php echo esc_html($app_id2); ?>" placeholder="<?php echo esc_html__("Please insert your Facebook App ID", 'fbomatic-facebook-post-generator');?>" class="cr_width_full"> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo sprintf( wp_kses( __( "Insert your Facebook App Secret what you wish to use to publish to Facebook only. If you leave this field blank, the above credentials will be used. Learn how to get one <a href='%s' target='_blank'>here</a>.", 'fbomatic-facebook-post-generator' ), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( 'https://developers.facebook.com/docs/apps/register' ) ); ?> </div> </div> <b><?php echo esc_html__("Secondary Facebook App Secret (for Publishing to Facebook Only - Optional):", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="password" autocomplete="off" id="app_secret2" name="fbomatic_Main_Settings[app_secret2]" value="<?php echo esc_html($app_secret2); ?>" placeholder="<?php echo esc_html__("Please insert your Facebook App Secret", 'fbomatic-facebook-post-generator');?>"> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo sprintf( wp_kses( __( "Insert your Facebook Access Token what you wish to use to publish to Facebook only. If you leave this field blank, the above credentials will be used. This is optional. Insert one only if you want to post from a age or country restricted page. Learn how to get one <a href='%s' target='_blank'>here</a>.", 'fbomatic-facebook-post-generator' ), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( 'https://developers.facebook.com/docs/facebook-login/access-tokens' ) ); ?> </div> </div> <b><?php echo esc_html__("Secondary Facebook Access Token (for Publishing to Facebook Only - Optional):", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="password" autocomplete="off" name="fbomatic_Main_Settings[access_token2]" value="<?php echo esc_html($access_token2); ?>" placeholder="<?php echo esc_html__("Please insert your Facebook Access Token", 'fbomatic-facebook-post-generator');?>"> </div> </td> </tr> <tr> <td></td> <td><input type="submit" name="btnSubmitApp" id="btnSubmitApp" class="button button-primary" onclick="unsaved = false;" value="Save App Info"/> </td> </tr> <tr> <td> <hr/> </td> <td> <hr/> </td> </tr> <tr> <td> <h3><?php echo esc_html__("After you entered the App ID and Secret, you can start creating rules:", 'fbomatic-facebook-post-generator');?></h3> </td> </tr> <tr> <td><a name="newest" href="admin.php?page=fbomatic_items_panel">- Facebook -> <?php echo esc_html__("Blog Posts", 'fbomatic-facebook-post-generator');?> -</a></td> <td> (-> Facebook) <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Posts will be generated from the latest entries in Facebook public groups or pages. Note that private Facebook profiles are not supported and no posts will be generated from them (Facebook restriction).", 'fbomatic-facebook-post-generator'); ?> </div> </div> </td> </tr> <tr> <td><a name="user" href="admin.php?page=fbomatic_facebook_panel">- <?php echo esc_html__("Blog Posts", 'fbomatic-facebook-post-generator');?> -> Facebook -</a></td> <td> (<?php echo esc_html__("using latest published posts from your blog", 'fbomatic-facebook-post-generator');?>) <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Facebook posts will be generated from the latest published blog posts. Posts will be posted by the Facebook user associated with the App ID entered.", 'fbomatic-facebook-post-generator'); ?> </div> </div> </td> </tr> <tr> <td> <hr/> </td> <td> <hr/> </td> </tr> <tr> <td> <h3><?php echo esc_html__("Plugin Options:", 'fbomatic-facebook-post-generator');?></h3> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo sprintf( wp_kses( __( "Input the value of the c_user cookie. To learn how to get it, please click <a href='%s' target='_blank'>here</a>.", 'fbomatic-facebook-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( "http://coderevolution.ro/knowledge-base/faq/how-to-get-cookie-values-for-the-fbomatic-plugin/" )); ?> </div> </div> <b><?php echo esc_html__("c_user Cookie Value (Global):", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="text" id="cuser_cookie" placeholder="<?php echo esc_html__("Cookie value", 'fbomatic-facebook-post-generator');?>" name="fbomatic_Main_Settings[cuser_cookie]" value="<?php echo esc_html($cuser_cookie); ?>"/> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo sprintf( wp_kses( __( "Input the value of the xs cookie. To learn how to get it, please click <a href='%s' target='_blank'>here</a>.", 'fbomatic-facebook-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( "http://coderevolution.ro/knowledge-base/faq/how-to-get-cookie-values-for-the-fbomatic-plugin/" )); ?> </div> </div> <b><?php echo esc_html__("xs Cookie Value (Global):", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="password" autocomplete="off" id="xs_cookie" placeholder="<?php echo esc_html__("Cookie value", 'fbomatic-facebook-post-generator');?>" name="fbomatic_Main_Settings[xs_cookie]" value="<?php echo esc_html($xs_cookie); ?>"/> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Set the Facebook API version to use with the plugin. Default is 3.3.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Facebook API Version To Use:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <select id="api_version" name="fbomatic_Main_Settings[api_version]" class="cr_width_full"> <option value="default"<?php if ($api_version == "default") { echo " selected"; } ?>><?php echo esc_html__("Default", 'fbomatic-facebook-post-generator');?></option> <option value="20.0"<?php if ($api_version == "20.0") { echo " selected"; } ?>>20.0</option> <option value="21.0"<?php if ($api_version == "21.0") { echo " selected"; } ?>>21.0</option> <option value="22.0"<?php if ($api_version == "22.0") { echo " selected"; } ?>>22.0</option> <option value="23.0"<?php if ($api_version == "23.0") { echo " selected"; } ?>>23.0</option> <option value="24.0"<?php if ($api_version == "24.0") { echo " selected"; } ?>>24.0</option> <option value="25.0"<?php if ($api_version == "25.0") { echo " selected"; } ?>>25.0</option> </select> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Select this option if you are submitting your Facebook app for review and want to allow reviewers to check on the plugin's functionality.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Enable App Review Mode:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="checkbox" id="app_review_mode" name="fbomatic_Main_Settings[app_review_mode]"<?php if ($app_review_mode == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Choose if you want to skip checking for duplicate posts when publishing new posts (check this if you have 10000+ posts on your blog and you are experiencing slowdows when the plugin is running. If you check this, duplicate posts will be posted! So use it only when it is necesarry.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Do Not Check For Duplicate Posts:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="checkbox" id="do_not_check_duplicates" name="fbomatic_Main_Settings[do_not_check_duplicates]"<?php if ($do_not_check_duplicates == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Check this to force the plugin not check generated posts in rule settings. Improves performance if you have 100k posts generated using this plugin.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Do Not Check Generated Posts In Rule Settings:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="no_check" name="fbomatic_Main_Settings[no_check]"<?php if ($no_check == 'on') echo ' checked '; ?>> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Choose if you want to limit queried post count to maximum import value for the respective rule. This will decrease the time required for rule running, but will increase the chance that you will miss some posts from publishing.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Limit Returned Posts Count To Maximum Import Value Per Rule:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="checkbox" id="limit_max_posts" name="fbomatic_Main_Settings[limit_max_posts]"<?php if ($limit_max_posts == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Choose if you want to show an extended information metabox under every plugin generated post.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Show Extended Item Information Metabox in Post:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="enable_metabox" name="fbomatic_Main_Settings[enable_metabox]"<?php if ($enable_metabox == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo sprintf( wp_kses( __( "If you wish to use the official version of the Google Translator API for translation, you must enter first a Google API Key. Get one <a href='%s' target='_blank'>here</a>. Please enable the 'Cloud Translation API' in <a href='%s' target='_blank'>Google Cloud Console</a>. Translation will work even without even without entering an API key here, but in this case, an unofficial Google Translate API will be used.", 'fbomatic-facebook-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( 'https://console.cloud.google.com/apis/credentials' ), esc_url_raw( 'https://console.cloud.google.com/marketplace/browse?q=translate' ) ); ?> </div> </div> <b><a href="https://console.cloud.google.com/apis/credentials" target="_blank"><?php echo esc_html__("Google Translator API Key (Optional)", 'fbomatic-facebook-post-generator');?>:</a></b> </div> </td> <td> <div> <input type="password" autocomplete="off" id="google_trans_auth" placeholder="<?php echo esc_html__("API Key (optional)", 'fbomatic-facebook-post-generator');?>" name="fbomatic_Main_Settings[google_trans_auth]" value="<?php echo esc_html($google_trans_auth); ?>"/> </div> </td> </tr> <tr><td> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Check this to disable additional content created by the plugin for the backend of the site.", 'rss-feed-from-any-site'); ?> </div> </div> <b><?php echo esc_html__("Disable Additional Back-End Content:", 'rss-feed-from-any-site');?></b> </td><td> <input type="checkbox" id="disable_backend_content" name="fbomatic_Main_Settings[disable_backend_content]"<?php if ($disable_backend_content == 'on') echo ' checked '; ?>> </div> </td></tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Add a time period between the plugin will run importing at a schedule. To disable this feature, leave this field blank. This works based on your current server timezone and time. Your current server time is: ", 'fbomatic-facebook-post-generator') . date("h:i A"); ?> </div> </div> <b><?php echo esc_html__("Automatically Run Rules Only Between These Hour Periods Each Day:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="time" id="run_after" name="fbomatic_Main_Settings[run_after]" value="<?php echo esc_html($run_after);?>" placeholder="<?php echo esc_html__("Run Rules Only After This Hour", 'fbomatic-facebook-post-generator');?>"> - <input type="time" id="run_before" name="fbomatic_Main_Settings[run_before]" value="<?php echo esc_html($run_before);?>" placeholder="<?php echo esc_html__("Run Rules Only Before This Hour", 'fbomatic-facebook-post-generator');?>"> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Do you want to enable logging for rules?", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Enable Logging for Rules:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="enable_logging" name="fbomatic_Main_Settings[enable_logging]" onclick="mainChanged()"<?php if ($enable_logging == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div class="hideLog"> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Do you want to enable detailed logging for rules? Note that this will dramatically increase the size of the log this plugin generates.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Enable Detailed Logging for Rules:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div class="hideLog"> <input type="checkbox" id="enable_detailed_logging" name="fbomatic_Main_Settings[enable_detailed_logging]"<?php if ($enable_detailed_logging == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div class="hideLog"> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Choose if you want to automatically clear logs after a period of time.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Automatically Clear Logs After:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div class="hideLog"> <select id="auto_clear_logs" name="fbomatic_Main_Settings[auto_clear_logs]" > <option value="No"<?php if ($auto_clear_logs == "No") { echo " selected"; } ?>><?php echo esc_html__("Disabled", 'fbomatic-facebook-post-generator');?></option> <option value="monthly"<?php if ($auto_clear_logs == "monthly") { echo " selected"; } ?>><?php echo esc_html__("Once a month", 'fbomatic-facebook-post-generator');?></option> <option value="weekly"<?php if ($auto_clear_logs == "weekly") { echo " selected"; } ?>><?php echo esc_html__("Once a week", 'fbomatic-facebook-post-generator');?></option> <option value="daily"<?php if ($auto_clear_logs == "daily") { echo " selected"; } ?>><?php echo esc_html__("Once a day", 'fbomatic-facebook-post-generator');?></option> <option value="twicedaily"<?php if ($auto_clear_logs == "twicedaily") { echo " selected"; } ?>><?php echo esc_html__("Twice a day", 'fbomatic-facebook-post-generator');?></option> <option value="hourly"<?php if ($auto_clear_logs == "hourly") { echo " selected"; } ?>><?php echo esc_html__("Once an hour", 'fbomatic-facebook-post-generator');?></option> </select> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Choose if you want to disable automatic loading of Facebook related scripts in your pages. If you are using this plugin to just automatically publish your posts, you can check this checkbox.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Disabled Loading of Facebook Related Scripts:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="disable_scripts" name="fbomatic_Main_Settings[disable_scripts]"<?php if ($disable_scripts == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Set the timeout (in seconds) for every rule running. I recommend that you leave this field at it's default value (3600).", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Timeout for Rule Running (seconds):", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="number" id="rule_timeout" step="1" min="0" class="cr_width_full" placeholder="<?php echo esc_html__("Input rule timeout in seconds", 'fbomatic-facebook-post-generator');?>" name="fbomatic_Main_Settings[rule_timeout]" value="<?php echo esc_html($rule_timeout); ?>"/> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo sprintf( wp_kses( __( "Please input the desired date format to be used for shortcodes that output a date (in 'Generated Post Content' rule settings). More info about this, <a href='%s' target='_blank'>here</a>. Example: Y-m-d H:i:s", 'fbomatic-facebook-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( "https://php.net/manual/en/function.date.php" )); ?> </div> </div> <b><?php echo esc_html__("Date Format For Shortcodes:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="text" id="date_format" placeholder="<?php echo esc_html__("Example: Y-m-d H:i:s", 'fbomatic-facebook-post-generator');?>" name="fbomatic_Main_Settings[date_format]" value="<?php echo esc_html($date_format); ?>"/> </div> </td> </tr> <tr> <td> <div class="timeo"> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Input the default username to use when no user name found. If you leave this blank, 'Administrator' will be used.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Default User Name (If None Found):", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div class="timeo"> <input type="text" id="default_user" placeholder="<?php echo esc_html__("Input a default user name", 'fbomatic-facebook-post-generator');?>" name="fbomatic_Main_Settings[default_user]" value="<?php echo esc_html($default_user); ?>"> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("If you want to use a custom string for the 'Post Source' meta data assigned to posts, please input it here. If you will leave this blank, the default 'Post Source' value will be assigned to posts.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Custom 'Post Source' Post Meta Data:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="text" id="post_source_custom" placeholder="<?php echo esc_html__("Input a custom post source string", 'fbomatic-facebook-post-generator');?>" name="fbomatic_Main_Settings[post_source_custom]" value="<?php echo esc_html($post_source_custom);?>"/> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("If you want to use a proxy to crawl webpages, input it's address here. Required format: IP Address/URL:port", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Web Proxy Address:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="text" id="proxy_url" placeholder="<?php echo esc_html__("Input web proxy url", 'fbomatic-facebook-post-generator');?>" name="fbomatic_Main_Settings[proxy_url]" value="<?php echo esc_html($proxy_url);?>"/> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("If you want to use a proxy to crawl webpages, and it requires authentication, input it's authentication details here. Required format: username:password", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Web Proxy Authentication:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="text" id="proxy_auth" placeholder="<?php echo esc_html__("Input web proxy auth", 'fbomatic-facebook-post-generator');?>" name="fbomatic_Main_Settings[proxy_auth]" value="<?php echo esc_html($proxy_auth);?>"/> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Choose if you want to receive a summary of the rule running in an email.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Send Rule Running Summary in Email:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="send_email" name="fbomatic_Main_Settings[send_email]" onchange="mainChanged()"<?php if ($send_email == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div class="hideMail"> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Input the email adress where you want to send the report. You can input more email addresses, separated by commas.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Email Address:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div class="hideMail"> <input type="text" id="email_address" placeholder="<?php echo esc_html__("Input a valid email adress", 'fbomatic-facebook-post-generator');?>" name="fbomatic_Main_Settings[email_address]" value="<?php echo esc_html($email_address); ?>"> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Define a custom comma separated list of custom post types from your WordPress installation, that will be used for each Facebook post type. The order of specifying post types must be: link, status, photo, video, event, offer. This will overwrite the 'Item Type' settings field from importing rule settings. To disable this feature, leave this field blank.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Default WordPress Post Types For Facebook Post Types:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="text" name="fbomatic_Main_Settings[default_types_fb]" value="<?php echo esc_html($default_types_fb); ?>" placeholder="<?php echo esc_html__("Please insert a list of custom post types", 'fbomatic-facebook-post-generator');?>"> </div> </td> </tr> <tr> <td> <hr/> </td> <td> <hr/> </td> </tr> <tr> <td> <h3><?php echo esc_html__("Posting Restrictions:", 'fbomatic-facebook-post-generator');?></h3> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Set the minimum word count for post titles. Items that have less than this count will not be published. To disable this feature, leave this field blank.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Minimum Title Word Count (Skip Post Otherwise):", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="number" id="min_word_title" step="1" class="cr_width_full" placeholder="<?php echo esc_html__("Input the minimum word count for the title", 'fbomatic-facebook-post-generator');?>" min="0" name="fbomatic_Main_Settings[min_word_title]" value="<?php echo esc_html($min_word_title); ?>"/> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Set the maximum word count for post titles. Items that have more than this count will not be published. To disable this feature, leave this field blank.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Maximum Title Word Count (Skip Post Otherwise):", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="number" id="max_word_title" step="1" class="cr_width_full" min="0" placeholder="<?php echo esc_html__("Input the maximum word count for the title", 'fbomatic-facebook-post-generator');?>" name="fbomatic_Main_Settings[max_word_title]" value="<?php echo esc_html($max_word_title); ?>"/> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Set the minimum word count for post content. Items that have less than this count will not be published. To disable this feature, leave this field blank.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Minimum Content Word Count (Skip Post Otherwise):", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="number" id="min_word_content" class="cr_width_full" step="1" min="0" placeholder="<?php echo esc_html__("Input the minimum word count for the content", 'fbomatic-facebook-post-generator');?>" name="fbomatic_Main_Settings[min_word_content]" value="<?php echo esc_html($min_word_content); ?>"/> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Set the maximum word count for post content. Items that have more than this count will not be published. To disable this feature, leave this field blank.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Maximum Content Word Count (Skip Post Otherwise):", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="number" id="max_word_content" class="cr_width_full" step="1" min="0" placeholder="<?php echo esc_html__("Input the maximum word count for the content", 'fbomatic-facebook-post-generator');?>" name="fbomatic_Main_Settings[max_word_content]" value="<?php echo esc_html($max_word_content); ?>"/> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Do not include posts that's title or content contains at least one of these words. Separate words by comma. To disable this feature, leave this field blank. This is a global settings, and applies to all importing rules.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Banned Words List:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <textarea rows="1" name="fbomatic_Main_Settings[banned_words]" placeholder="<?php echo esc_html__("Do not generate posts that contain at least one of these words", 'fbomatic-facebook-post-generator');?>"><?php echo esc_textarea($banned_words); ?></textarea> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Do not include posts that's title or content does not contain at least one of these words. Separate words by comma. To disable this feature, leave this field blank. This is a global settings, and applies to all importing rules.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Required Words List:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <textarea rows="1" name="fbomatic_Main_Settings[required_words]" placeholder="<?php echo esc_html__("Do not generate posts unless they contain all of these words", 'fbomatic-facebook-post-generator');?>"><?php echo esc_textarea($required_words); ?></textarea> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Choose if you want to skip posts that have duplicate titles.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Do Not Import Duplicate Title Posts:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="no_duplicate" name="fbomatic_Main_Settings[no_duplicate]"<?php if ($no_duplicate == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Choose if you want to skip posts that do not have images.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Skip Posts That Do Not Have Images:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="skip_no_img" name="fbomatic_Main_Settings[skip_no_img]"<?php if ($skip_no_img == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo sprintf( wp_kses( __( "Skip these Facebook post types when inserting blog posts. Valid values are: link, status, photo, video, event, offer. Separate multiple entries by comma. Ex: 'status, offer, link'. To disable this feature, leave this textfield blank. For more info about Facebook post types, check plugin documentation. This is a global option (applies to all rules).", 'fbomatic-facebook-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) )); ?> </div> </div> <b><?php echo esc_html__("Facebook Post Types to Skip:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="text" name="fbomatic_Main_Settings[skip_types]" value="<?php echo esc_html($skip_types); ?>" placeholder="<?php echo esc_html__("Please insert the Facebook post types to skip", 'fbomatic-facebook-post-generator');?>"> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Choose if you want to skip posts that are older than a selected date.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Skip Posts Older Than a Selected Date:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="skip_old" name="fbomatic_Main_Settings[skip_old]" onchange="mainChanged()"<?php if ($skip_old == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div class='hideOld'> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Select the date prior which you want to skip posts.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Select the Date for Old Posts:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div class='hideOld'> <?php echo esc_html__("Day:", 'fbomatic-facebook-post-generator');?> <select class="cr_width_80" name="fbomatic_Main_Settings[skip_day]" > <option value='01'<?php if ($skip_day == '01') echo ' selected'; ?>>01</option> <option value='02'<?php if ($skip_day == '02') echo ' selected'; ?>>02</option> <option value='03'<?php if ($skip_day == '03') echo ' selected'; ?>>03</option> <option value='04'<?php if ($skip_day == '04') echo ' selected'; ?>>04</option> <option value='05'<?php if ($skip_day == '05') echo ' selected'; ?>>05</option> <option value='06'<?php if ($skip_day == '06') echo ' selected'; ?>>06</option> <option value='07'<?php if ($skip_day == '07') echo ' selected'; ?>>07</option> <option value='08'<?php if ($skip_day == '08') echo ' selected'; ?>>08</option> <option value='09'<?php if ($skip_day == '09') echo ' selected'; ?>>09</option> <option value='10'<?php if ($skip_day == '10') echo ' selected'; ?>>10</option> <option value='11'<?php if ($skip_day == '11') echo ' selected'; ?>>11</option> <option value='12'<?php if ($skip_day == '12') echo ' selected'; ?>>12</option> <option value='13'<?php if ($skip_day == '13') echo ' selected'; ?>>13</option> <option value='14'<?php if ($skip_day == '14') echo ' selected'; ?>>14</option> <option value='15'<?php if ($skip_day == '15') echo ' selected'; ?>>15</option> <option value='16'<?php if ($skip_day == '16') echo ' selected'; ?>>16</option> <option value='17'<?php if ($skip_day == '17') echo ' selected'; ?>>17</option> <option value='18'<?php if ($skip_day == '18') echo ' selected'; ?>>18</option> <option value='19'<?php if ($skip_day == '19') echo ' selected'; ?>>19</option> <option value='20'<?php if ($skip_day == '20') echo ' selected'; ?>>20</option> <option value='21'<?php if ($skip_day == '21') echo ' selected'; ?>>21</option> <option value='22'<?php if ($skip_day == '22') echo ' selected'; ?>>22</option> <option value='23'<?php if ($skip_day == '23') echo ' selected'; ?>>23</option> <option value='24'<?php if ($skip_day == '24') echo ' selected'; ?>>24</option> <option value='25'<?php if ($skip_day == '25') echo ' selected'; ?>>25</option> <option value='26'<?php if ($skip_day == '26') echo ' selected'; ?>>26</option> <option value='27'<?php if ($skip_day == '27') echo ' selected'; ?>>27</option> <option value='28'<?php if ($skip_day == '28') echo ' selected'; ?>>28</option> <option value='29'<?php if ($skip_day == '29') echo ' selected'; ?>>29</option> <option value='30'<?php if ($skip_day == '30') echo ' selected'; ?>>30</option> <option value='31'<?php if ($skip_day == '31') echo ' selected'; ?>>31</option> </select> <?php echo esc_html__("Month:", 'fbomatic-facebook-post-generator');?> <select class="cr_width_80" name="fbomatic_Main_Settings[skip_month]" > <option value='01'<?php if ($skip_month == '01') echo ' selected'; ?>><?php echo esc_html__("January", 'fbomatic-facebook-post-generator');?></option> <option value='02'<?php if ($skip_month == '02') echo ' selected'; ?>><?php echo esc_html__("February", 'fbomatic-facebook-post-generator');?></option> <option value='03'<?php if ($skip_month == '03') echo ' selected'; ?>><?php echo esc_html__("March", 'fbomatic-facebook-post-generator');?></option> <option value='04'<?php if ($skip_month == '04') echo ' selected'; ?>><?php echo esc_html__("April", 'fbomatic-facebook-post-generator');?></option> <option value='05'<?php if ($skip_month == '05') echo ' selected'; ?>><?php echo esc_html__("May", 'fbomatic-facebook-post-generator');?></option> <option value='06'<?php if ($skip_month == '06') echo ' selected'; ?>><?php echo esc_html__("June", 'fbomatic-facebook-post-generator');?></option> <option value='07'<?php if ($skip_month == '07') echo ' selected'; ?>><?php echo esc_html__("July", 'fbomatic-facebook-post-generator');?></option> <option value='08'<?php if ($skip_month == '08') echo ' selected'; ?>><?php echo esc_html__("August", 'fbomatic-facebook-post-generator');?></option> <option value='09'<?php if ($skip_month == '09') echo ' selected'; ?>><?php echo esc_html__("September", 'fbomatic-facebook-post-generator');?></option> <option value='10'<?php if ($skip_month == '10') echo ' selected'; ?>><?php echo esc_html__("October", 'fbomatic-facebook-post-generator');?></option> <option value='11'<?php if ($skip_month == '11') echo ' selected'; ?>><?php echo esc_html__("November", 'fbomatic-facebook-post-generator');?></option> <option value='12'<?php if ($skip_month == '12') echo ' selected'; ?>><?php echo esc_html__("December", 'fbomatic-facebook-post-generator');?></option> </select> <?php echo esc_html__("Year:", 'fbomatic-facebook-post-generator');?><input class="cr_width_70" value="<?php echo esc_html($skip_year); ?>" placeholder="<?php echo esc_html__("year", 'fbomatic-facebook-post-generator');?>" name="fbomatic_Main_Settings[skip_year]" type="text" pattern="^\d{4}$"> </div> </td> </tr> <tr> <td> <hr/> </td> <td> <hr/> </td> </tr> <tr> <td> <h3><?php echo esc_html__("Facebook Pixel Code Inclusion:", 'fbomatic-facebook-post-generator');?></h3> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo sprintf( wp_kses( __( "Insert your Facebook Pixel code. To learn how to get one please click <a href='%s' target='_blank'>here</a>.", 'fbomatic-facebook-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( "https://www.facebook.com/business/help/952192354843755" )); ?> </div> </div> <b><?php echo esc_html__("Facebook Pixel Code:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <textarea rows="4" cols="70" name="fbomatic_Main_Settings[fbomatic_pixel]" placeholder="<?php echo esc_html__("Please insert your Facebook Pixel code", 'fbomatic-facebook-post-generator');?>"><?php echo esc_textarea($fbomatic_pixel); ?></textarea> </div> </td> </tr> <tr> <td> <hr/> </td> <td> <hr/> </td> </tr> <tr> <td> <h3><?php echo esc_html__("Post Featured Image Options:", 'fbomatic-facebook-post-generator');?></h3> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Click this option if your want to save images found in post content locally. Note that this option may be heavy on your hosting free space.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Copy Images From Content Locally:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="copy_images" name="fbomatic_Main_Settings[copy_images]"<?php if ($copy_images == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Click this option if your want to set the featured image from the remote image location. This settings can save disk space, but beware that if the remote image gets deleted, your featured image will also be broken.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Do Not Copy Featured Image Locally:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="no_local_image" name="fbomatic_Main_Settings[no_local_image]"<?php if ($no_local_image == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Select if you don't want to create a featured image for posts that contain Facebook videos.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Do Not Create Featured Image For Video Posts:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="no_video_img" name="fbomatic_Main_Settings[no_video_img]"<?php if ($no_video_img == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Choose if you want to strip featured image from the generated post content.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Strip Featured Image From Generated Post Content:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="strip_featured_image" name="fbomatic_Main_Settings[strip_featured_image]"<?php if ($strip_featured_image == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Resize the image that was assigned to be the featured image to the width specified in this text field (in pixels). If you want to disable this feature, leave this field blank.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Featured Image Resize Width:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="number" min="1" class="cr_width_full" step="1" name="fbomatic_Main_Settings[resize_width]" value="<?php echo esc_html($resize_width);?>" placeholder="<?php echo esc_html__("Please insert the desired width for featured images", 'fbomatic-facebook-post-generator');?>"> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Resize the image that was assigned to be the featured image to the height specified in this text field (in pixels). If you want to disable this feature, leave this field blank.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Featured Image Resize Height:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="number" min="1" class="cr_width_full" step="1" name="fbomatic_Main_Settings[resize_height]" value="<?php echo esc_html($resize_height);?>" placeholder="<?php echo esc_html__("Please insert the desired height for featured images", 'fbomatic-facebook-post-generator');?>"> </div> </td> </tr> <tr> <td> <hr/> </td> <td> <hr/> </td> </tr> <tr> <td> <h3><?php echo esc_html__("Post Content Options:", 'fbomatic-facebook-post-generator');?></h3> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Select if you want to link generated post titles to source articles. This option will be overwritten if you set it also from rule settings.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Link Generated Post Titles To Source Articles:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="link_source" name="fbomatic_Main_Settings[link_source]"<?php if ($link_source == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Choose if you don't want to link images from posts back to Facebook.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Do Not Link Images From Posts To Facebook:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="no_img_link" name="fbomatic_Main_Settings[no_img_link]"<?php if ($no_img_link == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Choose if you don't want to add links to link type posts.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Do Not Add Links To Imported Link Type Posts:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="no_link" name="fbomatic_Main_Settings[no_link]"<?php if ($no_link == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Choose if you don't want to link hashtags from posts back to Facebook.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Do Not Link Hashtags From Posts To Facebook:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="no_hash_link" name="fbomatic_Main_Settings[no_hash_link]"<?php if ($no_hash_link == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Choose if you want to strip links from the generated post content.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Strip Links From Generated Post Content:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="strip_links" name="fbomatic_Main_Settings[strip_links]"<?php if ($strip_links == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Set the maximum word count that will be assigned to automatically generated post titles. If you leave this field blank, the default word count for titles will be 14.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Auto Generated Post Title Max Word Count:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="number" id="max_title_words" step="1" min="1" class="cr_width_full" placeholder="<?php echo esc_html__("Max title word count", 'fbomatic-facebook-post-generator');?>" min="0" name="fbomatic_Main_Settings[max_title_words]" value="<?php echo esc_html($max_title_words); ?>"/> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Set the preferred splitting character for titles. If you leave this field blank, the full title will be used when creating titles. You can use multiple splitting characters, each on a new line.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Preferred Title Splitting Character:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="text" id="splitting_char" class="cr_width_full" placeholder="<?php echo esc_html__("Splitting character", 'fbomatic-facebook-post-generator');?>" min="0" name="fbomatic_Main_Settings[splitting_char]" value="<?php echo esc_html($splitting_char); ?>"/> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Do you want to try to fix html tags that were incorrectly grabbed from source?", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Try To Fix Html Tags:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="fix_html" name="fbomatic_Main_Settings[fix_html]"<?php if ($fix_html == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("If you see question marks (?) in the imported content in place of special characters, please enable this feature.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Do Not Convert Content Encoding:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="no_utf" name="fbomatic_Main_Settings[no_utf]"<?php if ($no_utf == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("If you wish to assign tags to specific posts that contain a keyword, specify in this settings field a rule, like this: keyword1 => tag1, keyword2 => tag2. If the post contains keyword1", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("When Keyword Found Add Tags To Generated Posts:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <textarea rows="3" cols="70" name="fbomatic_Main_Settings[keyword_tag]" placeholder="<?php echo esc_html__("keyword => tag, keyword2 => tag2", 'fbomatic-facebook-post-generator');?>"><?php echo esc_textarea($keyword_tag); ?></textarea> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Strip HTML elements from final content that have this IDs. You can insert more IDs, separeted by comma. To disable this feature, leave this field blank.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Strip HTML Elements from Final Content by ID:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <textarea rows="3" cols="70" name="fbomatic_Main_Settings[strip_by_id]" placeholder="<?php echo esc_html__("Ids list", 'fbomatic-facebook-post-generator');?>"><?php echo esc_textarea($strip_by_id); ?></textarea> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Strip HTML elements from final content that have this class. You can insert more classes, separeted by comma. To disable this feature, leave this field blank.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Strip HTML Elements from Final Content by Class:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <textarea rows="3" cols="70" name="fbomatic_Main_Settings[strip_by_class]" placeholder="<?php echo esc_html__("Class list", 'fbomatic-facebook-post-generator');?>"><?php echo esc_textarea($strip_by_class); ?></textarea> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Choose if you want to automatically shorten imported URLs using Bitly URL shortener.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Shorten Imported URLs To WordPress Using Bitly:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="links_hide_google" name="fbomatic_Main_Settings[links_hide_google]" onclick="mainChanged()"<?php if ($links_hide_google == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo sprintf( wp_kses( __( "Insert your Bitly API generic access token. To register at Bitly, please visit <a href='%s' target='_blank'>this link</a>. To get a generic access token, please click the menu icon on the top right of the web (after you log in) -> click the '>' sign next to your account name -> click the 'Generic Access Token' menu entry -> enter your password in the 'Password' field and click 'Generate Token'. Copy the resulting token here. To lean more about this, please check <a href='%s' target='_blank'>this video</a>.", 'fbomatic-facebook-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( 'https://bitly.com/a/sign_up?utm_content=site-free-button&utm_source=organic&utm_medium=website&utm_campaign=null&utm_cta=site-free-button' ), esc_url_raw('//www.youtube.com/watch?v=vBfaNbS4xbs') ); ?> </div> </div> <b><?php echo esc_html__("Shorten Exported URLs To Facebook Using Bitly:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="links_hide_google2" name="fbomatic_Main_Settings[links_hide_google2]" onclick="mainChanged()"<?php if ($links_hide_google2 == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div class="hideGoogl"> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo sprintf( wp_kses( __( "Insert your Bitly API generic access token. To register at Bitly, please visit <a href='%s' target='_blank'>this link</a>. To get a generic access token, please click the menu icon on the top right of the web (after you log in) -> click the '>' sign next to your account name -> click the 'Generic Access Token' menu entry -> enter your password in the 'Password' field and click 'Generate Token'. Copy the resulting token here. To lean more about this, please check <a href='%s' target='_blank'>this video</a>.", 'fbomatic-facebook-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( 'https://bitly.com/a/sign_up?utm_content=site-free-button&utm_source=organic&utm_medium=website&utm_campaign=null&utm_cta=site-free-button' ), esc_url_raw('//www.youtube.com/watch?v=vBfaNbS4xbs') ); ?> </div> </div> <b><?php echo esc_html__("Bitly API Generic Access Token:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div class="hideGoogl"> <input type="password" name="fbomatic_Main_Settings[gapiKey]" value="<?php echo esc_html($gapiKey);?>" placeholder="<?php echo esc_html__("Please insert your Bitly API Generic Access Token", 'fbomatic-facebook-post-generator');?>"> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo sprintf( wp_kses( __( "Choose if you want to shorten URLs with safelinkconverter.com link shortener. To lean more about this, please visit <a href='%s' target='_blank'>this link</a>.", 'fbomatic-facebook-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( 'https://safelinkconverter.com/' ) ); ?> </div> </div> <b><?php echo esc_html__("Shorten Imported URLs to WordPress Using SafeLinkConverter:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="links_hide" name="fbomatic_Main_Settings[links_hide]" onclick="mainChanged()"<?php if ($links_hide == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div class="hideGoo"> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo sprintf( wp_kses( __( "Insert your SafeLinkConverter user ID. To lean more about this, please visit <a href='%s' target='_blank'>this link</a>.", 'fbomatic-facebook-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( 'https://safelinkconverter.com/' ) ); ?> </div> </div> <b><?php echo esc_html__("SafeLinkConverter User ID:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div class="hideGoo"> <input type="number" min="0" step="1" class="cr_width_full" name="fbomatic_Main_Settings[apiKey]" value="<?php echo esc_html($apiKey);?>" placeholder="<?php echo esc_html__("Please insert your SafeLinkConverter API Generic Access Token", 'fbomatic-facebook-post-generator');?>"> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Do you want to automatically translate generated content using Google Translate?", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Automatically Translate Content To:", 'fbomatic-facebook-post-generator');?></b><br/><b><?php echo esc_html__("Info:", 'fbomatic-facebook-post-generator');?></b> <?php echo esc_html__("for translation, the plugin also supports WPML.", 'fbomatic-facebook-post-generator');?> <b><a href="https://wpml.org/?aid=238195&affiliate_key=ix3LsFyq0xKz" target="_blank"><?php echo esc_html__("Get WPML now!", 'fbomatic-facebook-post-generator');?></a></b> </div> </td> <td> <div> <select id="translate" name="fbomatic_Main_Settings[translate]" > <?php $i = 0; foreach ($language_names as $lang) { echo '<option value="' . esc_html($language_codes[$i]) . '"'; if ($translate == $language_codes[$i]) { echo ' selected'; } echo '>' . esc_html($language_names[$i]) . '</option>'; $i++; } ?> </select> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Select the source language of the article to be translated.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Source Article Language:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <select id="translate_source" name="fbomatic_Main_Settings[translate_source]" > <?php $i = 0; foreach ($language_names as $lang) { echo '<option value="' . esc_html($language_codes[$i]) . '"'; if ($translate_source == $language_codes[$i]) { echo ' selected'; } echo '>' . esc_html($language_names[$i]) . '</option>'; $i++; } ?> </select> </div> </td> </tr> <tr> <td> <div id="bestspin"> <p><?php echo esc_html__("Don't have an 'The Best Spinner' account yet? Click here to get one:", 'fbomatic-facebook-post-generator');?> <b><a href="https://paykstrt.com/10313/38910" target="_blank"><?php echo esc_html__("get a new account now!", 'fbomatic-facebook-post-generator');?></a></b></p> </div> <div id="wordai"> <p><?php echo esc_html__("Don't have an 'WordAI' account yet? Click here to get one:", 'fbomatic-facebook-post-generator');?> <b><a href="https://wordai.com/?ref=h17f4" target="_blank"><?php echo esc_html__("get a new account now!", 'fbomatic-facebook-post-generator');?></a></b></p> </div> <div id="spinrewriter"> <p><?php echo esc_html__("Don't have an 'SpinRewriter' account yet? Click here to get one:", 'fbomatic-facebook-post-generator');?> <b><a href="https://www.spinrewriter.com/?ref=24b18" target="_blank"><?php echo esc_html__("get a new account now!", 'fbomatic-facebook-post-generator');?></a></b></p> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Do you want to randomize text by changing words of a text with synonyms using one of the listed methods? Note that this is an experimental feature and can in some instances drastically increase the rule running time!", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Spin Text Using Word Synonyms (for automatically generated posts only):", 'fbomatic-facebook-post-generator');?></b> </td> <td> <select id="spin_text" name="fbomatic_Main_Settings[spin_text]" onchange="mainChanged()"> <option value="disabled" <?php if ($spin_text == 'disabled') { echo ' selected'; } ?> ><?php echo esc_html__("Disabled", 'fbomatic-facebook-post-generator');?></option> <option value="wordai" <?php if($spin_text == 'wordai') { echo ' selected'; } ?> >Wordai - <?php echo esc_html__("High Quality - Paid", 'fbomatic-facebook-post-generator');?></option> <option value="spinrewriter" <?php if($spin_text == 'spinrewriter') { echo ' selected'; } ?> >SpinRewriter - <?php echo esc_html__("High Quality - Paid", 'fbomatic-facebook-post-generator');?></option> <option value="builtin" <?php if ($spin_text == 'builtin') { echo ' selected'; } ?> ><?php echo esc_html__("Built-in - Medium Quality - Free", 'fbomatic-facebook-post-generator');?></option> </select> </div> </td> </tr> <tr> <td> <div class="hideBest"> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Insert your user name on premium spinner service.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Premium Spinner Service User Name/Email:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div class="hideBest"> <input type="text" name="fbomatic_Main_Settings[best_user]" value="<?php echo esc_html($best_user); ?>" placeholder="<?php echo esc_html__("Please insert your premium text spinner service user name", 'fbomatic-facebook-post-generator');?>"> </div> </td> </tr> <tr> <td> <div class="hideBest"> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Insert your password for the selected premium spinner service.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Premium Spinner Service Password/API Key:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div class="hideBest"> <input type="password" autocomplete="off" name="fbomatic_Main_Settings[best_password]" value="<?php echo esc_html($best_password); ?>" placeholder="<?php echo esc_html__("Please insert your premium text spinner service password", 'fbomatic-facebook-post-generator');?>"> </div> </td> </tr> <tr> <td colspan="2"> <h3><?php echo esc_html__("PhantomJS Settings:", 'fbomatic-facebook-post-generator');?></h3> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Choose if you want to use phantomjs to generate the screenshot for the page, using the %%item_show_screenshot%% and %%item_screenshot_url%% shortcodes.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Use PhantomJs to Generate Screenshots (%%item_show_screenshot%%):", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="phantom_screen" name="fbomatic_Main_Settings[phantom_screen]"<?php if ($phantom_screen == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Choose if you want to use Puppeteer to generate the screenshot for the page, using the %%item_show_screenshot%% and %%item_screenshot_url%% shortcodes.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Use Puppeteer to Generate Screenshots (%%item_show_screenshot%%):", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="puppeteer_screen" name="fbomatic_Main_Settings[puppeteer_screen]"<?php if ($puppeteer_screen == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo sprintf( wp_kses( __( "Set the path on your local server of the phantomjs executable. If you leave this field blank, the default 'phantomjs' call will be used. <a href='%s' target='_blank'>How to install PhantomJs?</a>", 'fbomatic-facebook-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( "//coderevolution.ro/knowledge-base/faq/how-to-install-phantomjs/" )); ?> </div> </div> <b><?php echo esc_html__("PhantomJS Path On Server:", 'fbomatic-facebook-post-generator');?></b> <?php if($phantom_path != '') { $phantom = fbomatic_testPhantom(); if($phantom === 0) { echo '<br/><span class="cr_red12"><b>' . esc_html__('INFO: PhantomJS not found - please install it on your server or configure the path to it in plugin\'s \'Main Settings\'!', 'fbomatic-facebook-post-generator') . '</b> <a href=\'//coderevolution.ro/knowledge-base/faq/how-to-install-phantomjs/\' target=\'_blank\'>' . esc_html__('How to install PhantomJs?', 'fbomatic-facebook-post-generator') . '</a></span>'; } elseif($phantom === -1) { echo '<br/><span class="cr_red12"><b>' . esc_html__('INFO: PhantomJS cannot run - shell exec is not enabled on your server. Please enable it and retry using this feature of the plugin.', 'fbomatic-facebook-post-generator') . '</b></span>'; } elseif($phantom === -2) { echo '<br/><span class="cr_red12"><b>' . esc_html__('INFO: PhantomJS cannot run - shell exec is not allowed to run on your server (in disable_functions list in php.ini). Please enable it and retry using this feature of the plugin.', 'fbomatic-facebook-post-generator') . '</b></span>'; } elseif($phantom === 1) { echo '<br/><span class="cr_green12"><b>' . esc_html__('INFO: PhantomJS OK', 'fbomatic-facebook-post-generator') . '</b></span>'; } } ?> </div> </td> <td> <div> <input type="text" id="phantom_path" placeholder="<?php echo esc_html__("Path to phantomjs", 'fbomatic-facebook-post-generator');?>" name="fbomatic_Main_Settings[phantom_path]" value="<?php echo esc_html($phantom_path);?>"/> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Input the width of the screenshot that will be generated for crawled pages. This will affect the content generated by the %%item_show_screenshot%% shortcode. The default is 600.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Page Screenshot Width:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="text" id="screenshot_width" name="fbomatic_Main_Settings[screenshot_width]" value="<?php echo esc_html($screenshot_width);?>" placeholder="<?php echo esc_html__("600", 'fbomatic-facebook-post-generator');?>"> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Input the height of the screenshot that will be generated for crawled pages. This will affect the content generated by the %%item_show_screenshot%% shortcode. The default is 450.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Page Screenshot Height:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="text" id="screenshot_height" name="fbomatic_Main_Settings[screenshot_height]" value="<?php echo esc_html($screenshot_height);?>" placeholder="<?php echo esc_html__("450", 'fbomatic-facebook-post-generator');?>"> </div> </td> </tr> <tr> <td> <hr/> </td> <td> <hr/> </td> </tr> <tr> <td> <h3><?php echo esc_html__("Open Graph Meta Tags Options:", 'fbomatic-facebook-post-generator');?></h3> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo sprintf( wp_kses( __( "Facebook added a 'Link Ownership' feature, to prevent fake news spreading. To comply with this, please input a list of Facebook page IDs, where you should automatically post. You can input a comma separated list of multiple IDs. For more info, please check <a href='%s' target='_blank'>this link</a>.", 'fbomatic-facebook-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( 'https://web.socialnewsdesk.com/facebook/how-to-claim-link-ownership-on-facebook-a-publishers-guide/' ) ); ?> </div> </div> <b><?php echo esc_html__("Facebook Page IDs (Link Ownership Verification):", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div> <input type="text" id="page_ids" name="fbomatic_Main_Settings[page_ids]" value="<?php echo esc_html($page_ids);?>" placeholder="<?php echo esc_html__("List of page IDs", 'fbomatic-facebook-post-generator');?>"> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Choose if you want to add Open Graph meta tags to your generated pages (this feature will improve page sharing experience on Facebook).", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Enable Open Graph Meta Tags in Generated Pages:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <input type="checkbox" id="enable_og" name="fbomatic_Main_Settings[enable_og]" onChange="mainChanged()"<?php if ($enable_og == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div class="hideOG"> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Choose the image URL you want to use when no image found for the article.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Open Graph Default Image:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div class="hideOG"> <input type="url" id="default_image_og" name="fbomatic_Main_Settings[default_image_og]" value="<?php echo esc_html($default_image_og);?>" placeholder="<?php echo esc_html__("Input a default image URL", 'fbomatic-facebook-post-generator');?>"> </div> </td> </tr> <tr> <td> <div class="hideOG"> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Input the App ID you want to use for your OG meta tag generation.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Input Your Facebook App ID For OG Tag:", 'fbomatic-facebook-post-generator');?></b> </div> </td> <td> <div class="hideOG"> <input type="text" id="app_id_og" name="fbomatic_Main_Settings[app_id_og]" value="<?php echo esc_html($app_id_og);?>" placeholder="<?php echo esc_html__("Input your Facebook App ID", 'fbomatic-facebook-post-generator');?>"> </div> </td> </tr> <tr> <td> <hr/> </td> <td> <hr/> </td> </tr> <tr> <td> <h3><?php echo esc_html__("Random Sentence Generator Settings:", 'fbomatic-facebook-post-generator');?></h3> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Insert some sentences from which you want to get one at random. You can also use variables defined below. %something ==> is a variable. Each sentence must be separated by a new line.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("First List of Possible Sentences (%%random_sentence%%):", 'fbomatic-facebook-post-generator');?></b> </td> <td> <textarea rows="8" cols="70" name="fbomatic_Main_Settings[sentence_list]" placeholder="<?php echo esc_html__("Please insert the first list of sentences", 'fbomatic-facebook-post-generator');?>"><?php echo esc_textarea($sentence_list); ?></textarea> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Insert some sentences from which you want to get one at random. You can also use variables defined below. %something ==> is a variable. Each sentence must be separated by a new line.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Second List of Possible Sentences (%%random_sentence2%%):", 'fbomatic-facebook-post-generator');?></b> </td> <td> <textarea rows="8" cols="70" name="fbomatic_Main_Settings[sentence_list2]" placeholder="<?php echo esc_html__("Please insert the second list of sentences", 'fbomatic-facebook-post-generator');?>"><?php echo esc_textarea($sentence_list2); ?></textarea> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Insert some variables you wish to be exchanged for different instances of one sentence. Please format this list as follows:<br/> Variablename => Variables (seperated by semicolon)<br/>Example:<br/>adjective => clever;interesting;smart;huge;astonishing;unbelievable;nice;adorable;beautiful;elegant;fancy;glamorous;magnificent;helpful;awesome<br/>", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("List of Possible Variables:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <textarea rows="8" cols="70" name="fbomatic_Main_Settings[variable_list]" placeholder="<?php echo esc_html__("Please insert the list of variables", 'fbomatic-facebook-post-generator');?>"><?php echo esc_textarea($variable_list); ?></textarea> </div></td> </tr> <tr> <td> <hr/> </td> <td> <hr/> </td> </tr> <tr> <td> <h3><?php echo esc_html__("Custom HTML Code/ Ad Code:", 'fbomatic-facebook-post-generator');?></h3> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Insert a custom HTML code that will replace the %%custom_html%% variable. This can be anything, even an Ad code.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Custom HTML Code #1:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <textarea rows="3" cols="70" name="fbomatic_Main_Settings[custom_html]" placeholder="<?php echo esc_html__("Custom HTML #1", 'fbomatic-facebook-post-generator');?>"><?php echo esc_textarea($custom_html); ?></textarea> </div> </td> </tr> <tr> <td> <div> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Insert a custom HTML code that will replace the %%custom_html2%% variable. This can be anything, even an Ad code.", 'fbomatic-facebook-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Custom HTML Code #2:", 'fbomatic-facebook-post-generator');?></b> </td> <td> <textarea rows="3" cols="70" name="fbomatic_Main_Settings[custom_html2]" placeholder="<?php echo esc_html__("Custom HTML #2", 'fbomatic-facebook-post-generator');?>"><?php echo esc_textarea($custom_html2); ?></textarea> </div> </td> </tr> </table> <hr/> <h3><?php echo esc_html__("Affiliate Keyword Replacer Tool Settings:", 'fbomatic-facebook-post-generator');?></h3> <div class="table-responsive"> <table class="responsive table cr_main_table"> <thead> <tr> <th> <?php echo esc_html__("ID", 'fbomatic-facebook-post-generator');?> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("This is the ID of the rule.", 'fbomatic-facebook-post-generator'); ?> </div> </div> </th> <th class="cr_max_width_40"> <?php echo esc_html__("Del", 'fbomatic-facebook-post-generator');?> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Do you want to delete this rule?", 'fbomatic-facebook-post-generator'); ?> </div> </div> </th> <th> <?php echo esc_html__("Search Keyword", 'fbomatic-facebook-post-generator');?> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("This keyword will be replaced with a link you define.", 'fbomatic-facebook-post-generator'); ?> </div> </div> </th> <th> <?php echo esc_html__("Replacement Keyword", 'fbomatic-facebook-post-generator');?> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("This keyword will replace the search keyword you define. Leave this field blank if you only want to add an URL to the specified keyword.", 'fbomatic-facebook-post-generator'); ?> </div> </div> </th> <th> <?php echo esc_html__("Link to Add", 'fbomatic-facebook-post-generator');?> <div class="bws_help_box bws_help_box_right dashicons dashicons-editor-help cr_align_middle"> <div class="bws_hidden_help_text cr_min_260px"> <?php echo esc_html__("Define the link you want to appear the defined keyword. Leave this field blank if you only want to replace the specified keyword without linking from it.", 'fbomatic-facebook-post-generator'); ?> </div> </div> </th> </tr> <tr> <td> <hr/> </td> <td> <hr/> </td> <td> <hr/> </td> <td> <hr/> </td> <td> <hr/> </td> </tr> </thead> <tbody> <?php echo fbomatic_expand_keyword_rules(); ?> <tr> <td> <hr/> </td> <td> <hr/> </td> <td> <hr/> </td> <td> <hr/> </td> <td> <hr/> </td> </tr> <tr> <td class="cr_short_td">-</td> <td class="cr_shrt_td2"><span class="cr_gray20">X</span></td> <td class="cr_rule_line"><input type="text" name="fbomatic_keyword_list[keyword][]" placeholder="<?php echo esc_html__("Please insert the keyword to be replaced", 'fbomatic-facebook-post-generator');?>" value="" class="cr_width_100" /></td> <td class="cr_rule_line"><input type="text" name="fbomatic_keyword_list[replace][]" placeholder="<?php echo esc_html__("Please insert the keyword to replace the search keyword", 'fbomatic-facebook-post-generator');?>" value="" class="cr_width_100" /></td> <td class="cr_rule_line"><input type="url" validator="url" name="fbomatic_keyword_list[link][]" placeholder="<?php echo esc_html__("Please insert the link to be added to the keyword", 'fbomatic-facebook-post-generator');?>" value="" class="cr_width_100" /> </tr> </tbody> </table> </div> </td></tr> </table> </div> </div> </div> <hr/> <p> <?php echo esc_html__("Available shortcodes (and also Gutenberg blocks):", 'fbomatic-facebook-post-generator');?> <strong>[fbomatic-list-posts]</strong> <?php echo esc_html__("to include a list that contains only posts imported by this plugin, and", 'fbomatic-facebook-post-generator');?> <strong>[fbomatic-display-posts]</strong> <?php echo esc_html__("to include a WordPress like post listing. Usage:", 'fbomatic-facebook-post-generator');?> [fbomatic-display-posts type='any/post/page/...' title_color='#ffffff' excerpt_color='#ffffff' read_more_text="Read More" link_to_source='yes' order='ASC/DESC' orderby='title/ID/author/name/date/rand/comment_count' title_font_size='19px', excerpt_font_size='19px' posts_per_page=number_of_posts_to_show category='posts_category' ruleid='ID_of_fbomatic_rule']. <br/><?php echo esc_html__("Example:", 'fbomatic-facebook-post-generator');?> <b>[fbomatic-list-posts type='any' order='ASC' orderby='date' posts_per_page=50 category= '' ruleid='0']</b> <br/><?php echo esc_html__("Example 2:", 'fbomatic-facebook-post-generator');?> <b>[fbomatic-display-posts include_excerpt='true' image_size='thumbnail' wrapper='div']</b>. </p> <div><p class="crsubmit"><input type="submit" name="btnSubmit" id="btnSubmit" class="button button-primary" onclick="unsaved = false;" value="<?php echo esc_html__("Save Settings", 'fbomatic-facebook-post-generator');?>"/></p></div> </form> <p> <?php echo esc_html__("Available shortcode:", 'fbomatic-facebook-post-generator');?> <strong>[fb-video-fbomatic]</strong> <?php echo esc_html__("to include a facebook video. Usage:", 'fbomatic-facebook-post-generator');?> [fb-video-fbomatic v="video ID or URL" width="width of the video(optional)"] </p> </div> <?php } if (isset($_POST['fbomatic_keyword_list'])) { add_action('admin_init', 'fbomatic_save_keyword_rules'); } function fbomatic_save_keyword_rules($data2) { $data2 = $_POST['fbomatic_keyword_list']; $rules = array(); if (isset($data2['keyword'][0])) { for ($i = 0; $i < sizeof($data2['keyword']); ++$i) { if (isset($data2['keyword'][$i]) && $data2['keyword'][$i] != '') { $index = trim(sanitize_text_field($data2['keyword'][$i])); $rules[$index] = array( trim(sanitize_text_field($data2['link'][$i])), trim(sanitize_text_field($data2['replace'][$i])) ); } } } update_option('fbomatic_keyword_list', $rules); } function fbomatic_expand_keyword_rules() { $rules = get_option('fbomatic_keyword_list'); if(!is_array($rules)) { $rules = array(); } $output = ''; $cont = 0; if (!empty($rules)) { foreach ($rules as $request => $value) { $output .= '<tr> <td class="cr_short_td">' . esc_html($cont) . '</td> <td class="cr_shrt_td2"><span class="wpfbomatic-delete">X</span></td> <td class="cr_rule_line"><input type="text" placeholder="' . esc_html__('Input the keyword to be replaced. This field is required', 'fbomatic-facebook-post-generator') . '" name="fbomatic_keyword_list[keyword][]" value="' . esc_html(stripslashes($request)) . '" required class="cr_width_100"></td> <td class="cr_rule_line"><input type="text" placeholder="' . esc_html__('Input the replacement word', 'fbomatic-facebook-post-generator') . '" name="fbomatic_keyword_list[replace][]" value="' . esc_html(stripslashes($value[1])) . '" class="cr_width_100"></td> <td class="cr_rule_line"><input type="url" validator="url" placeholder="' . esc_html__('Input the URL to be added', 'fbomatic-facebook-post-generator') . '" name="fbomatic_keyword_list[link][]" value="' . esc_html(stripslashes($value[0])) . '" class="cr_width_100"></td> </tr>'; $cont++; } } return $output; } ?>
Save File
Cancel