<?php
 if ( ! defined( 'ABSPATH' ) ) { exit; } function myarcade_settings_gamefeed() { $gamefeed = F370DD774B2D974BFC80CFD42084987D1( 'gamefeed' ); ?>
  <h2 class="trigger"><?php _e("GameFeed by TalkArcades", 'myarcadeplugin'); ?></h2>
  <div class="toggle_container">
    <div class="block">
      <table class="optiontable" width="100%" cellpadding="5" cellspacing="5">
        <tr>
          <td colspan="2">
            <i>
              <?php printf( __( "%s distributes Flash games.", 'myarcadeplugin' ), '<a href="http://www.talkarcades.com" target="_blank">TalkArcades</a>' ); ?>
              <?php _e( "You need a free account on TalkArcades to be able to use the GameFeed AutoPublisher. eate a new account.", 'myarcadeplugin'); ?>
            </i>
            <br /><br />
          </td>
        </tr>
        <tr><td colspan="2"><h3><?php _e("GameFeed AutoPublisher", 'myarcadeplugin'); ?></h3></td></tr>

        <tr>
          <td>
            <select size="1" name="gamefeed_status" id="gamefeed_status">
              <option value="publish" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($gamefeed['status'], 'publish'); ?> ><?php _e("Publish", 'myarcadeplugin'); ?></option>
              <option value="draft" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($gamefeed['status'], 'draft'); ?> ><?php _e("Draft", 'myarcadeplugin'); ?></option>
              <option value="add" <?php FDDF3EC25B8F21FAFBFA55C25519BBBBF($gamefeed['status'], 'add'); ?> ><?php _e("Add To Database (don't publish)", 'myarcadeplugin'); ?></option>
            </select>
          </td>
          <td><i><?php _e("Select a status for games added through AutoPublish from TalkArcades website.", 'myarcadeplugin'); ?></i></td>
        </tr>

        <tr><td colspan="2"><h3><?php _e("Automated Game Publishing", 'myarcadeplugin'); ?></h3></td></tr>

        <tr>
          <td>
            <input type="checkbox" name="gamefeed_cron_publish" value="true" <?php F739F7FB06301A1E6810F08B95CC237ED($gamefeed['cron_publish'], true); ?> /><label class="opt">&nbsp;<?php _e("Yes", 'myarcadeplugin'); ?></label>
          </td>
          <td><i><?php _e("Enable this if you want to publish games automatically. Go to 'General Settings' to select a cron interval. This will only work if you have unpublished TalkArcades Games in your database.", 'myarcadeplugin'); ?></i></td>
        </tr>

        <tr><td colspan="2"><h4><?php _e("Publish Games", 'myarcadeplugin'); ?></h4></td></tr>

        <tr>
          <td>
            <input type="text" size="40"  name="gamefeed_cron_publish_limit" value="<?php echo $gamefeed['cron_publish_limit']; ?>" />
          </td>
          <td><i><?php _e("How many games should be published on every cron trigger?", 'myarcadeplugin'); ?></i></td>
        </tr>

      </table>
      <input class="button button-primary" id="submit" type="submit" name="submit" value="<?php _e("Save Settings", 'myarcadeplugin'); ?>" />
    </div>
  </div>
  <?php
} function myarcade_default_settings_gamefeed() { return array( 'status' => 'publish', 'cron_publish' => false, 'cron_publish_limit' => '1', ); } function myarcade_save_settings_gamefeed() { F7D8DBE932D4B983CB93613EE5AED34A4(); $gamefeed = array(); $gamefeed['status'] = $_POST['gamefeed_status']; $gamefeed['cron_publish'] = (isset($_POST['gamefeed_cron_publish']) ) ? true : false; $gamefeed['cron_publish_limit'] = (isset($_POST['gamefeed_cron_publish_limit']) ) ? intval($_POST['gamefeed_cron_publish_limit']) : 1; update_option( 'myarcade_gamefeed', $gamefeed ); } ?>