Beispiel #1
0
    public function admin_page()
    {
        $enabled = participad_is_module_enabled('dashboard');
        ?>

		<h4><?php 
        _e('Dashboard', 'participad');
        ?>
</h4>

		<p class="description"><?php 
        _e('The Dashboard module allows you to edit Pages, Posts, and other WordPress content using Etherpad. Enabling this component will replace the HTML and Visual tabs on the Dashboard Edit pages with a Participad interface.', 'participad');
        ?>
</p>

		<table class="form-table">
			<tr>
				<th scope="row">
					<label for="participad-dashboard-enable"><?php 
        _e('Enable Participad on the Dashboard', 'participad');
        ?>
</label>
				</th>

				<td>
					<select id="participad-dashboard-enable" name="participad-dashboard-enable">
						<option value="yes" <?php 
        selected($enabled, 'yes');
        ?>
><?php 
        _e('Yes', 'participad');
        ?>
</option>
						<option value="no" <?php 
        selected($enabled, 'no');
        ?>
><?php 
        _e('No', 'participad');
        ?>
</option>
					</select>
				</td>
			</tr>
		</table>
		<?php 
    }
Beispiel #2
0
    public function admin_page()
    {
        $enabled = participad_is_module_enabled('frontend');
        ?>

		<h4><?php 
        _e('Frontend', 'participad');
        ?>
</h4>

		<p class="description"><?php 
        _e('The Frontend module allows you to edit WordPress content, using Etherpad, without visiting the Dashboard. When this module is enabled, the Edit link that permitted users see on the front-end will refresh the page, with an Etherpad Lite instance.', 'participad');
        ?>
</p>

		<table class="form-table">
			<tr>
				<th scope="row">
					<label for="participad-frontend-enable"><?php 
        _e('Enable Participad on the Front End', 'participad');
        ?>
</label>
				</th>

				<td>
					<select id="participad-frontend-enable" name="participad-frontend-enable">
						<option value="yes" <?php 
        selected($enabled, 'yes');
        ?>
><?php 
        _e('Yes', 'participad');
        ?>
</option>
						<option value="no" <?php 
        selected($enabled, 'no');
        ?>
><?php 
        _e('No', 'participad');
        ?>
</option>
					</select>
				</td>
			</tr>
		</table>
		<?php 
    }
Beispiel #3
0
    public function admin_page()
    {
        $enabled = participad_is_module_enabled('notepad');
        ?>

		<h4><?php 
        _e('Notepad', 'participad');
        ?>
</h4>

		<p class="description"><?php 
        _e('The Notepad module gives your users a handy way to take collaborative notes. Notepads are front-end note-taking spaces, stored in a WordPress custom post type, and optionally associated with non-Notepad posts. If you\'re using Notepads, you may want to enable some of our helpful widgets and shortcodes.', 'participad');
        ?>
</p>

		<table class="form-table">
			<tr>
				<th scope="row">
					<label for="participad-notepad-enable"><?php 
        _e('Enable Participad Notepads', 'participad');
        ?>
</label>
				</th>

				<td>
					<select id="participad-notepad-enable" name="participad-notepad-enable">
						<option value="yes" <?php 
        selected($enabled, 'yes');
        ?>
><?php 
        _e('Yes', 'participad');
        ?>
</option>
						<option value="no" <?php 
        selected($enabled, 'no');
        ?>
><?php 
        _e('No', 'participad');
        ?>
</option>
					</select>
				</td>
			</tr>
		</table>
		<?php 
    }