Beispiel #1
0
    static function render($post)
    {
        $settings = dataAccess::getMetaItem($post->ID, "post");
        wp_nonce_field(basename(__FILE__), 'wpXSG_meta_nonce');
        ?>
 
		<p><strong>Sitemap inclusion</strong></p>
		<select  name="wpXSG-Exclude" id="wpXSG-Exclude" ></select>
		<label for="wpXSG-Exclude"></label>
		
		<p><strong>Relative priority</strong></p>
		<select  name="wpXSG-Priority" id="wpXSG-Priority" ></select>
 
		<p><strong>Update frequency</strong></p>
		<select  name="wpXSG-Frequency" id="wpXSG-Frequency" ></select>
	


<script type="text/javascript" src="<?php 
        echo myPluginPath();
        ?>
scripts.js"></script>
<script>
	populate("wpXSG-Exclude" ,excludeSelect, <?php 
        echo $settings->exclude;
        ?>
);
	populate("wpXSG-Priority" ,prioritySelect, <?php 
        echo $settings->priority;
        ?>
);
	populate("wpXSG-Frequency" ,frequencySelect, <?php 
        echo $settings->frequency;
        ?>
);
	 
</script>
		<?php 
    }
Beispiel #2
0
    static function renderEdit($tag)
    {
        $term_id = $tag->term_id;
        self::addHooks();
        $settings = dataAccess::getMetaItem($term_id, "taxonomy");
        wp_nonce_field(basename(__FILE__), 'wpXSG_meta_nonce');
        ?>

		
		<h3>Sitemap settings : 	 </h3>
	


		
		<table class="form-table">
		<tbody><tr class="form-field form-required term-name-wrap">
			<th scope="row"><label for="name">Sitemap inclusion</label></th>
			<td>
				<select  name="wpXSG-Exclude" id="wpXSG-Exclude" ></select>
				<p> Exclude this category/tag from your sitemap.</p>
			</td>
		</tr>
		<tr class="form-field term-slug-wrap">
			<th scope="row"><label for="slug">Relative priority</label></th>
			<td>
				<select  name="wpXSG-Priority" id="wpXSG-Priority" ></select>
				<p>Relative priority for this category/tag and related posts.</p>
			</td>
		</tr>
		<tr class="form-field term-description-wrap">
			<th scope="row"><label for="description">Update frequency</label></th>
			<td>
			<select  name="wpXSG-Frequency" id="wpXSG-Frequency" ></select>
			<p>Sitemap update frequency for this category/tag.</p>
			</td>
		</tr>
		<tr class="form-field term-description-wrap">
			<th scope="row"><label for="description">Post inheritance</label></th>
			<td>
			<select  name="wpXSG-Inherit" id="wpXSG-Inherit" ></select>
			<p>Immediate child posts/pages inherit these settings.</p>
			</td>
		</tr>
		</tbody></table>

<script type="text/javascript" src="<?php 
        echo myPluginPath();
        ?>
scripts.js"></script>
<script>
	populate("wpXSG-Exclude" ,excludeSelect, <?php 
        echo $settings->exclude;
        ?>
);
	populate("wpXSG-Priority" ,prioritySelect, <?php 
        echo $settings->priority;
        ?>
);
	populate("wpXSG-Frequency" ,frequencySelect, <?php 
        echo $settings->frequency;
        ?>
);
	 populate("wpXSG-Inherit" ,inheritSelect, <?php 
        echo $settings->inherit;
        ?>
);
</script>


		<?php 
    }