← Back
Editing: twitomatic-main.php
<?php function twitomatic_admin_settings() { $language_names = array( esc_html__("Disabled", 'twitomatic-twitter-post-generator'), esc_html__("Afrikaans (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Albanian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Arabic (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Amharic (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Armenian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Belarusian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Bulgarian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Catalan (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Chinese Simplified (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Croatian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Czech (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Danish (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Dutch (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("English (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Estonian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Filipino (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Finnish (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("French (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Galician (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("German (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Greek (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Hebrew (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Hindi (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Hungarian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Icelandic (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Indonesian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Irish (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Italian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Japanese (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Korean (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Latvian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Lithuanian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Norwegian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Macedonian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Malay (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Maltese (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Persian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Polish (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Portuguese (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Romanian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Russian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Serbian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Slovak (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Slovenian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Spanish (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Swahili (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Swedish (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Thai (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Turkish (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Ukrainian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Vietnamese (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Welsh (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Yiddish (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Tamil (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Azerbaijani (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Kannada (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Basque (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Bengali (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Latin (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Chinese Traditional (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Esperanto (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Georgian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Telugu (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Gujarati (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Haitian Creole (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Urdu (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Burmese (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Bosnian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Cebuano (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Chichewa (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Corsican (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Frisian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Scottish Gaelic (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Hausa (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Hawaian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Hmong (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Igbo (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Javanese (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Kazakh (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Khmer (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Kurdish (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Kyrgyz (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Lao (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Luxembourgish (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Malagasy (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Malayalam (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Maori (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Marathi (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Mongolian (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Nepali (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Pashto (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Punjabi (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Samoan (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Sesotho (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Shona (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Sindhi (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Sinhala (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Somali (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Sundanese (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Swahili (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Tajik (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Uzbek (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Xhosa (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Yoruba (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Zulu (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Assammese (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Aymara (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Bambara (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Bhojpuri (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Dhivehi (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Dogri (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Ewe (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Guarani (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Ilocano (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Kinyarwanda (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Konkani (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Krio (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Kurdish - Sorani (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Lingala (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Luganda (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Maithili (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Meiteilon (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Mizo (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Odia (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Oromo (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Quechua (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Sanskrit (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Sepedi (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Tatar (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Tigrinya (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Tsonga (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Turkmen (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Twi (Google Translate)", 'twitomatic-twitter-post-generator'), esc_html__("Uyghur (Google Translate)", 'twitomatic-twitter-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('twitomatic_option_group'); do_settings_sections('twitomatic_option_group'); $twitomatic_Main_Settings = get_option('twitomatic_Main_Settings', false); if (isset($twitomatic_Main_Settings['twitomatic_enabled'])) { $twitomatic_enabled = $twitomatic_Main_Settings['twitomatic_enabled']; } else { $twitomatic_enabled = ''; } if (isset($twitomatic_Main_Settings['enable_metabox'])) { $enable_metabox = $twitomatic_Main_Settings['enable_metabox']; } else { $enable_metabox = ''; } if (isset($twitomatic_Main_Settings['sentence_list'])) { $sentence_list = $twitomatic_Main_Settings['sentence_list']; } else { $sentence_list = ''; } if (isset($twitomatic_Main_Settings['sentence_list2'])) { $sentence_list2 = $twitomatic_Main_Settings['sentence_list2']; } else { $sentence_list2 = ''; } if (isset($twitomatic_Main_Settings['variable_list'])) { $variable_list = $twitomatic_Main_Settings['variable_list']; } else { $variable_list = ''; } if (isset($twitomatic_Main_Settings['enable_detailed_logging'])) { $enable_detailed_logging = $twitomatic_Main_Settings['enable_detailed_logging']; } else { $enable_detailed_logging = ''; } if (isset($twitomatic_Main_Settings['enable_logging'])) { $enable_logging = $twitomatic_Main_Settings['enable_logging']; } else { $enable_logging = ''; } if (isset($twitomatic_Main_Settings['auto_clear_logs'])) { $auto_clear_logs = $twitomatic_Main_Settings['auto_clear_logs']; } else { $auto_clear_logs = ''; } if (isset($twitomatic_Main_Settings['rule_timeout'])) { $rule_timeout = $twitomatic_Main_Settings['rule_timeout']; } else { $rule_timeout = ''; } if (isset($twitomatic_Main_Settings['disable_scripts'])) { $disable_scripts = $twitomatic_Main_Settings['disable_scripts']; } else { $disable_scripts = ''; } if (isset($twitomatic_Main_Settings['strip_links'])) { $strip_links = $twitomatic_Main_Settings['strip_links']; } else { $strip_links = ''; } if (isset($twitomatic_Main_Settings['strip_emojis'])) { $strip_emojis = $twitomatic_Main_Settings['strip_emojis']; } else { $strip_emojis = ''; } if (isset($twitomatic_Main_Settings['send_email'])) { $send_email = $twitomatic_Main_Settings['send_email']; } else { $send_email = ''; } if (isset($twitomatic_Main_Settings['email_address'])) { $email_address = $twitomatic_Main_Settings['email_address']; } else { $email_address = ''; } if (isset($twitomatic_Main_Settings['run_after'])) { $run_after = $twitomatic_Main_Settings['run_after']; } else { $run_after = ''; } if (isset($twitomatic_Main_Settings['run_before'])) { $run_before = $twitomatic_Main_Settings['run_before']; } else { $run_before = ''; } if (isset($twitomatic_Main_Settings['translate'])) { $translate = $twitomatic_Main_Settings['translate']; } else { $translate = ''; } if (isset($twitomatic_Main_Settings['translate_source'])) { $translate_source = $twitomatic_Main_Settings['translate_source']; } else { $translate_source = ''; } if (isset($twitomatic_Main_Settings['spin_text'])) { $spin_text = $twitomatic_Main_Settings['spin_text']; } else { $spin_text = ''; } if (isset($twitomatic_Main_Settings['google_trans_auth'])) { $google_trans_auth = $twitomatic_Main_Settings['google_trans_auth']; } else { $google_trans_auth = ''; } if (isset($twitomatic_Main_Settings['best_user'])) { $best_user = $twitomatic_Main_Settings['best_user']; } else { $best_user = ''; } if (isset($twitomatic_Main_Settings['best_password'])) { $best_password = $twitomatic_Main_Settings['best_password']; } else { $best_password = ''; } if (isset($twitomatic_Main_Settings['phantom_path'])) { $phantom_path = $twitomatic_Main_Settings['phantom_path']; } else { $phantom_path = ''; } if (isset($twitomatic_Main_Settings['screenshot_width'])) { $screenshot_width = $twitomatic_Main_Settings['screenshot_width']; } else { $screenshot_width = ''; } if (isset($twitomatic_Main_Settings['screenshot_height'])) { $screenshot_height = $twitomatic_Main_Settings['screenshot_height']; } else { $screenshot_height = ''; } if (isset($twitomatic_Main_Settings['phantom_screen'])) { $phantom_screen = $twitomatic_Main_Settings['phantom_screen']; } else { $phantom_screen = ''; } if (isset($twitomatic_Main_Settings['puppeteer_screen'])) { $puppeteer_screen = $twitomatic_Main_Settings['puppeteer_screen']; } else { $puppeteer_screen = ''; } if (isset($twitomatic_Main_Settings['min_word_title'])) { $min_word_title = $twitomatic_Main_Settings['min_word_title']; } else { $min_word_title = ''; } if (isset($twitomatic_Main_Settings['max_word_title'])) { $max_word_title = $twitomatic_Main_Settings['max_word_title']; } else { $max_word_title = ''; } if (isset($twitomatic_Main_Settings['min_word_content'])) { $min_word_content = $twitomatic_Main_Settings['min_word_content']; } else { $min_word_content = ''; } if (isset($twitomatic_Main_Settings['max_word_content'])) { $max_word_content = $twitomatic_Main_Settings['max_word_content']; } else { $max_word_content = ''; } if (isset($twitomatic_Main_Settings['required_words'])) { $required_words = $twitomatic_Main_Settings['required_words']; } else { $required_words = ''; } if (isset($twitomatic_Main_Settings['banned_words'])) { $banned_words = $twitomatic_Main_Settings['banned_words']; } else { $banned_words = ''; } if (isset($twitomatic_Main_Settings['skip_old'])) { $skip_old = $twitomatic_Main_Settings['skip_old']; } else { $skip_old = ''; } if (isset($twitomatic_Main_Settings['skip_day'])) { $skip_day = $twitomatic_Main_Settings['skip_day']; } else { $skip_day = ''; } if (isset($twitomatic_Main_Settings['skip_month'])) { $skip_month = $twitomatic_Main_Settings['skip_month']; } else { $skip_month = ''; } if (isset($twitomatic_Main_Settings['skip_year'])) { $skip_year = $twitomatic_Main_Settings['skip_year']; } else { $skip_year = ''; } if (isset($twitomatic_Main_Settings['custom_html2'])) { $custom_html2 = $twitomatic_Main_Settings['custom_html2']; } else { $custom_html2 = ''; } if (isset($twitomatic_Main_Settings['custom_html'])) { $custom_html = $twitomatic_Main_Settings['custom_html']; } else { $custom_html = ''; } if (isset($twitomatic_Main_Settings['skip_no_img'])) { $skip_no_img = $twitomatic_Main_Settings['skip_no_img']; } else { $skip_no_img = ''; } if (isset($twitomatic_Main_Settings['skip_no_media'])) { $skip_no_media = $twitomatic_Main_Settings['skip_no_media']; } else { $skip_no_media = ''; } if (isset($twitomatic_Main_Settings['strip_by_id'])) { $strip_by_id = $twitomatic_Main_Settings['strip_by_id']; } else { $strip_by_id = ''; } if (isset($twitomatic_Main_Settings['strip_by_class'])) { $strip_by_class = $twitomatic_Main_Settings['strip_by_class']; } else { $strip_by_class = ''; } if (isset($twitomatic_Main_Settings['app_id'])) { $app_id = $twitomatic_Main_Settings['app_id']; } else { $app_id = ''; } if (isset($twitomatic_Main_Settings['app_secret'])) { $app_secret = $twitomatic_Main_Settings['app_secret']; } else { $app_secret = ''; } if (isset($twitomatic_Main_Settings['enable_og'])) { $enable_og = $twitomatic_Main_Settings['enable_og']; } else { $enable_og = ''; } if (isset($twitomatic_Main_Settings['draft_first'])) { $draft_first = $twitomatic_Main_Settings['draft_first']; } else { $draft_first = ''; } if (isset($twitomatic_Main_Settings['new_token'])) { $new_token = $twitomatic_Main_Settings['new_token']; } else { $new_token = ''; } if (isset($twitomatic_Main_Settings['api_ver'])) { $api_ver = $twitomatic_Main_Settings['api_ver']; } else { $api_ver = ''; } if (isset($twitomatic_Main_Settings['access_token'])) { $access_token = $twitomatic_Main_Settings['access_token']; } else { $access_token = ''; } if (isset($twitomatic_Main_Settings['access_token_secret'])) { $access_token_secret = $twitomatic_Main_Settings['access_token_secret']; } else { $access_token_secret = ''; } if (isset($twitomatic_Main_Settings['links_hide'])) { $links_hide = $twitomatic_Main_Settings['links_hide']; } else { $links_hide = ''; } if (isset($twitomatic_Main_Settings['apiKey'])) { $apiKey = $twitomatic_Main_Settings['apiKey']; } else { $apiKey = ''; } if (isset($twitomatic_Main_Settings['twitter_user'])) { $twitter_user = $twitomatic_Main_Settings['twitter_user']; } else { $twitter_user = ''; } if (isset($twitomatic_Main_Settings['seo_twitter_type'])) { $seo_twitter_type = $twitomatic_Main_Settings['seo_twitter_type']; } else { $seo_twitter_type = ''; } if (isset($twitomatic_Main_Settings['skip_no_vid'])) { $skip_no_vid = $twitomatic_Main_Settings['skip_no_vid']; } else { $skip_no_vid = ''; } if (isset($twitomatic_Main_Settings['resize_width'])) { $resize_width = $twitomatic_Main_Settings['resize_width']; } else { $resize_width = ''; } if (isset($twitomatic_Main_Settings['resize_height'])) { $resize_height = $twitomatic_Main_Settings['resize_height']; } else { $resize_height = ''; } if (isset($twitomatic_Main_Settings['proxy_url'])) { $proxy_url = $twitomatic_Main_Settings['proxy_url']; } else { $proxy_url = ''; } if (isset($twitomatic_Main_Settings['proxy_auth'])) { $proxy_auth = $twitomatic_Main_Settings['proxy_auth']; } else { $proxy_auth = ''; } if (isset($twitomatic_Main_Settings['post_source_custom'])) { $post_source_custom = $twitomatic_Main_Settings['post_source_custom']; } else { $post_source_custom = ''; } if (isset($_GET['settings-updated'])) { ?> <div id="message" class="updated"> <p class="cr_saved_notif"><strong> <?php echo esc_html__('Settings saved.', 'twitomatic-twitter-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!', 'twitomatic-twitter-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!', 'twitomatic-twitter-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="twitomatic_class"> <table class="widefat"> <tr> <td> <h1> <span class="gs-sub-heading"><b>Twitomatic Automatic Post Generator Plugin - <?php echo esc_html__('Main Switch:', 'twitomatic-twitter-post-generator');?></b> </span> <span class="cr_07_font">v2.1 </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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> </h1> </td> <td> <div class="slideThree"> <input class="input-checkbox" type="checkbox" id="twitomatic_enabled" name="twitomatic_Main_Settings[twitomatic_enabled]"<?php if ($twitomatic_enabled == 'on') echo ' checked '; ?>> <label for="twitomatic_enabled"></label> </div> </td> </tr> </table> </div> <div><?php if($twitomatic_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.', 'twitomatic-twitter-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:", 'twitomatic-twitter-post-generator');?></b> </h3> <ul> <li><b><?php echo esc_html__("Item Name:", 'twitomatic-twitter-post-generator');?></b> <?php echo esc_html($uoptions['item_name']);?></li> <li> <b><?php echo esc_html__("Item ID:", 'twitomatic-twitter-post-generator');?></b> <?php echo esc_html($uoptions['item_id']);?> </li> <li> <b><?php echo esc_html__("Created At:", 'twitomatic-twitter-post-generator');?></b> <?php echo esc_html($uoptions['created_at']);?> </li> <li> <b><?php echo esc_html__("Buyer Name:", 'twitomatic-twitter-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", 'twitomatic-twitter-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!", 'twitomatic-twitter-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.', 'twitomatic-twitter-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:", 'twitomatic-twitter-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", 'twitomatic-twitter-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", 'twitomatic-twitter-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>.', 'twitomatic-twitter-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( 'https://www.youtube.com/watch?v=eFp90-dPke0&list=PLEiGTaa0iBIjUPkrI3_in1xGoB4i8gRvG' ) );?> </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>!', 'twitomatic-twitter-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.', 'twitomatic-twitter-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?", 'twitomatic-twitter-post-generator');?></span> <a onclick="revealRec()" class="cr_cursor_pointer"><?php echo esc_html__("Click here for our theme related recommendation", 'twitomatic-twitter-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 Twitter App before filling the following details (if you do not have one). Please click", 'twitomatic-twitter-post-generator');?> <a href="https://developer.twitter.com/en/portal/projects-and-apps" target="_blank">here</a> to create a new Twitter App. You must set the 'Callback URL' as <span class="cr_blue"><?php echo get_site_url() . '/twitomatic_redirect_link';?></span></span></b></h2> </div> <table class="widefat"> <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 Twitter Consumer API Key. Learn how to get one <a href='%s' target='_blank'>here</a>.", 'twitomatic-twitter-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw('https://developer.twitter.com/en/portal/projects-and-apps') ); ?> </div> </div> <b><?php echo esc_html__("Twitter Consumer API Key:", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div> <input type="text" id="app_id" name="twitomatic_Main_Settings[app_id]" value="<?php echo esc_html($app_id); ?>" placeholder="<?php echo esc_html__("Please insert your Twitter App ID", 'twitomatic-twitter-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 Twitter Consumer API Secret. Learn how to get one <a href='%s' target='_blank'>here</a>.", 'twitomatic-twitter-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw('https://developer.twitter.com/en/portal/projects-and-apps') ); ?> </div> </div> <b><?php echo esc_html__("Twitter Consumer API Secret:", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div> <input type="password" autocomplete="off" id="app_secret" name="twitomatic_Main_Settings[app_secret]" value="<?php echo esc_html($app_secret); ?>" placeholder="<?php echo esc_html__("Please insert your Twitter App Secret", 'twitomatic-twitter-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 the Twitter API version you want to use for posting to Twitter.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Twitter API Version to Use:", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div> <select id="api_ver" name="twitomatic_Main_Settings[api_ver]" onchange="apiChanged();"> <option value="v1.1"<?php if ($api_ver == "v1.1") { echo " selected"; } ?>><?php echo esc_html__("v1.1", 'twitomatic-twitter-post-generator');?></option> <option value="v2"<?php if ($api_ver == "v2") { echo " selected"; } ?>><?php echo esc_html__("v2", 'twitomatic-twitter-post-generator');?></option> </select> </div> </td> </tr> <tr class="hidev2"> <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 Twitter Access Token. Learn how to get one <a href='%s' target='_blank'>here</a>.", 'twitomatic-twitter-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw('https://developer.twitter.com/en/portal/projects-and-apps') ); ?> </div> </div> <b><?php echo esc_html__("Twitter Access Token:", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div> <input type="text" id="access_token" name="twitomatic_Main_Settings[access_token]" value="<?php echo esc_html($access_token); ?>" placeholder="<?php echo esc_html__("Please insert your Twitter Access Token", 'twitomatic-twitter-post-generator');?>"> </div> </td> </tr> <tr class="hidev2"> <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 Twitter Access Token Secret. Learn how to get one <a href='%s' target='_blank'>here</a>.", 'twitomatic-twitter-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw('https://developer.twitter.com/en/portal/projects-and-apps') ); ?> </div> </div> <b><?php echo esc_html__("Twitter Access Token Secret:", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div> <input type="password" autocomplete="off" id="access_token_secret" name="twitomatic_Main_Settings[access_token_secret]" value="<?php echo esc_html($access_token_secret); ?>" placeholder="<?php echo esc_html__("Please insert your Twitter Access Token Secret", 'twitomatic-twitter-post-generator');?>"> </div> </td> </tr> <tr class="hidev1"> <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 generate for each rule running a new access_key. This option is fully for debug usage. Unless your rules are failing, do not enable this option.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Generate a New Access Token For Every Rule Running:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <input type="checkbox" id="new_token" name="twitomatic_Main_Settings[new_token]"<?php if ($new_token == 'on') echo ' checked '; ?>> </div> <br/><br/> </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:", 'twitomatic-twitter-post-generator');?></h3> </td> </tr> <tr> <td><a name="newest" href="admin.php?page=twitomatic_items_panel">- Twitter -> <?php echo esc_html__("Blog Posts", 'twitomatic-twitter-post-generator');?> -</a></td> <td> (<?php echo esc_html__("using feeds from Twitter search queries", 'twitomatic-twitter-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__("Posts will be generated from the latest entries in Twitter search queries.", 'twitomatic-twitter-post-generator'); ?> </div> </div> </td> </tr> <tr> <td><a name="user" href="admin.php?page=twitomatic_twitter_panel">- <?php echo esc_html__("Blog Posts", 'twitomatic-twitter-post-generator');?> -> Twitter -</a></td> <td> (<?php echo esc_html__("using latest published posts from your blog", 'twitomatic-twitter-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__("Twitter posts will be generated from the latest published blog posts. Posts will be posted by the Twitter user associated with the App ID entered.", 'twitomatic-twitter-post-generator'); ?> </div> </div> </td> </tr> <tr> <td> <hr/> </td> <td> <hr/> </td> </tr> <tr> <td> <h3><?php echo esc_html__("Plugin Options:", 'twitomatic-twitter-post-generator');?></h3> </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 to make draft posts before they would be fully published. This can help you you use other third party plugins with the automatically published posts.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Draft Posts First, And Publish Them Afterwards:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <input type="checkbox" id="draft_first" name="twitomatic_Main_Settings[draft_first]"<?php if ($draft_first == '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 add Twitter meta tags to your generated pages (this feature will improve page sharing experience on Twitter).", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Enable Twitter Meta Tags in Generated Pages:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <input type="checkbox" id="enable_og" name="twitomatic_Main_Settings[enable_og]" onchange="mainChanged();"<?php if ($enable_og == 'on') echo ' checked '; ?>> </div> </td> </tr> <tr> <td> <div class="hideTw"> <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 Twitter user name for which you want the articles to be atributed in the Twitter meta tags.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Twitter User Name:", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div class="hideTw"> <input type="text" name="twitomatic_Main_Settings[twitter_user]" value="<?php echo esc_html($twitter_user);?>" placeholder="<?php echo esc_html__("Please insert your Twitter user name", 'twitomatic-twitter-post-generator');?>"> </div> </td> </tr> <tr> <td> <div class="hideTw"> <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( __( "You can this option to set the Twitter Card Type that will be used by default for all content. You can find information on Twitter Card Types <a href='%s' target='_blank'>here</a>.", 'twitomatic-twitter-post-generator'), array( 'a' => array( 'href' => array(), 'target' => array() ) ) ), esc_url_raw( 'https://dev.twitter.com/cards/overview' ) ); ?> </div> </div> <b><?php echo esc_html__("Twitter Card Type:", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div class="hideTw"> <select id="seo_twitter_type" name="twitomatic_Main_Settings[seo_twitter_type]" > <option value="summary"<?php if ($seo_twitter_type == "summary") { echo " selected"; } ?>><?php echo esc_html__("Summary Card", 'twitomatic-twitter-post-generator');?></option> <option value="summary_large_image"<?php if ($seo_twitter_type == "summary_large_image") { echo " selected"; } ?>><?php echo esc_html__("Summary Card With Large Image", 'twitomatic-twitter-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 automatically shorten URLs using Bitly URL shortener.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Automatically Shorten URLs:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <input type="checkbox" id="links_hide" name="twitomatic_Main_Settings[links_hide]" onchange="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 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>.", 'twitomatic-twitter-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:", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div class="hideGoo"> <input type="text" name="twitomatic_Main_Settings[apiKey]" value="<?php echo esc_html($apiKey);?>" placeholder="<?php echo esc_html__("Please insert your Bitly API Generic Access Token", 'twitomatic-twitter-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 strip links from the generated post content.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Strip Links From Generated Post Content:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <input type="checkbox" id="strip_links" name="twitomatic_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__("Choose if you want to strip emojis from the generated post title and content.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Strip Emojis From Generated Post Title And Content:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <input type="checkbox" id="strip_emojis" name="twitomatic_Main_Settings[strip_emojis]"<?php if ($strip_emojis == '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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Show Extended Item Information Metabox in Post:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <input type="checkbox" id="enable_metabox" name="twitomatic_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.", 'twitomatic-twitter-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)", 'twitomatic-twitter-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)", 'twitomatic-twitter-post-generator');?>" name="twitomatic_Main_Settings[google_trans_auth]" value="<?php echo esc_html($google_trans_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__("Do you want to enable logging for rules?", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Enable Logging for Rules:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <input type="checkbox" id="enable_logging" name="twitomatic_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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Enable Detailed Logging for Rules:", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div class="hideLog"> <input type="checkbox" id="enable_detailed_logging" name="twitomatic_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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Automatically Clear Logs After:", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div class="hideLog"> <select id="auto_clear_logs" name="twitomatic_Main_Settings[auto_clear_logs]" > <option value="No"<?php if ($auto_clear_logs == "No") { echo " selected"; } ?>><?php echo esc_html__("Disabled", 'twitomatic-twitter-post-generator');?></option> <option value="monthly"<?php if ($auto_clear_logs == "monthly") { echo " selected"; } ?>><?php echo esc_html__("Once a month", 'twitomatic-twitter-post-generator');?></option> <option value="weekly"<?php if ($auto_clear_logs == "weekly") { echo " selected"; } ?>><?php echo esc_html__("Once a week", 'twitomatic-twitter-post-generator');?></option> <option value="daily"<?php if ($auto_clear_logs == "daily") { echo " selected"; } ?>><?php echo esc_html__("Once a day", 'twitomatic-twitter-post-generator');?></option> <option value="twicedaily"<?php if ($auto_clear_logs == "twicedaily") { echo " selected"; } ?>><?php echo esc_html__("Twice a day", 'twitomatic-twitter-post-generator');?></option> <option value="hourly"<?php if ($auto_clear_logs == "hourly") { echo " selected"; } ?>><?php echo esc_html__("Once an hour", 'twitomatic-twitter-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 Twitter related scripts in your pages. If you are using this plugin to just automatically publish your posts, you can check this checkbox.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Disabled Loading of Twitter Related Scripts:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <input type="checkbox" id="disable_scripts" name="twitomatic_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).", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Timeout for Rule Running (seconds):", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div> <input type="number" id="rule_timeout" step="1" min="0" placeholder="<?php echo esc_html__("Input rule timeout in seconds", 'twitomatic-twitter-post-generator');?>" name="twitomatic_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 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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Custom 'Post Source' Post Meta Data:", 'twitomatic-twitter-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", 'twitomatic-twitter-post-generator');?>" name="twitomatic_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", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Web Proxy Address:", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div> <input type="text" id="proxy_url" placeholder="<?php echo esc_html__("Input web proxy url", 'twitomatic-twitter-post-generator');?>" name="twitomatic_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", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Web Proxy Authentication:", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div> <input type="text" id="proxy_auth" placeholder="<?php echo esc_html__("Input web proxy auth", 'twitomatic-twitter-post-generator');?>" name="twitomatic_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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Send Rule Running Summary in Email:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <input type="checkbox" id="send_email" name="twitomatic_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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Email Address:", 'twitomatic-twitter-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", 'twitomatic-twitter-post-generator');?>" name="twitomatic_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__("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: ", 'twitomatic-twitter-post-generator') . date("h:i A"); ?> </div> </div> <b><?php echo esc_html__("Automatically Run Rules Only Between These Hour Periods Each Day:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <input type="time" id="run_after" name="twitomatic_Main_Settings[run_after]" value="<?php echo esc_html($run_after);?>" placeholder="<?php echo esc_html__("Run Rules Only After This Hour", 'twitomatic-twitter-post-generator');?>"> - <input type="time" id="run_before" name="twitomatic_Main_Settings[run_before]" value="<?php echo esc_html($run_before);?>" placeholder="<?php echo esc_html__("Run Rules Only Before This Hour", 'twitomatic-twitter-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__("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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Minimum Title Word Count (Skip Post Otherwise):", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div> <input type="number" id="min_word_title" step="1" placeholder="<?php echo esc_html__("Input the minimum word count for the title", 'twitomatic-twitter-post-generator');?>" min="0" name="twitomatic_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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Maximum Title Word Count (Skip Post Otherwise):", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div> <input type="number" id="max_word_title" step="1" min="0" placeholder="<?php echo esc_html__("Input the maximum word count for the title", 'twitomatic-twitter-post-generator');?>" name="twitomatic_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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Minimum Content Word Count (Skip Post Otherwise):", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div> <input type="number" id="min_word_content" step="1" min="0" placeholder="<?php echo esc_html__("Input the minimum word count for the content", 'twitomatic-twitter-post-generator');?>" name="twitomatic_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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Maximum Content Word Count (Skip Post Otherwise):", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div> <input type="number" id="max_word_content" step="1" min="0" placeholder="<?php echo esc_html__("Input the maximum word count for the content", 'twitomatic-twitter-post-generator');?>" name="twitomatic_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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Banned Words List:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <textarea rows="1" name="twitomatic_Main_Settings[banned_words]" placeholder="<?php echo esc_html__("Do not generate posts that contain at least one of these words", 'twitomatic-twitter-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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Required Words List:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <textarea rows="1" name="twitomatic_Main_Settings[required_words]" placeholder="<?php echo esc_html__("Do not generate posts unless they contain all of these words", 'twitomatic-twitter-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__("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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Featured Image Resize Width:", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div> <input type="number" min="1" step="1" name="twitomatic_Main_Settings[resize_width]" value="<?php echo esc_html($resize_width);?>" placeholder="<?php echo esc_html__("Please insert the desired width for featured images", 'twitomatic-twitter-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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Featured Image Resize Height:", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div> <input type="number" min="1" step="1" name="twitomatic_Main_Settings[resize_height]" value="<?php echo esc_html($resize_height);?>" placeholder="<?php echo esc_html__("Please insert the desired height for featured images", 'twitomatic-twitter-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__("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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Strip HTML Elements from Final Content by ID:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <textarea rows="3" cols="70" name="twitomatic_Main_Settings[strip_by_id]" placeholder="<?php echo esc_html__("Ids list", 'twitomatic-twitter-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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Strip HTML Elements from Final Content by Class:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <textarea rows="3" cols="70" name="twitomatic_Main_Settings[strip_by_class]" placeholder="<?php echo esc_html__("Class list", 'twitomatic-twitter-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 skip posts that do not have images.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Skip Posts That Do Not Have Images:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <input type="checkbox" id="skip_no_img" name="twitomatic_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 esc_html__("Choose if you want to skip posts that do not media attachments.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Skip Posts That Do Not Contain Media Attachments:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <input type="checkbox" id="skip_no_media" name="twitomatic_Main_Settings[skip_no_media]"<?php if ($skip_no_media == '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 videos.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Skip Posts That Do Not Have Videos:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <input type="checkbox" id="skip_no_vid" name="twitomatic_Main_Settings[skip_no_vid]"<?php if ($skip_no_vid == '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 are older than a selected date.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Skip Posts Older Than a Selected Date:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <input type="checkbox" id="skip_old" name="twitomatic_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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Select the Date for Old Posts:", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div class='hideOld'> <?php echo esc_html__("Day:", 'twitomatic-twitter-post-generator');?> <select class="cr_width_80" name="twitomatic_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:", 'twitomatic-twitter-post-generator');?> <select class="cr_width_80" name="twitomatic_Main_Settings[skip_month]" > <option value='01'<?php if ($skip_month == '01') echo ' selected'; ?>><?php echo esc_html__("January", 'twitomatic-twitter-post-generator');?></option> <option value='02'<?php if ($skip_month == '02') echo ' selected'; ?>><?php echo esc_html__("February", 'twitomatic-twitter-post-generator');?></option> <option value='03'<?php if ($skip_month == '03') echo ' selected'; ?>><?php echo esc_html__("March", 'twitomatic-twitter-post-generator');?></option> <option value='04'<?php if ($skip_month == '04') echo ' selected'; ?>><?php echo esc_html__("April", 'twitomatic-twitter-post-generator');?></option> <option value='05'<?php if ($skip_month == '05') echo ' selected'; ?>><?php echo esc_html__("May", 'twitomatic-twitter-post-generator');?></option> <option value='06'<?php if ($skip_month == '06') echo ' selected'; ?>><?php echo esc_html__("June", 'twitomatic-twitter-post-generator');?></option> <option value='07'<?php if ($skip_month == '07') echo ' selected'; ?>><?php echo esc_html__("July", 'twitomatic-twitter-post-generator');?></option> <option value='08'<?php if ($skip_month == '08') echo ' selected'; ?>><?php echo esc_html__("August", 'twitomatic-twitter-post-generator');?></option> <option value='09'<?php if ($skip_month == '09') echo ' selected'; ?>><?php echo esc_html__("September", 'twitomatic-twitter-post-generator');?></option> <option value='10'<?php if ($skip_month == '10') echo ' selected'; ?>><?php echo esc_html__("October", 'twitomatic-twitter-post-generator');?></option> <option value='11'<?php if ($skip_month == '11') echo ' selected'; ?>><?php echo esc_html__("November", 'twitomatic-twitter-post-generator');?></option> <option value='12'<?php if ($skip_month == '12') echo ' selected'; ?>><?php echo esc_html__("December", 'twitomatic-twitter-post-generator');?></option> </select> <?php echo esc_html__("Year:", 'twitomatic-twitter-post-generator');?><input class="cr_width_70" value="<?php echo esc_html($skip_year); ?>" placeholder="<?php echo esc_html__("year", 'twitomatic-twitter-post-generator');?>" name="twitomatic_Main_Settings[skip_year]" type="text" pattern="^\d{4}$"> </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?", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Automatically Translate Content To:", 'twitomatic-twitter-post-generator');?></b><br/><b><?php echo esc_html__("Info:", 'twitomatic-twitter-post-generator');?></b> <?php echo esc_html__("for translation, the plugin also supports WPML.", 'twitomatic-twitter-post-generator');?> <b><a href="https://wpml.org/?aid=238195&affiliate_key=ix3LsFyq0xKz" target="_blank"><?php echo esc_html__("Get WPML now!", 'twitomatic-twitter-post-generator');?></a></b> </div> </td> <td> <div> <select id="translate" name="twitomatic_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 from which you want to translate from.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Source Language:", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div> <select id="translate_source" name="twitomatic_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:", 'twitomatic-twitter-post-generator');?> <b><a href="https://paykstrt.com/10313/38910" target="_blank"><?php echo esc_html__("get a new account now!", 'twitomatic-twitter-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:", 'twitomatic-twitter-post-generator');?> <b><a href="https://wordai.com/?ref=h17f4" target="_blank"><?php echo esc_html__("get a new account now!", 'twitomatic-twitter-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:", 'twitomatic-twitter-post-generator');?> <b><a href="https://www.spinrewriter.com/?ref=24b18" target="_blank"><?php echo esc_html__("get a new account now!", 'twitomatic-twitter-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!", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Spin Text Using Word Synonyms (for automatically generated posts only):", 'twitomatic-twitter-post-generator');?></b> </td> <td> <select id="spin_text" name="twitomatic_Main_Settings[spin_text]" onchange="mainChanged()"> <option value="disabled" <?php if ($spin_text == 'disabled') { echo ' selected'; } ?> ><?php echo esc_html__("Disabled", 'twitomatic-twitter-post-generator');?></option> <option value="wordai" <?php if($spin_text == 'wordai') { echo ' selected'; } ?> >Wordai - <?php echo esc_html__("High Quality - Paid", 'twitomatic-twitter-post-generator');?></option> <option value="spinrewriter" <?php if($spin_text == 'spinrewriter') { echo ' selected'; } ?> >SpinRewriter - <?php echo esc_html__("High Quality - Paid", 'twitomatic-twitter-post-generator');?></option> <option value="builtin" <?php if ($spin_text == 'builtin') { echo ' selected'; } ?> ><?php echo esc_html__("Built-in - Medium Quality - Free", 'twitomatic-twitter-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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Premium Spinner Service User Name/Email:", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div class="hideBest"> <input type="text" name="twitomatic_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", 'twitomatic-twitter-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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Premium Spinner Service Password/API Key:", 'twitomatic-twitter-post-generator');?></b> </div> </td> <td> <div class="hideBest"> <input type="password" autocomplete="off" name="twitomatic_Main_Settings[best_password]" value="<?php echo esc_html($best_password); ?>" placeholder="<?php echo esc_html__("Please insert your premium text spinner service password", 'twitomatic-twitter-post-generator');?>"> </div> </td> </tr> <tr> <td colspan="2"> <h3><?php echo esc_html__("PhantomJS Settings:", 'twitomatic-twitter-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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Use PhantomJs to Generate Screenshots (%%item_show_screenshot%%):", 'twitomatic-twitter-post-generator');?></b> </td> <td> <input type="checkbox" id="phantom_screen" name="twitomatic_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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Use Puppeteer to Generate Screenshots (%%item_show_screenshot%%):", 'twitomatic-twitter-post-generator');?></b> </td> <td> <input type="checkbox" id="puppeteer_screen" name="twitomatic_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>", 'twitomatic-twitter-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:", 'twitomatic-twitter-post-generator');?></b> <?php if($phantom_path != '') { $phantom = twitomatic_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\'!', 'twitomatic-twitter-post-generator') . '</b> <a href=\'//coderevolution.ro/knowledge-base/faq/how-to-install-phantomjs/\' target=\'_blank\'>' . esc_html__('How to install PhantomJs?', 'twitomatic-twitter-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.', 'twitomatic-twitter-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.', 'twitomatic-twitter-post-generator') . '</b></span>'; } elseif($phantom === 1) { echo '<br/><span class="cr_green12"><b>' . esc_html__('INFO: PhantomJS OK', 'twitomatic-twitter-post-generator') . '</b></span>'; } } ?> </div> </td> <td> <div> <input type="text" id="phantom_path" placeholder="<?php echo esc_html__("Path to phantomjs", 'twitomatic-twitter-post-generator');?>" name="twitomatic_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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Page Screenshot Width:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <input type="text" id="screenshot_width" name="twitomatic_Main_Settings[screenshot_width]" value="<?php echo esc_html($screenshot_width);?>" placeholder="<?php echo esc_html__("600", 'twitomatic-twitter-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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Page Screenshot Height:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <input type="text" id="screenshot_height" name="twitomatic_Main_Settings[screenshot_height]" value="<?php echo esc_html($screenshot_height);?>" placeholder="<?php echo esc_html__("450", 'twitomatic-twitter-post-generator');?>"> </div> </td> </tr> <tr> <td> <hr/> </td> <td> <hr/> </td> </tr> <tr> <td> <h3><?php echo esc_html__("Random Sentence Generator Settings:", 'twitomatic-twitter-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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("First List of Possible Sentences (%%random_sentence%%):", 'twitomatic-twitter-post-generator');?></b> </td> <td> <textarea rows="8" cols="70" name="twitomatic_Main_Settings[sentence_list]" placeholder="<?php echo esc_html__("Please insert the first list of sentences", 'twitomatic-twitter-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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Second List of Possible Sentences (%%random_sentence2%%):", 'twitomatic-twitter-post-generator');?></b> </td> <td> <textarea rows="8" cols="70" name="twitomatic_Main_Settings[sentence_list2]" placeholder="<?php echo esc_html__("Please insert the second list of sentences", 'twitomatic-twitter-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/>", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("List of Possible Variables:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <textarea rows="8" cols="70" name="twitomatic_Main_Settings[variable_list]" placeholder="<?php echo esc_html__("Please insert the list of variables", 'twitomatic-twitter-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:", 'twitomatic-twitter-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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Custom HTML Code #1:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <textarea rows="3" cols="70" name="twitomatic_Main_Settings[custom_html]" placeholder="<?php echo esc_html__("Custom HTML #1", 'twitomatic-twitter-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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> <b><?php echo esc_html__("Custom HTML Code #2:", 'twitomatic-twitter-post-generator');?></b> </td> <td> <textarea rows="3" cols="70" name="twitomatic_Main_Settings[custom_html2]" placeholder="<?php echo esc_html__("Custom HTML #2", 'twitomatic-twitter-post-generator');?>"><?php echo esc_textarea($custom_html2); ?></textarea> </div> </td> </tr> </table> <hr/> <h3><?php echo esc_html__("Affiliate Keyword Replacer Tool Settings:", 'twitomatic-twitter-post-generator');?></h3> <div class="table-responsive"> <table class="responsive table cr_main_table"> <thead> <tr> <th> <?php echo esc_html__("ID", 'twitomatic-twitter-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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> </th> <th class="cr_max_width_40"> <?php echo esc_html__("Del", 'twitomatic-twitter-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?", 'twitomatic-twitter-post-generator'); ?> </div> </div> </th> <th> <?php echo esc_html__("Search Keyword", 'twitomatic-twitter-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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> </th> <th> <?php echo esc_html__("Replacement Keyword", 'twitomatic-twitter-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.", 'twitomatic-twitter-post-generator'); ?> </div> </div> </th> <th> <?php echo esc_html__("Link to Add", 'twitomatic-twitter-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.", 'twitomatic-twitter-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 twitomatic_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="twitomatic_keyword_list[keyword][]" placeholder="<?php echo esc_html__("Please insert the keyword to be replaced", 'twitomatic-twitter-post-generator');?>" value="" class="cr_width_100" /></td> <td class="cr_rule_line"><input type="text" name="twitomatic_keyword_list[replace][]" placeholder="<?php echo esc_html__("Please insert the keyword to replace the search keyword", 'twitomatic-twitter-post-generator');?>" value="" class="cr_width_100" /></td> <td class="cr_rule_line"><input type="url" validator="url" name="twitomatic_keyword_list[link][]" placeholder="<?php echo esc_html__("Please insert the link to be added to the keyword", 'twitomatic-twitter-post-generator');?>" value="" class="cr_width_100" /> </tr> </tbody> </table> </div> </td></tr> </table> </div> </div> </div> <hr/> <div><?php echo esc_html__("You can also use the following shortcode in your content:", 'twitomatic-twitter-post-generator');?> <b>[twitomatic_twitter_card]</b>. <br/><?php echo esc_html__("Use the [twitomatic_twitter_card] shortcode to display a tweet (by it's ID) in a 'Twitter Card' format.", 'twitomatic-twitter-post-generator');?><br/><?php echo esc_html__("Example shortcode usage:", 'twitomatic-twitter-post-generator');?> <b>[twitomatic_twitter_card id=825978175054368773]</b>. <?php echo esc_html__("For details about the shortcodes, please see the plugin help file.", 'twitomatic-twitter-post-generator');?></div> <p> <?php echo esc_html__("Available shortcodes:", 'twitomatic-twitter-post-generator');?> <strong>[twitomatic-list-posts]</strong> <?php echo esc_html__("to include a list that contains only posts imported by this plugin, and", 'twitomatic-twitter-post-generator');?> <strong>[twitomatic-display-posts]</strong> <?php echo esc_html__("to include a WordPress like post listing. Usage:", 'twitomatic-twitter-post-generator');?> [twitomatic-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_twitomatic_rule']. <br/><?php echo esc_html__("Example:", 'twitomatic-twitter-post-generator');?> <b>[twitomatic-list-posts type='any' order='ASC' orderby='date' posts_per_page=50 category= '' ruleid='0']</b> <br/><?php echo esc_html__("Example 2:", 'twitomatic-twitter-post-generator');?> <b>[twitomatic-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", 'twitomatic-twitter-post-generator');?>"/></p></div> </form> </div> <?php } if (isset($_POST['twitomatic_keyword_list'])) { add_action('admin_init', 'twitomatic_save_keyword_rules'); } function twitomatic_save_keyword_rules($data2) { $data2 = $_POST['twitomatic_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('twitomatic_keyword_list', $rules); } function twitomatic_expand_keyword_rules() { $rules = get_option('twitomatic_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="wptwitomatic-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', 'twitomatic-twitter-post-generator') . '" name="twitomatic_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', 'twitomatic-twitter-post-generator') . '" name="twitomatic_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', 'twitomatic-twitter-post-generator') . '" name="twitomatic_keyword_list[link][]" value="' . esc_html(stripslashes($value[0])) . '" class="cr_width_100"></td> </tr>'; $cont++; } } return $output; } ?>
Save File
Cancel