Пример #1
0
    function display()
    {
        $options = iNoveOptions::getOptions();
        ?>

<form action="#" method="post" enctype="multipart/form-data" name="inove_form" id="inove_form">
	<div class="wrap">
		<h2><?php 
        _e('Current Theme Options', 'inove');
        ?>
</h2>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row"><?php 
        _e('Meta', 'inove');
        ?>
</th>
					<td>
						<?php 
        _e('Description:', 'inove');
        ?>
						<br/>
						<input type="text" name="description" id="description" class="code" style="width:98%;" value="<?php 
        echo $options['description'];
        ?>
">
						<br/>
						<?php 
        _e('Keywords:', 'inove');
        ?>
 <small><?php 
        _e('( Separate keywords with commas )', 'inove');
        ?>
</small>
						<br/>
						<input type="text" name="keywords" id="keywords" class="code" style="width:98%;" value="<?php 
        echo $options['keywords'];
        ?>
">
					</td>
				</tr>
			</tbody>
		</table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row"><?php 
        _e('Search', 'inove');
        ?>
</th>
					<td>
						<label>
							<input name="google_cse" type="checkbox" value="checkbox" <?php 
        if ($options['google_cse']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Using google custom search engine.', 'inove');
        ?>
						</label>
						<br/>
						<?php 
        _e('CX:', 'inove');
        ?>
						 <input type="text" name="google_cse_cx" id="google_cse_cx" class="code" size="40" value="<?php 
        echo $options['google_cse_cx'];
        ?>
">
						<br/>
						<?php 
        _e('Find <code>name="cx"</code> in the <strong>Search box code</strong> of <a href="http://www.google.com/coop/cse/">Google Custom Search Engine</a>, and type the <code>value</code> here.<br/>For example: <code>014782006753236413342:1ltfrybsbz4</code>', 'inove');
        ?>
					</td>
				</tr>
			</tbody>
		</table>

    <table class="form-table">
      <tbody>
        <tr valign="top">
          <th scope="row"><?php 
        _e('Analytics', 'inove');
        ?>
</th>
          <td>
            <label>
              <input name="google_analytics" type="checkbox" value="checkbox" <?php 
        if ($options['google_analytics']) {
            echo "checked='checked'";
        }
        ?>
 />
               <?php 
        _e('Using google analytics.', 'inove');
        ?>
            </label>
            <br/>
            <?php 
        _e('UA:', 'inove');
        ?>
             <input type="text" name="google_analytics_ua" id="google_analytics_ua" class="code" size="40" value="<?php 
        echo $options['google_analytics_ua'];
        ?>
">
          </td>
        </tr>
      </tbody>
    </table>


		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row"><?php 
        _e('Menubar', 'inove');
        ?>
</th>
					<td>
						<label style="margin-right:20px;">
							<input name="menu_type" type="radio" value="pages" <?php 
        if ($options['menu_type'] != 'categories') {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Show pages as menu.', 'inove');
        ?>
						</label>
						<label>
							<input name="menu_type" type="radio" value="categories" <?php 
        if ($options['menu_type'] == 'categories') {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Show categories as menu.', 'inove');
        ?>
						</label>
					</td>
				</tr>
			</tbody>
		</table>

    <table class="form-table">
      <tbody>
        <tr valign="top">
          <th scope="row"><?php 
        _e('Sidebar', 'inove');
        ?>
</th>
          <td>
            <label style="margin-right:20px;">
              <input name="sidebar_archive_grouping" type="radio" value="monthly" <?php 
        if ($options['sidebar_archive_grouping'] != 'yearly') {
            echo "checked='checked'";
        }
        ?>
 />
               <?php 
        _e('Show archives grouped by months.', 'inove');
        ?>
            </label>
            <label>
              <input name="sidebar_archive_grouping" type="radio" value="yearly" <?php 
        if ($options['sidebar_archive_grouping'] == 'yearly') {
            echo "checked='checked'";
        }
        ?>
 />
               <?php 
        _e('Show archives grouped by years.', 'inove');
        ?>
            </label><br/>
            <label style="margin-right:20px;">
              <input name="sidebar_tag_cloud" type="checkbox" value="checkbox" <?php 
        if ($options['sidebar_tag_cloud']) {
            echo "checked='checked'";
        }
        ?>
 />
               <?php 
        _e('Show Tag Cloud on sidebar.', 'inove');
        ?>
            </label>
            <label style="margin-right:20px;">
              <input name="sidebar_nested_categories" type="checkbox" value="checkbox" <?php 
        if ($options['sidebar_nested_categories']) {
            echo "checked='checked'";
        }
        ?>
 />
               <?php 
        _e('Show Nested Categories on sidebar.', 'inove');
        ?>
            </label>
          </td>
        </tr>
      </tbody>
    </table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row">
						<?php 
        _e('Notice', 'inove');
        ?>
						<br/>
						<small style="font-weight:normal;"><?php 
        _e('HTML enabled', 'inove');
        ?>
</small>
					</th>
					<td>
						<!-- notice START -->
						<label>
							<input name="notice" type="checkbox" value="checkbox" <?php 
        if ($options['notice']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('This notice bar will display at the top of posts on homepage.', 'inove');
        ?>
						</label>
						<br />
						<label>
							<textarea name="notice_content" id="notice_content" cols="50" rows="10" style="width:98%;font-size:12px;" class="code"><?php 
        echo $options['notice_content'];
        ?>
</textarea>
						</label>
						<!-- notice END -->
					</td>
				</tr>
			</tbody>
		</table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row">
						<?php 
        _e('Showcase', 'inove');
        ?>
						<br/>
						<small style="font-weight:normal;"><?php 
        _e('HTML enabled', 'inove');
        ?>
</small>
					</th>
					<td>
						<!-- showcase START -->
						<?php 
        _e('This showcase will display at the top of sidebar.', 'inove');
        ?>
						<br/>
						<?php 
        _e('Who can see?', 'inove');
        ?>
						<label style="margin-left:10px;">
							<input name="showcase_registered" type="checkbox" value="checkbox" <?php 
        if ($options['showcase_registered']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Registered Users', 'inove');
        ?>
						</label>
						<label style="margin-left:10px;">
							<input name="showcase_commentator" type="checkbox" value="checkbox" <?php 
        if ($options['showcase_commentator']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Commentator', 'inove');
        ?>
						</label>
						<label style="margin-left:10px;">
							<input name="showcase_visitor" type="checkbox" value="checkbox" <?php 
        if ($options['showcase_visitor']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Visitors', 'inove');
        ?>
						</label>
						<br/>
						<label>
							<input name="showcase_caption" type="checkbox" value="checkbox" <?php 
        if ($options['showcase_caption']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Title:', 'inove');
        ?>
						</label>
						 <input type="text" name="showcase_title" id="showcase_title" class="code" size="40" value="<?php 
        echo $options['showcase_title'];
        ?>
">
						<br/>
						<label>
							<textarea name="showcase_content" id="showcase_content" cols="50" rows="10" style="width:98%;font-size:12px;" class="code"><?php 
        echo $options['showcase_content'];
        ?>
</textarea>
						</label>
						<!-- showcase END -->
					</td>
				</tr>
			</tbody>
		</table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row"><?php 
        _e('Posts');
        ?>
</th>
					<td>
						<label style="margin-right:20px;">
							<input name="author" type="checkbox" value="checkbox" <?php 
        if ($options['author']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Show author on posts.', 'inove');
        ?>
						</label>
						<label style="margin-right:20px;">
							<input name="categories" type="checkbox" value="checkbox" <?php 
        if ($options['categories']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Show categories on posts.', 'inove');
        ?>
						</label>
						<label>
							<input name="tags" type="checkbox" value="checkbox" <?php 
        if ($options['tags']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Show tags on posts.', 'inove');
        ?>
						</label>
					</td>
				</tr>
			</tbody>
		</table>

    <table class="form-table">
      <tbody>
        <tr valign="top">
          <th scope="row"><?php 
        _e('Pages');
        ?>
</th>
          <td>
            <label style="margin-right:20px;">
              <input name="page_dates" type="checkbox" value="checkbox" <?php 
        if ($options['page_dates']) {
            echo "checked='checked'";
        }
        ?>
 />
               <?php 
        _e('Show dates on pages.', 'inove');
        ?>
            </label>
            <label style="margin-right:20px;">
              <input name="page_comments" type="checkbox" value="checkbox" <?php 
        if ($options['page_comments']) {
            echo "checked='checked'";
        }
        ?>
 />
               <?php 
        _e('Show comments on pages.', 'inove');
        ?>
            </label>
          </td>
        </tr>
      </tbody>
    </table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row"><?php 
        _e('Feed', 'inove');
        ?>
</th>
					<td>
						<label>
							<input name="feed" type="checkbox" value="checkbox" <?php 
        if ($options['feed']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Custom feed.', 'inove');
        ?>
						</label>
						<br/>
						<?php 
        _e('URL:', 'inove');
        ?>
 <input type="text" name="feed_url" id="feed_url" class="code" size="60" value="<?php 
        echo $options['feed_url'];
        ?>
">
						<br/>
						<label>
							<input name="feed_email" type="checkbox" value="checkbox" <?php 
        if ($options['feed_email']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Email feed.', 'inove');
        ?>
						</label>
						<br/>
						<?php 
        _e('URL:', 'inove');
        ?>
 <input type="text" name="feed_url_email" id="feed_url_email" class="code" size="60" value="<?php 
        echo $options['feed_url_email'];
        ?>
">
					</td>
				</tr>
			</tbody>
		</table>

    <table class="form-table">
      <tbody>
        <tr valign="top">
          <th scope="row"><?php 
        _e('Copyright Notice', 'inove');
        ?>
</th>
          <td>
            <?php 
        _e('Author:', 'inove');
        ?>
            <br/>
            <input type="text" name="copyright_author" id="copyright_author" class="code" style="width:98%;" value="<?php 
        echo $options['copyright_author'];
        ?>
">
            <br/>
            <?php 
        _e('License String:', 'inove');
        ?>
            <br/>
            <input type="text" name="copyright_license" id="copyright_license" class="code" style="width:98%;" value="<?php 
        echo $options['copyright_license'];
        ?>
">
          </td>
        </tr>
      </tbody>
    </table>

		<p class="submit">
			<input class="button-primary" type="submit" name="inove_save" value="<?php 
        _e('Save Changes', 'inove');
        ?>
" />
		</p>
	</div>

</form>

<!-- donation -->
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
	<div class="wrap" style="background:#E3E3E3; margin-bottom:1em;">

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row">Donation</th>
					<td>
						If you find my work useful and you want to encourage the development of more free resources, you can do it by donating...
						<br />
						<input type="hidden" name="cmd" value="_s-xclick" />
						<input type="hidden" name="encrypted" value="-----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DgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDkwMTA4MTUwNTMzWjAjBgkqhkiG9w0BCQQxFgQU9yNbEkDR5C12Pqjz05j5uGf9evgwDQYJKoZIhvcNAQEBBQAEgYCWyKjU/IdjjY2oAYYNAjLYunTRMVy5JhcNnF/0ojQP+39kV4+9Y9gE2s7urw16+SRDypo2H1o+212mnXQI/bAgWs8LySJuSXoblpMKrHO1PpOD6MUO2mslBTH8By7rdocNUtZXUDUUcvrvWEzwtVDGpiGid1G61QJ/1tVUNHd20A==-----END PKCS7-----" />
						<input style="border:none;" type="image" src="https://www.paypal.com/en_GB/i/btn/btn_donate_LG.gif" name="submit" alt="" />
						<img alt="" src="https://www.paypal.com/zh_XC/i/scr/pixel.gif" width="1" height="1" />
					</td>
				</tr>
			</tbody>
		</table>

	</div>
</form>

<?php 
    }
Пример #2
0
    function display()
    {
        $options = iNoveOptions::getOptions();
        ?>

<form action="#" method="post" enctype="multipart/form-data" name="inove_form" id="inove_form">
	<div class="wrap">
		<h2><?php 
        _e('iNove Theme Options', 'inove');
        ?>
</h2>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row"><?php 
        _e('Menubar', 'inove');
        ?>
</th>
					<td>
						<label style="margin-right:20px;">
							<input name="menu_type" type="radio" value="pages" <?php 
        if ($options['menu_type'] != 'categories') {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Show pages as menu.', 'inove');
        ?>
						</label>
						<label>
							<input name="menu_type" type="radio" value="categories" <?php 
        if ($options['menu_type'] == 'categories') {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Show categories as menu.', 'inove');
        ?>
						</label>
					</td>
				</tr>
			</tbody>
		</table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row"><?php 
        _e('Sidebar', 'inove');
        ?>
</th>
					<td>
						<label>
							<input name="nosidebar" type="checkbox" value="checkbox" <?php 
        if ($options['nosidebar']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Hide sidebar from all pages.', 'inove');
        ?>
						</label>
					</td>
				</tr>
			</tbody>
		</table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row">
						<?php 
        _e('Notice', 'inove');
        ?>
						<br/>
						<small style="font-weight:normal;"><?php 
        _e('HTML enabled', 'inove');
        ?>
</small>
					</th>
					<td>
						<!-- notice START -->
						<label>
							<input name="notice" type="checkbox" value="checkbox" <?php 
        if ($options['notice']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('This notice bar will display at the top of posts on homepage.', 'inove');
        ?>
						</label>
						<br />
						<label>
							<textarea name="notice_content" id="notice_content" cols="50" rows="10" style="width:98%;font-size:12px;" class="code"><?php 
        echo $options['notice_content'];
        ?>
</textarea>
						</label>
						<!-- notice END -->
					</td>
				</tr>
			</tbody>
		</table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row">
						<?php 
        _e('Banner', 'inove');
        ?>
						<br/>
						<small style="font-weight:normal;"><?php 
        _e('HTML enabled', 'inove');
        ?>
</small>
					</th>
					<td>
						<!-- banner START -->
						<?php 
        _e('This banner will display at the right of header. (height: 60 pixels)', 'inove');
        ?>
						<br/>
						<?php 
        _e('Who can see?', 'inove');
        ?>
						<label style="margin-left:10px;">
							<input name="banner_registered" type="checkbox" value="checkbox" <?php 
        if ($options['banner_registered']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Registered Users', 'inove');
        ?>
						</label>
						<label style="margin-left:10px;">
							<input name="banner_commentator" type="checkbox" value="checkbox" <?php 
        if ($options['banner_commentator']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Commentator', 'inove');
        ?>
						</label>
						<label style="margin-left:10px;">
							<input name="banner_visitor" type="checkbox" value="checkbox" <?php 
        if ($options['banner_visitor']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Visitors', 'inove');
        ?>
						</label>
						<br/>
						<label>
							<textarea name="banner_content" id="banner_content" cols="50" rows="10" style="width:98%;font-size:12px;" class="code"><?php 
        echo $options['banner_content'];
        ?>
</textarea>
						</label>
						<!-- banner END -->
					</td>
				</tr>
			</tbody>
		</table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row">
						<?php 
        _e('Showcase', 'inove');
        ?>
						<br/>
						<small style="font-weight:normal;"><?php 
        _e('HTML enabled', 'inove');
        ?>
</small>
					</th>
					<td>
						<!-- showcase START -->
						<?php 
        _e('This showcase will display at the top of sidebar.', 'inove');
        ?>
						<br/>
						<?php 
        _e('Who can see?', 'inove');
        ?>
						<label style="margin-left:10px;">
							<input name="showcase_registered" type="checkbox" value="checkbox" <?php 
        if ($options['showcase_registered']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Registered Users', 'inove');
        ?>
						</label>
						<label style="margin-left:10px;">
							<input name="showcase_commentator" type="checkbox" value="checkbox" <?php 
        if ($options['showcase_commentator']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Commentator', 'inove');
        ?>
						</label>
						<label style="margin-left:10px;">
							<input name="showcase_visitor" type="checkbox" value="checkbox" <?php 
        if ($options['showcase_visitor']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Visitors', 'inove');
        ?>
						</label>
						<br/>
						<label>
							<input name="showcase_caption" type="checkbox" value="checkbox" <?php 
        if ($options['showcase_caption']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Title:', 'inove');
        ?>
						</label>
						 <input type="text" name="showcase_title" id="showcase_title" class="code" size="40" value="<?php 
        echo $options['showcase_title'];
        ?>
" />
						<br/>
						<label>
							<textarea name="showcase_content" id="showcase_content" cols="50" rows="10" style="width:98%;font-size:12px;" class="code"><?php 
        echo $options['showcase_content'];
        ?>
</textarea>
						</label>
						<!-- showcase END -->
					</td>
				</tr>
			</tbody>
		</table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row"><?php 
        _e('Posts', 'inove');
        ?>
</th>
					<td>
						<label style="margin-right:20px;">
							<input name="author" type="checkbox" value="checkbox" <?php 
        if ($options['author']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Show author on posts.', 'inove');
        ?>
						</label>
						<label style="margin-right:20px;">
							<input name="categories" type="checkbox" value="checkbox" <?php 
        if ($options['categories']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Show categories on posts.', 'inove');
        ?>
						</label>
						<label>
							<input name="tags" type="checkbox" value="checkbox" <?php 
        if ($options['tags']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Show tags on posts.', 'inove');
        ?>
						</label>
					</td>
				</tr>
			</tbody>
		</table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row"><?php 
        _e('Comments', 'inove');
        ?>
</th>
					<td>
						<label>
							<input name="ctrlentry" type="checkbox" value="checkbox" <?php 
        if ($options['ctrlentry']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Submit comments with Ctrl+Enter.', 'inove');
        ?>
						</label>
					</td>
				</tr>
			</tbody>
		</table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row"><?php 
        _e('Feed', 'inove');
        ?>
</th>
					<td>
						<label>
							<input name="feed_readers" type="checkbox" value="checkbox" <?php 
        if ($options['feed_readers']) {
            echo "checked='checked'";
        }
        ?>
 />
							 <?php 
        _e('Show the feed reader list when mouse over on feed button.', 'inove');
        ?>
						</label>
					</td>
				</tr>
			</tbody>
		</table>

		<p class="submit">
			<input class="button-primary" type="submit" name="inove_save" value="<?php 
        _e('Save Changes', 'inove');
        ?>
" />
		</p>
	</div>
</form>

<?php 
    }
Пример #3
0
    function display()
    {
        $options = iNoveOptions::getOptions();
        echo '
<form action="#" method="post" enctype="multipart/form-data" name="inove_form" id="inove_form">
	<div class="wrap">
		<h2>';
        _e('Current Theme Options', 'inove');
        echo '</h2>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row">
						';
        _e('Meta', 'inove');
        echo '						<br/>
						<small style="font-weight:normal;">';
        _e('Just in effect homepage', 'inove');
        echo '</small>
					</th>
					<td>
						';
        _e('Keywords', 'inove');
        echo '						<label>';
        _e('( Separate keywords with commas )', 'inove');
        echo '</label><br/>
						<input type="text" name="keywords" id="keyword" class="code" size="136" value="';
        echo $options['keywords'];
        echo '">
						<br/>
						';
        _e('Description', 'inove');
        echo '						<label>';
        _e('( Main decription for your blog )', 'inove');
        echo '</label>
						<br/>
						<input type="text" name="description" id="description" class="code" size="136" value="';
        echo $options['description'];
        echo '">
					</td>
				</tr>
			</tbody>
		</table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row">';
        _e('Search', 'inove');
        echo '</th>
					<td>
						<label>
							<input name="google_cse" type="checkbox" value="checkbox" ';
        if ($options['google_cse']) {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('Using google custom search engine.', 'inove');
        echo '						</label>
						<br/>
						';
        _e('CX:', 'inove');
        echo '						 <input type="text" name="google_cse_cx" id="google_cse_cx" class="code" size="40" value="';
        echo $options['google_cse_cx'];
        echo '">
						<br/>
						';
        printf(__('Find <code>name="cx"</code> in the <strong>Search box code</strong> of <a href="%1$s">Google Custom Search Engine</a>, and type the <code>value</code> here.<br/>For example: <code>014782006753236413342:1ltfrybsbz4</code>', 'inove'), 'http://www.google.com/coop/cse/');
        echo '					</td>
				</tr>
			</tbody>
		</table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row">';
        _e('Menubar', 'inove');
        echo '</th>
					<td>
						<label style="margin-right:20px;">
							<input name="menu_type" type="radio" value="pages" ';
        if ($options['menu_type'] != 'categories') {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('Show pages as menu.', 'inove');
        echo '						</label>
						<label>
							<input name="menu_type" type="radio" value="categories" ';
        if ($options['menu_type'] == 'categories') {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('Show categories as menu.', 'inove');
        echo '						</label>
					</td>
				</tr>
			</tbody>
		</table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row">';
        _e('Sidebar', 'inove');
        echo '</th>
					<td>
						<label>
							<input name="nosidebar" type="checkbox" value="checkbox" ';
        if ($options['nosidebar']) {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('Hide sidebar from all pages.', 'inove');
        echo '						</label>
					</td>
				</tr>
			</tbody>
		</table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row">';
        _e('Theme style', 'inove');
        echo '</th>
					<td>
						<label>
							<input name="collapse" type="checkbox" value="checkbox" ';
        if ($options['collapse']) {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('Switch theme to collapse style.', 'inove');
        echo '						</label>
					</td>
				</tr>
			</tbody>
		</table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row">
						';
        _e('Notice', 'inove');
        echo '						<br/>
						<small style="font-weight:normal;">';
        _e('HTML enabled', 'inove');
        echo '</small>
					</th>
					<td>
						<!-- notice START -->
						<label>
							<input name="notice" type="checkbox" value="checkbox" ';
        if ($options['notice']) {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('This notice bar will display at the top of posts on homepage.', 'inove');
        echo '						</label>
						<br />
						<label>
							<textarea name="notice_content" id="notice_content" cols="50" rows="10" style="width:98%;font-size:12px;" class="code">';
        echo $options['notice_content'];
        echo '</textarea>
						</label>
						<!-- notice END -->
					</td>
				</tr>
			</tbody>
		</table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row">
						';
        _e('Title Banner', 'inove');
        echo '						<br/>
						<small style="font-weight:normal;">';
        _e('HTML enabled', 'inove');
        echo '</small>
					</th>
					<td>
						<!-- banner START -->
						';
        _e('This banner will display at the right of header. (height: 60 pixels)', 'inove');
        echo '						<br/>
						';
        _e('Who can see?', 'inove');
        echo '						<label style="margin-left:10px;">
							<input name="banner_registered" type="checkbox" value="checkbox" ';
        if ($options['banner_registered']) {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('Registered Users', 'inove');
        echo '						</label>
						<label style="margin-left:10px;">
							<input name="banner_commentator" type="checkbox" value="checkbox" ';
        if ($options['banner_commentator']) {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('Commentator', 'inove');
        echo '						</label>
						<label style="margin-left:10px;">
							<input name="banner_visitor" type="checkbox" value="checkbox" ';
        if ($options['banner_visitor']) {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('Visitors', 'inove');
        echo '						</label>
						<br/>
						<label>
							<textarea name="banner_content" id="banner_content" cols="50" rows="10" style="width:98%;font-size:12px;" class="code">';
        echo $options['banner_content'];
        echo '</textarea>
						</label>
						<!-- banner END -->
					</td>
				</tr>
			</tbody>
		</table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row">
						';
        _e('Post Banner', 'inove');
        echo '						<br/>
						<small style="font-weight:normal;">';
        _e('HTML enabled', 'inove');
        echo '</small>
					</th>
					<td>
						<!-- post banner START -->
						';
        _e('This showcase will display at the bottom of post. (width: 300 pixels)', 'inove');
        echo '						<br/>
						';
        _e('Who can see?', 'inove');
        echo '						<label style="margin-left:10px;">
							<input name="post_banner_registered" type="checkbox" value="checkbox" ';
        if ($options['post_banner_registered']) {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('Registered Users', 'inove');
        echo '						</label>
						<label style="margin-left:10px;">
							<input name="post_banner_commentator" type="checkbox" value="checkbox" ';
        if ($options['post_banner_commentator']) {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('Commentator', 'inove');
        echo '						</label>
						<label style="margin-left:10px;">
							<input name="post_banner_visitor" type="checkbox" value="checkbox" ';
        if ($options['post_banner_visitor']) {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('Visitors', 'inove');
        echo '						</label>
						<br/>
						<label>
							<textarea name="post_banner_content" id="post_banner_content" cols="50" rows="10" style="width:98%;font-size:12px;" class="code">';
        echo $options['post_banner_content'];
        echo '</textarea>
						</label>
						<!-- post banner END -->
					</td>
				</tr>
			</tbody>
		</table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row">
						';
        _e('Sidebar Showcase', 'inove');
        echo '						<br/>
						<small style="font-weight:normal;">';
        _e('HTML enabled', 'inove');
        echo '</small>
					</th>
					<td>
						<!-- sidebar showcase START -->
						';
        _e('This showcase will display at the top of sidebar.', 'inove');
        echo '						<br/>
						';
        _e('Who can see?', 'inove');
        echo '						<label style="margin-left:10px;">
							<input name="showcase_registered" type="checkbox" value="checkbox" ';
        if ($options['showcase_registered']) {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('Registered Users', 'inove');
        echo '						</label>
						<label style="margin-left:10px;">
							<input name="showcase_commentator" type="checkbox" value="checkbox" ';
        if ($options['showcase_commentator']) {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('Commentator', 'inove');
        echo '						</label>
						<label style="margin-left:10px;">
							<input name="showcase_visitor" type="checkbox" value="checkbox" ';
        if ($options['showcase_visitor']) {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('Visitors', 'inove');
        echo '						</label>
						<br/>
						<label>
							<input name="showcase_caption" type="checkbox" value="checkbox" ';
        if ($options['showcase_caption']) {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('Title:', 'inove');
        echo '						</label>
						 <input type="text" name="showcase_title" id="showcase_title" class="code" size="40" value="';
        echo $options['showcase_title'];
        echo '" />
						<br/>
						<label>
							<input name="showcase_type" type="radio" value="4sq" ';
        if ($options['showcase_type'] != '1sq') {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('Show 4 squares showcase content. (square size: 125 x 125 pixels)', 'inove');
        echo '						</label>
						<br/>
						<label>
							';
        _e('Squre1:', 'inove');
        echo ' <textarea name="showcase_content1" id="showcase_content1" cols="50" rows="2" style="width:98%;font-size:12px;" class="code">';
        echo $options['showcase_content1'];
        echo '</textarea>
						</label>
						<label>
							';
        _e('Squre2:', 'inove');
        echo ' <textarea name="showcase_content2" id="showcase_content2" cols="50" rows="2" style="width:98%;font-size:12px;" class="code">';
        echo $options['showcase_content2'];
        echo '</textarea>
						</label>
						<label>
							';
        _e('Squre3:', 'inove');
        echo ' <textarea name="showcase_content3" id="showcase_content3" cols="50" rows="2" style="width:98%;font-size:12px;" class="code">';
        echo $options['showcase_content3'];
        echo '</textarea>
						</label>
						<label>
							';
        _e('Squre4:', 'inove');
        echo ' <textarea name="showcase_content4" id="showcase_content4" cols="50" rows="2" style="width:98%;font-size:12px;" class="code">';
        echo $options['showcase_content4'];
        echo '</textarea>
						</label>
						<label>
							<input name="showcase_type" type="radio" value="1sq" ';
        if ($options['showcase_type'] == '1sq') {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('Show single showcase content. (width: 250 pixels)', 'inove');
        echo '						</label>
						<br/>
						<label>
							<textarea name="showcase_content5" id="showcase_content5" cols="50" rows="10" style="width:98%;font-size:12px;" class="code">';
        echo $options['showcase_content5'];
        echo '</textarea>
						</label>
						<!-- sidebar showcase END -->
					</td>
				</tr>
			</tbody>
		</table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row">';
        _e('Posts', 'inove');
        echo '</th>
					<td>
						<label style="margin-right:20px;">
							<input name="author" type="checkbox" value="checkbox" ';
        if ($options['author']) {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('Show author on posts.', 'inove');
        echo '						</label>
						<label style="margin-right:20px;">
							<input name="categories" type="checkbox" value="checkbox" ';
        if ($options['categories']) {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('Show categories on posts.', 'inove');
        echo '						</label>
						<label>
							<input name="tags" type="checkbox" value="checkbox" ';
        if ($options['tags']) {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('Show tags on posts.', 'inove');
        echo '						</label>
					</td>
				</tr>
			</tbody>
		</table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row">';
        _e('Feed', 'inove');
        echo '</th>
					<td>
						 ';
        _e('Custom feed URL:', 'inove');
        echo ' <input type="text" name="feed_url" id="feed_url" class="code" size="60" value="';
        echo $options['feed_url'];
        echo '">
						<br/>
						<label>
							<input name="feed_email" type="checkbox" value="checkbox" ';
        if ($options['feed_email']) {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('Show email feed in reader list.', 'inove');
        echo '						</label>
						<br />
						 ';
        _e('Email feed URL:', 'inove');
        echo ' <input type="text" name="feed_url_email" id="feed_url_email" class="code" size="60" value="';
        echo $options['feed_url_email'];
        echo '">
					</td>
				</tr>
			</tbody>
		</table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row">';
        _e('Social', 'inove');
        echo '</th>
					<td>
						<label>
							<input name="social" type="checkbox" value="checkbox" ';
        if ($options['social']) {
            echo "checked='checked'";
        }
        echo ' />
							';
        _e('Add Social button.', 'blocks');
        echo '						</label>
						<br />
						<div>
							';
        _e('Select Social.', 'blocks');
        echo '							<select name="social_name" size="1">
								<option value="twitter" ';
        if ($options['social_name'] == 'twitter') {
            echo ' selected ';
        }
        echo '>';
        _e('Twitter', 'blocks');
        echo '</option>
								<option value="tencent" ';
        if ($options['social_name'] != 'twitter' && $options['social_name'] != 'sina') {
            echo ' selected ';
        }
        echo '>';
        _e('Tencent', 'blocks');
        echo '</option>
								<option value="sina" ';
        if ($options['social_name'] == 'sina') {
            echo ' selected ';
        }
        echo '>';
        _e('Sina', 'blocks');
        echo '</option>
							</select>
						</div>
						 ';
        _e('Social username:'******'inove');
        echo '						 <input type="text" name="social_username" id="social_username" class="code" size="40" value="';
        echo $options['social_username'];
        echo '">
						<br />
						<a href="http://t.sina.com.cn/neoner/" onclick="window.open(this.href);return false;">Follow NeOne</a>
						 | <a href="http://twitter.com/jevonszhou/" onclick="window.open(this.href);return false;">Follow Jevons Zhou</a>
					</td>
				</tr>
			</tbody>
		</table>

		<table class="form-table">
			<tbody>
				<tr valign="top">
					<th scope="row">
						';
        _e('Web Analytics', 'inove');
        echo '						<br/>
						<small style="font-weight:normal;">';
        _e('HTML enabled', 'inove');
        echo '</small>
					</th>
					<td>
						<label>
							<input name="analytics" type="checkbox" value="checkbox" ';
        if ($options['analytics']) {
            echo "checked='checked'";
        }
        echo ' />
							 ';
        _e('Add web analytics code to your site. (e.g. Google Analytics, Yahoo! Web Analytics, ...)', 'inove');
        echo '						</label>
						<label>
							<textarea name="analytics_content" cols="50" rows="10" id="analytics_content" class="code" style="width:98%;font-size:12px;">';
        echo $options['analytics_content'];
        echo '</textarea>
						</label>
					</td>
				</tr>
			</tbody>
		</table>

		<p class="submit">
			<input class="button-primary" type="submit" name="inove_save" value="';
        _e('Save Changes', 'inove');
        echo '" />
		</p>
	</div>
</form>

';
    }