PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
plugins
/
content-egg
/
application
/
admin
/
views
<?php use ContentEgg\application\components\ModuleManager; use ContentEgg\application\admin\GeneralConfig; ?> <?php if (\ContentEgg\application\Plugin::isFree() || \ContentEgg\application\Plugin::isInactiveEnvato()): ?> <div class="cegg-maincol"> <?php endif; ?> <div class="wrap"> <h2> <?php _e('Fill', 'content-egg'); ?> </h2> <p> <?php _e('This extension will fill module\'s data for all existed posts.', 'content-egg'); ?> <?php _e('All existing data and keywords will not be erased or overwritten.', 'content-egg'); ?> </p> <table class="form-table"> <tr> <th scope="row"><label for="module_id"><?php _e('Add data for module', 'content-egg'); ?></label></th> <td> <select id="module_id"> <?php foreach (ModuleManager::getInstance()->getParserModules() as $module): ?> <option value="<?php echo $module->getId(); ?>"><?php echo esc_html($module->getName()); ?></option> <?php endforeach; ?> </select> </td> </tr> <tr> <th scope="row"><label for="keyword_source"><?php _e('Keyword source', 'content-egg'); ?></label></th> <td> <select id="keyword_source"> <option value="_density"><?php _e('Calculate as base of the density of keywords inside post', 'content-egg'); ?></option> <option value="_title"><?php _e('Title for post', 'content-egg'); ?></option> <option value="_tags"><?php _e('Post tags', 'content-egg'); ?></option> <option value="_custom_field"><?php _e('Arbitrary custom field', 'content-egg'); ?></option> <?php foreach (ModuleManager::getInstance()->getAffiliateParsers() as $module): ?> <option value="<?php echo $module->getId(); ?>"><?php _e('Copy from', 'content-egg'); ?> <?php echo esc_html($module->getName()); ?></option> <?php endforeach; ?> </select> <input style="display: none;" id="custom_field" type="text" class="regular-text" placeholder="<?php _e('Set the name of a custom field', 'content-egg'); ?>"> </td> </tr> <tr> <th scope="row"><label for="autoupdate"><?php _e('Autoupdate', 'content-egg'); ?></label></th> <td> <label><input id="autoupdate" type="checkbox" value="1"> <?php _e('Add Keyword for the automatic update', 'content-egg'); ?></label> <p class="description"><?php _e('Only for those modules, which have autoupdate function.', 'content-egg'); ?></p> </td> </tr> <tr> <th scope="row"><label for="keyword_count"><?php _e('Number of words', 'content-egg'); ?></label></th> <td> <select id="keyword_count"> <?php for ($i = 1; $i <= 10; $i++): ?> <option value="<?php echo $i; ?>"<?php if ($i == 5) echo ' selected="selected"'; ?>><?php echo $i; ?></option> <?php endfor; ?> </select> <p class="description"><?php _e('Maximum words for one search query.', 'content-egg'); ?></p> </td> </tr> <tr> <th scope="row"><label for="minus_words"><?php _e('"Minus" words', 'content-egg'); ?></label></th> <td> <input id="minus_words" type="text" class="regular-text"> <p class="description"><?php _e('Remove these words from keyword. You can set several minus words/phrases with commas.', 'content-egg'); ?></p> </td> </tr> <tr> <th scope="row"><label for="post_type"><?php _e('Post type', 'content-egg'); ?></label></th> <td> <select id="post_type" multiple="multiple"> <?php foreach (GeneralConfig::getInstance()->option('post_types') as $post_type): ?> <option value="<?php echo \esc_attr($post_type); ?>" selected="selected"><?php echo \esc_attr($post_type); ?></option> <?php endforeach; ?> </select> <p class="description"><?php _e('You can set all supported post types in General settings -> Post Types.', 'content-egg'); ?></p> </td> </tr> <tr> <th scope="row"><label for="post_status"><?php _e('Post status', 'content-egg'); ?></label></th> <td> <?php $post_statuses = array_merge(get_post_statuses(), array('future' => __('Future'))); $selected_post_statuses = array('publish', 'future'); ?> <select id="post_status" multiple="multiple" size="5"> <?php foreach ($post_statuses as $post_status_value => $post_status_name): ?> <option value="<?php echo \esc_attr($post_status_value); ?>" <?php if (in_array($post_status_value, $selected_post_statuses)): ?>selected="selected"<?php endif; ?>> <?php echo \esc_attr($post_status_name); ?> </option> <?php endforeach; ?> </select> </td> </tr> <tr> <th scope="row"><label for="custom_fields"><?php _e('Add custom fields', 'content-egg'); ?></label></th> <td> <?php for ($i = 0; $i < 5; $i++): ?> <input type="text" name="custom_field_names[]" placeholder="<?php echo sprintf(__('Custom Field %d', 'content-egg'), $i + 1); ?>" id="custom_fields" class="regular-text" /> <input type="text" name="custom_field_values[]" placeholder="<?php echo sprintf(__('Value %d', 'content-egg'), $i + 1); ?>" class="regular-text" /><br> <?php endfor; ?> <?php $tags = '%KEYWORD%, %RANDOM(10,50)%, %PRODUCT.title%, %PRODUCT.price%, ...'; ?> <p class="description"><?php echo sprintf(__('You can use tags: %s.', 'content-egg'), $tags); ?></p> </td> </tr> </table> <div id="progressbar" name="progressbar"></div> <div><?php _e('Total posts', 'content-egg'); ?>: <b><span id="post_ids_total"></span></b></div> <div> <br> <button class="button-primary" type="button" id="start_prefill"><?php _e('Start', 'content-egg'); ?></button> <button class="button-primary" type="button" id="start_prefill_begin"><?php _e('Run again', 'content-egg'); ?></button> <button class="button-secondary" type="button" id="stop_prefill" disabled><?php _e('Stop', 'content-egg'); ?></button> <span id="ajaxWaiting__" style="display:none;"><img src="<?php echo \ContentEgg\PLUGIN_RES . '/img/ajax-loader.gif' ?>" /></span> <span id="ajaxBusy" style="display:none;"><img src="<?php echo \ContentEgg\PLUGIN_RES . '/img/ajax-loader.gif' ?>" /></span> </div> <div class="egg-prefill-log" id="logs"></div> </div> <?php if (\ContentEgg\application\Plugin::isFree() || \ContentEgg\application\Plugin::isInactiveEnvato()): ?> </div> <?php include('_promo_box.php'); ?> <?php endif; ?>
[+]
..
[-] metabox_module.php
[edit]
[-] _metabox_search_results_images.php
[edit]
[-] product_index.php
[edit]
[-] _metabox_search_results.php
[edit]
[-] _promo_box.php
[edit]
[-] _metabox_results.php
[edit]
[-] settings.php
[edit]
[-] autoblog_index.php
[edit]
[-] ae_integration.php
[edit]
[-] autoblog_edit.php
[edit]
[-] metabox_general.php
[edit]
[-] _metabox_autoblog.php
[edit]
[-] import_export.php
[edit]
[-] prefill.php
[edit]