Example #1
0
function optimizer_customizer_editor()
{
    ?>

		<div id="wp-editor-widget-container" style="display: none;">
			<a class="close" href="javascript:WPEditorWidget.hideEditor();" title="<?php 
    esc_attr_e('Close', 'optimizer');
    ?>
"><span class="icon"></span></a>
			<div class="editor">
				<?php 
    $settings = array('textarea_rows' => 55, 'editor_height' => 260);
    wp_editor('', 'wpeditorwidget', $settings);
    ?>

				<p><a href="javascript:WPEditorWidget.updateWidgetAndCloseEditor(true);" class="button button-primary"><?php 
    _e('Save and close', 'optimizer');
    ?>
</a></p>
			</div>
		</div>
		<div id="wp-editor-widget-backdrop" style="display: none;"></div>

		<?php 
}
    /**
     * Outputs the HTML for the field
     * @param  Attachments_Field $field The field object
     * @return void
     */
    function html($field)
    {
        ?>
        <div class="wp-editor-wrap attachments-field-wysiwyg-editor-wrap">
            <div class="wp-editor-container">
                <textarea name="<?php 
        esc_attr_e($field->field_name);
        ?>
" id="<?php 
        esc_attr_e($field->field_id);
        ?>
" class="wp-editor-area attachments attachments-field attachments-field-wysiwyg attachments-field-<?php 
        esc_attr_e($field->field_name);
        ?>
 attachments-field-<?php 
        esc_attr_e($field->field_id);
        ?>
" rows="10" data-default="<?php 
        esc_attr_e($field->default);
        ?>
"><?php 
        echo $field->value;
        ?>
</textarea>
            </div>
        </div>
    <?php 
    }
/**
 * Renders the page mapping admin panel.
 *
 * @since 1.6.0
 * @todo Use settings API
 * @uses bp_core_admin_component_options()
 */
function bp_core_admin_slugs_settings()
{
    ?>

	<div class="wrap">
		<?php 
    screen_icon('buddypress');
    ?>

		<h2 class="nav-tab-wrapper"><?php 
    bp_core_admin_tabs(__('Pages', 'buddypress'));
    ?>
</h2>
		<form action="" method="post" id="bp-admin-page-form">

			<?php 
    bp_core_admin_slugs_options();
    ?>

			<p class="submit clear">
				<input class="button-primary" type="submit" name="bp-admin-pages-submit" id="bp-admin-pages-submit" value="<?php 
    esc_attr_e('Save Settings', 'buddypress');
    ?>
"/>
			</p>

			<?php 
    wp_nonce_field('bp-admin-pages-setup');
    ?>

		</form>
	</div>

<?php 
}
Example #4
0
        /**
         * Creates the page used to set options
         * @since     1.0
         * @updated   1.0
         *
         */
        public function toolkit_menu_page()
        {
            if (!current_user_can('manage_options')) {
                wp_die(esc_attr__('You do not have sufficient permissions to access this page.', 'Twoot_Toolkit'));
            }
            echo isset($_GET['settings-updated']) ? '<div class="updated fade"><p><strong>' . esc_attr__('Settings Updated.', 'Twoot_Toolkit') . '</strong></p></div>' : '';
            ?>
		<div class="wrap twoot-toolkit-page">
		<div id="icon-options-general" class="icon32"></div><h2 class="twoot-toolkit-page-title"><?php 
            echo TWOOT_TOOLKIT_NAME;
            ?>
<span><?php 
            esc_attr_e('Version: ', 'Twoot_Toolkit');
            echo TWOOT_TOOLKIT_VERSION;
            ?>
</span></h2>
		<form method="post" action="<?php 
            echo admin_url('options.php');
            ?>
">
		<?php 
            echo settings_fields(TWOOT_TOOLKIT_SLUG);
            ?>
		<?php 
            echo do_settings_sections(TWOOT_TOOLKIT_SLUG);
            ?>
		<?php 
            submit_button();
            ?>
		</form>
		</div>
		<?php 
        }
    function mysettings()
    {
        ?>
		<table class="form-table">
		<tbody>
		  <tr valign="top">
		  <th scope="row"><?php 
        _e('Subscription button', 'membership');
        ?>
</th>
		  <?php 
        $button = get_option($this->gateway . "_payment_button", 'https://www.paypal.com/en_US/i/btn/btn_subscribe_LG.gif');
        ?>
		  <td><input type="text" name="payment_button" value="<?php 
        esc_attr_e($button);
        ?>
" style='width: 40em;' />
		  <br />
		  </td>
		  </tr>

		</tbody>
		</table>
		<?php 
    }
function rolopress_do_company_settings_page()
{
    ?>

	<div class="wrap" style="margin: 10px 0 0 0;">
		<?php 
    echo '<img class="icon32" src=' . ROLOPRESS_IMAGES . '/admin/company-menu-header.png />';
    ?>
		<h2>Company Settings</h2>
		
		<form name="settings" action="options.php" method="post" enctype="multipart/form-action">
		<?php 
    settings_fields('rolopress_company_options');
    ?>
		<?php 
    do_settings_sections(__FILE__);
    ?>
		<p class="submit"><input name="Submit" type="submit" class="button-primary" value="<?php 
    esc_attr_e('Save Changes');
    ?>
" /></p>
		</form>

	</div>
<?php 
}
    /**
     * Outputs the Backbone template for a tab's search fields.
     *
     * @param string $id  The template ID.
     * @param string $tab The tab ID.
     */
    public function search($id, $tab)
    {
        ?>
		<form action="#" class="mexp-toolbar-container clearfix tab-all">

			<input
				type="text"
				name="q"
				value="{{ data.params.q }}"
				class="mexp-input-text mexp-input-search"
				size="40"
				placeholder="<?php 
        esc_attr_e('Search photos', 'resourcespace');
        ?>
"
			>

			<input class="button button-large" type="submit" value="<?php 
        esc_attr_e('Search', 'resourcespace');
        ?>
">

			<div class="spinner"></div>

		</form>

	<?php 
    }
function converio_cart_menu_item()
{
    if (is_woocommerce_activated()) {
        ?>

<li class="border"><a class="cart collapsed" data-target=".shopping-bag" href="javascript:;">
	<span class="cart-icon"><?php 
        esc_attr_e('Cart', 'converio');
        ?>
</span>
	
	<?php 
        global $woocommerce;
        $my_cart_count = $woocommerce->cart->cart_contents_count;
        echo '<span class="cart-number-box';
        if ($my_cart_count > 0) {
            echo ' active';
        }
        echo '">';
        echo sprintf(_n('%d', '%d', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count);
        echo '</span>';
        ?>
	</a></li>
<?php 
    }
}
function maniapress_core_settings_page()
{
    ?>
	<div class="wrap">
		<div id="icon-options-general" class="icon32"><br /></div><h2>ManiaPress Settings</h2>
		<p><b>Need help?</b> Don't hesitate to check out 
			<a href="http://code.google.com/p/maniapress/" target="_blank">the Wiki on the projects' Website</a> 
			or to <a href="http://forum.maniaplanet.com/viewforum.php?f=330" target="_blank">ask your questions in the forum</a>!</p>
		<form action="options.php" method="post">
			<?php 
    settings_fields('maniapress-options');
    ?>
			<?php 
    do_settings_sections('maniapress-settings');
    ?>
			<p class="submit">
				<input name="submit" type="submit" id="submit" class="button-primary" 
					   value="<?php 
    esc_attr_e('Save Changes');
    ?>
" />
			</p>
		</form>
	</div>
	<?php 
}
Example #10
0
    protected function render_before_field($value, $instance)
    {
        parent::render_before_field($value, $instance);
        ?>
		<a href="#" class="select-content-button button-secondary"><?php 
        esc_html_e('Select Content', 'so-widgets-bundle');
        ?>
</a>
		<div class="existing-content-selector">

			<input type="text" class="content-text-search"
			       placeholder="<?php 
        esc_attr_e('Search Content', 'so-widgets-bundle');
        ?>
"/>

			<ul class="posts"></ul>

			<div class="buttons">
				<a href="#" class="button-close button-secondary"><?php 
        esc_html_e('Close', 'so-widgets-bundle');
        ?>
</a>
			</div>
		</div>
		<div class="url-input-wrapper">
		<?php 
    }
Example #11
0
    function form($instance)
    {
        // Check values
        if ($instance) {
            $title = esc_attr($instance['title']);
        } else {
            $title = '';
        }
        ?>
        <p>
            <label for="<?php 
        echo esc_attr($this->get_field_id('title'));
        ?>
"><?php 
        echo esc_attr_e('Title', 'framework');
        ?>
</label>
            <input class="spTitle" id="<?php 
        echo esc_attr($this->get_field_id('title'));
        ?>
" name="<?php 
        echo esc_attr($this->get_field_name('title'));
        ?>
" type="text" value="<?php 
        echo esc_attr($title);
        ?>
" />
        </p>    
              <?php 
    }
Example #12
0
/**
 * Displaying the search form.
 *
 */
function interface_display_searchform()
{
    ?>

<form action="<?php 
    echo esc_url(home_url('/'));
    ?>
" method="get" class="searchform clearfix">
  <label class="assistive-text">
    <?php 
    _e('Search', 'interface');
    ?>
  </label>
  <input type="search" placeholder="<?php 
    esc_attr_e('Search', 'interface');
    ?>
" class="s field" name="s">
  <input type="submit" value="<?php 
    esc_attr_e('Search', 'interface');
    ?>
" class="search-submit">
</form>
<!-- .search-form -->
<?php 
}
Example #13
0
function clearly_demo_slider()
{
    ?>
	<div id="top-slider" class="nivo-theme-clearly">
		<div id="top-slider-slides" class="nivoSlider">
			<img src="<?php 
    echo get_template_directory_uri();
    ?>
/images/demo/slide1.jpg" alt="<?php 
    esc_attr_e('In general, luck has nothing to do with it.', 'clearly');
    ?>
" />
			<img src="<?php 
    echo get_template_directory_uri();
    ?>
/images/demo/slide2.jpg" alt="<?php 
    esc_attr_e('Art is a thoughtful and thorough process, not to be taken lightly.', 'clearly');
    ?>
" />
		</div>

		<div class="nav-box">
			<span></span>
			<div class="directionNav">
				<a href="#" class="prevNav"></a>
				<a href="#" class="nextNav"></a>
			</div>
		</div>
	</div>
	<?php 
}
Example #14
0
function emodal_admin_theme_form_general_tab_settings_name()
{
    ?>
<tr>
		<th scope="row">
			<label for="name">
				<?php 
    _e('Name', EMCORE_SLUG);
    ?>
				<span class="description">(required)</span>
			</label>
		</th>
		<td>
			<input type="text" class="regular-text" name="theme[name]" id="name" value="<?php 
    esc_attr_e(get_current_modal_theme('name'));
    ?>
" required/>
		</td>
	</tr><?php 
    if (!class_exists('EMUnlimitedThemes')) {
        ?>
	<tr>
		<th colspan="2" class="pro-upgrade-tip">
			<hr/>
			<img style="" src="<?php 
        echo EMCORE_URL;
        ?>
/assets/images/admin/icon-info-21x21.png"/> Free Users can only create one (1) theme. <a href="http://easy-modal.com/addons/unlimited-themes" target="_blank">Check out Unlimited Modals!</a>.
		</th>
	</tr><?php 
    }
}
Example #15
0
function mtsh_plugin_options_page()
{
    ?>
<div>
    <h2>SyntaxHighlighter MT Options</h2>
    <form action="options.php" method="post">
        <?php 
    settings_fields('mtsh_plugin_options');
    ?>
        <?php 
    do_settings_sections(__FILE__);
    ?>
        <br/>
        <input name="Submit" type="submit" value="<?php 
    esc_attr_e('Save Changes');
    ?>
"/>
    </form>
    <br/>
    <hr/>
    For more information about this plugin, please see <a href="http://megatome.com/syntaxhighlighter">http://megatome.com/syntaxhighlighter</a><br/>
    For more information about the code this plugin is built upon, go to <a href="http://alexgorbatchev.com/wiki/SyntaxHighlighter">http://alexgorbatchev.com/wiki/SyntaxHighlighter</a>
</div>
<?php 
}
Example #16
0
/**
 * Options page html elements
 */
function mgop_options_page()
{
    ?>
	
	<div class="wrap mgop-wrap">
		<?php 
    screen_icon();
    ?>
        <h2>Multiple Gallery on Post Settings</h2>
		<br/>		
		<form action="options.php" method="post" class="mgop-form">
			<?php 
    settings_fields('mgop_options');
    ?>
			
			<?php 
    echo mgop_setting_string();
    ?>
			
			 <br/>
			<input name="Submit" type="submit" class="button-primary" value="<?php 
    esc_attr_e('Save Changes');
    ?>
" />
		</form>		
		<div class="mgop_logo" style="float:left;margin-left: 20px;"></div>
	</div>
	
	<?php 
}
Example #17
0
function ninja_forms_field_timed_submit_display($field_id, $data, $form_id = '')
{
    $field_class = ninja_forms_get_field_class($field_id, $form_id);
    if (isset($data['timer-text']) and $data['timer-text'] != '') {
        $label = $data['timer-text'];
    } else {
        $label = __('Please wait %n seconds', 'ninja-forms');
    }
    if (isset($data['countdown']) and $data['countdown'] != '') {
        $countdown = $data['countdown'];
    } else {
        $countdown = '10';
    }
    if (isset($data['label']) and $data['label'] != '') {
        $submit_text = $data['label'];
    } else {
        $submit_text = __('Submit', 'ninja-forms');
    }
    $label = preg_replace("/%n/", "<span>" . $countdown . "</span>", $label);
    ?>

	<input id="ninja_forms_field_<?php 
    echo $field_id;
    ?>
_js" name="ninja_forms_field_<?php 
    echo $field_id;
    ?>
[no-js]" type="hidden" value="1" rel="<?php 
    echo $field_id;
    ?>
_js" class="no-js" />

	<button type="submit" name="ninja_forms_field_<?php 
    echo $field_id;
    ?>
[timer]" class="<?php 
    echo $field_class;
    ?>
 countdown-timer" id="ninja_forms_field_<?php 
    echo $field_id;
    ?>
" value="<?php 
    echo $countdown;
    ?>
" rel="<?php 
    echo $field_id;
    ?>
" data-countdown="<?php 
    echo $countdown;
    ?>
" data-text="<?php 
    esc_attr_e($submit_text);
    ?>
"><?php 
    echo $label;
    ?>
</button>

	<?php 
}
    public function print_scripts()
    {
        global $pagenow, $post_type;
        if ('post-new.php' == $pagenow && Advanced_Ads::POST_TYPE_SLUG == $post_type || 'post.php' == $pagenow && Advanced_Ads::POST_TYPE_SLUG == $post_type && isset($_GET['action']) && 'edit' == $_GET['action']) {
            $db = Gadsense_Data::get_instance();
            $pub_id = $db->get_adsense_id();
            ?>
			<script type="text/javascript">
				var gadsenseData = {
					pubId : '<?php 
            echo $pub_id;
            ?>
',
					msg : {
						unknownAd : '<?php 
            esc_attr_e("The ad details couldn't be retrieved from the ad code", ADVADS_SLUG);
            ?>
',
						pubIdMismatch : '<?php 
            _e('Warning : The AdSense account from this code does not match the one set with the Advanced Ads Plugin. This ad might cause troubles when used in the front end.', ADVADS_SLUG);
            ?>
'
					}
				};
			</script>
			<?php 
        }
    }
Example #19
0
/**
 * Add-ons Page
 *
 * Renders the add-ons page content.
 *
 * @since 1.0
 * @return void
 */
function give_add_ons_page()
{
    ob_start();
    ?>
	<div class="wrap" id="give-add-ons">
		<h1><?php 
    esc_html_e('Give Add-ons', 'give');
    ?>
			&nbsp;&mdash;&nbsp;<a href="https://givewp.com/addons/" class="button-primary give-view-addons-all" title="<?php 
    esc_attr_e('Browse All Add-ons', 'give');
    ?>
" target="_blank"><?php 
    esc_html_e('View All Add-ons', 'give');
    ?>
				<span class="dashicons dashicons-external"></span></a>
		</h1>

		<p><?php 
    esc_html_e('The following Add-ons extend the functionality of Give.', 'give');
    ?>
</p>
		<?php 
    echo give_add_ons_get_feed();
    ?>
	</div>
	<?php 
    echo ob_get_clean();
}
Example #20
0
    /**
     * Shows the Secondary Menu 
     *
     * default load in sidebar-header-right.php
     */
    function catchbase_secondary_menu()
    {
        if (has_nav_menu('secondary')) {
            ?>
    	<nav class="nav-secondary" role="navigation">
            <div class="wrapper">
                <h1 class="assistive-text"><?php 
            _e('Secondary Menu', 'catch-base');
            ?>
</h1>
                <div class="screen-reader-text skip-link"><a href="#content" title="<?php 
            esc_attr_e('Skip to content', 'catch-base');
            ?>
"><?php 
            _e('Skip to content', 'catch-base');
            ?>
</a></div>
                <?php 
            $catchbase_secondary_menu_args = array('theme_location' => 'secondary', 'menu_class' => 'menu catchbase-nav-menu');
            wp_nav_menu($catchbase_secondary_menu_args);
            ?>
        	</div><!-- .wrapper -->
        </nav><!-- .nav-secondary -->

<?php 
        }
    }
function build_alittle_admin_page()
{
    ?>
			<div id="boilerplate-options-wrap">
				<div class="icon32" id="icon-tools"><br /></div>
				<h2>Boilerplate Admin</h2>
				<p>So, there's actually a tremendous amount going on here.  If you're not familiar with <a href="http://html5boilerplate.com/">HTML5 Boilerplate</a> or the <a href="http://starkerstheme.com/">Starkers theme</a> (upon which this theme is based) you should check them out.</p>
				<p>Choose below which options you want included in your site.</p>
				<p>The clumsiest part of this plug-in is dealing with the CSS files.  Check the <a href="<?php 
    echo get_template_directory_uri();
    ?>
/readme.txt">Read Me file</a> for details on how I suggest handling them.</p>
				<form method="post" action="options.php" enctype="multipart/form-data">
					<?php 
    settings_fields('plugin_options');
    /* very last function on this page... */
    ?>
					<?php 
    do_settings_sections('boilerplate-admin');
    /* let's get started! */
    ?>
					<p class="submit"><input name="Submit" type="submit" class="button-primary" value="<?php 
    esc_attr_e('Save Changes');
    ?>
" /></p>
				</form>
			</div>
		<?php 
}
Example #22
0
/**
 * Add new register fields for WooCommerce registration.
 *
 * @return string Register fields HTML.
 */
function wooc_extra_register_fields()
{
    ?>

	<p class="form-row form-row-first">
		<label for="reg_billing_first_name"><?php 
    _e('First name', 'woocommerce');
    ?>
 <span class="required">*</span></label>
		<input type="text" class="input-text" name="billing_first_name" id="reg_billing_first_name" value="<?php 
    if (!empty($_POST['billing_first_name'])) {
        esc_attr_e($_POST['billing_first_name']);
    }
    ?>
" />
	</p>

	<p class="form-row form-row-last">
		<label for="reg_billing_last_name"><?php 
    _e('Last name/Surname', 'woocommerce');
    ?>
 <span class="required">*</span></label>
		<input type="text" class="input-text" name="billing_last_name" id="reg_billing_last_name" value="<?php 
    if (!empty($_POST['billing_last_name'])) {
        esc_attr_e($_POST['billing_last_name']);
    }
    ?>
" />
	</p>

	<?php 
}
Example #23
0
/**
 * Output the settings tabs.
 *
 * @param string $active_tab Slug of the tab that is active.
 */
function bp_links_admin_settings_tabs($active_tab = null)
{
    // handle empty tab
    if (true === empty($active_tab)) {
        // set it
        $active_tab = bp_links_admin_settings_section();
    }
    $idle_class = 'nav-tab';
    $active_class = $idle_class . ' nav-tab-active';
    $tabs = apply_filters('bp_links_admin_settings_tabs', array(10 => array('tab' => 'global', 'name' => __('Global', 'buddypress-links')), 20 => array('tab' => 'directory', 'name' => __('Directory', 'buddypress-links')), 30 => array('tab' => 'content', 'name' => __('Content', 'buddypress-links')), 40 => array('tab' => 'voting', 'name' => __('Voting', 'buddypress-links')), 50 => array('tab' => 'profile', 'name' => __('Profile', 'buddypress-links')), 60 => array('tab' => 'groups', 'name' => __('Groups', 'buddypress'))));
    // sort result by keys in case tabs were added by filter
    ksort($tabs);
    // Loop through tabs and build navigation
    foreach ($tabs as $tab_data) {
        // determine tab class
        $tab_class = $tab_data['tab'] === $active_tab ? $active_class : $idle_class;
        // render this tab
        ?>
		<a href="#<?php 
        echo esc_attr($tab_data['tab']);
        ?>
" class="<?php 
        esc_attr_e($tab_class);
        ?>
"><?php 
        esc_html_e($tab_data['name']);
        ?>
</a><?php 
    }
}
    /**
     * @param $jobid
     * @return void
     * @internal param $main
     */
    public function edit_tab($jobid)
    {
        ?>
    <h3 class="title"><?php 
        _e('Backup settings', 'backwpup');
        ?>
</h3>
    <p></p>
    <table class="form-table">
        <tr>
            <th scope="row"><label for="idbackupdir"><?php 
        _e('Folder to store backups in', 'backwpup');
        ?>
</label></th>
            <td>
                <input name="backupdir" id="idbackupdir" type="text" value="<?php 
        echo esc_attr(BackWPup_Option::get($jobid, 'backupdir'));
        ?>
" class="regular-text" />
            </td>
        </tr>
        <tr>
            <th scope="row"><?php 
        _e('File Deletion', 'backwpup');
        ?>
</th>
            <td>
				<?php 
        if (BackWPup_Option::get($jobid, 'backuptype') == 'archive') {
            ?>
                    <label for="idmaxbackups"><input name="maxbackups" id="idmaxbackups" type="text" size="3" value="<?php 
            echo esc_attr(BackWPup_Option::get($jobid, 'maxbackups'));
            ?>
" class="small-text help-tip" title="<?php 
            esc_attr_e('Oldest files will be deleted first. 0 = no deletion', 'backwpup');
            ?>
" />&nbsp;
					<?php 
            _e('Number of files to keep in folder.', 'backwpup');
            ?>
</label>
					<?php 
        } else {
            ?>
                    <label for="idbackupsyncnodelete"><input class="checkbox" value="1"
                           type="checkbox" <?php 
            checked(BackWPup_Option::get($jobid, 'backupsyncnodelete'), TRUE);
            ?>
                           name="backupsyncnodelete" id="idbackupsyncnodelete" /> <?php 
            _e('Do not delete files while syncing to destination!', 'backwpup');
            ?>
</label>
					<?php 
        }
        ?>
            </td>
        </tr>
    </table>
	<?php 
    }
    public function zenodo_required_meta_fields()
    {
        ?>
			<div id="zenododiv" class="postbox">
				<div class="handlediv" title="<?php 
        esc_attr_e('Click to toggle');
        ?>
"><br /></div>
				<h3 class="hndle"><?php 
        _e('Bibliographic Metadata');
        ?>
</h3>
				<div class="inside">
					<label for="pf_affiliations"><input type="text" id="pf_affiliations" name="pf_affiliations" value="" placeholder="Sample University;" /><br />&nbsp;<?php 
        _e('Enter Author Affiliations, semicolon seperated, in same order as authors.', 'pf');
        ?>
</label><hr />
					<?php 
        $title = isset($_GET['t']) ? trim(strip_tags(html_entity_decode(stripslashes($_GET['t']), ENT_QUOTES))) : '';
        $tite = esc_html($title);
        ?>
					<label for="zen_source_title"><textarea type="text" id="zen_source_title" rows="5" cols="20" name="zen_source_title" placeholder="Name of Site"><?php 
        echo $title;
        ?>
</textarea><br />&nbsp;<?php 
        _e('Name of current site.', 'pf');
        ?>
</label><hr />
					<label for="pf_keywords"><input type="text" id="pf_keywords" name="pf_keywords" value="" placeholder="Keyword1; Keyword2;" /><br />&nbsp;<?php 
        _e('Enter Keywords, semicolon seperated.', 'pf');
        ?>
</label><hr />

					<label for="pf_references"><textarea id="pf_references" name="pf_references" value="" rows="10" cols="20"></textarea><br />&nbsp;<?php 
        _e('Enter links or DOIs for references listed in article, semicolons separated.', 'pf');
        ?>
</label><hr />

					<label for="zen_item_date"><input type="text" id="zen_item_date" name="zen_item_date" value="" placeholder="2015-10-30" /><br />&nbsp;<?php 
        _e('Enter published date in the format YYYY-MM-DD, if that date is not today.', 'pf');
        ?>
</label><hr />

					<label for="pf_abstract"><textarea id="pf_abstract" name="pf_abstract" value="" rows="10" cols="20"></textarea><br />&nbsp;<?php 
        _e('Enter an abstract or description.', 'pf');
        ?>
</label><hr />
					<label for="pf_license">
						<select type="text" id="pf_license" name="pf_license">
							<option value="cc-zero">CC-0</option>
							<option value="cc-by">CC-BY</option>
						</select><br />
						CC0  :: “I don’t care about attribution”
						CC-By :: “I want to receive attribution”
					</label><hr />
				</div>

			</div>
		<?php 
    }
function rolopress_do_layout_page()
{
    ?>

	<div class="wrap" style="margin: 10px 0 0 0;">
		<div class="icon32" id="icon-themes"><br></div>
		<h2>RoloPress Layout</h2>
		
		<form name="settings" action="options.php" method="post" enctype="multipart/form-action">
		
		<p class="submit"><input name="Submit" type="submit" class="button-primary" value="<?php 
    esc_attr_e('Save Changes');
    ?>
" /></p>
		<?php 
    settings_fields('rolopress_layout_options');
    ?>
		<?php 
    do_settings_sections(__FILE__);
    ?>
		<p class="submit"><input name="Submit" type="submit" class="button-primary" value="<?php 
    esc_attr_e('Save Changes');
    ?>
" /></p>
		</form>

	</div>
<?php 
}
function dln_form_profile_fields($profile_fields)
{
    do_action('submit_profile_form_profile_fields_start');
    foreach ($profile_fields as $key => $field) {
        ?>
		<div class="form-group fieldset-<?php 
        esc_attr_e($key);
        ?>
">
			<?php 
        if ($field['label']) {
            ?>
			<label class="col-sm-3 control-label" for="<?php 
            esc_attr_e($key);
            ?>
"><?php 
            echo $field['label'] . ($field['required'] ? '' : ' <small>' . __('(optional)', 'dln-skill') . '</small>');
            ?>
</label>
			<?php 
        }
        ?>
			<div class="col-sm-9">
				<?php 
        dln_form_get_template('form-fields/' . $field['type'] . '-field.php', array('key' => $key, 'field' => $field));
        ?>
			</div>
		</div>
	<?php 
    }
    do_action('submit_profile_form_profile_fields_end');
}
Example #28
0
function toutrix_user_form()
{
    global $user;
    global $toutrix_adserver;
    $user = $toutrix_adserver->get_user();
    if (isset($_GET['withdraw_bitcoin'])) {
        //$fields = new stdclass();
        //$fields->id = $user->id;
        $user->withdraw_bitcoin = sanitize_text_field($_GET['withdraw_bitcoin']);
        $user->withdraw_at = sanitize_text_field($_GET['withdraw_at']);
        $user = $toutrix_adserver->user_update($user);
        if ($user->error) {
            ?>
<div class="updated"><p><strong><?php 
            _e($user->error, 'user_updated');
            ?>
</strong></p></div>
<?php 
        } else {
            ?>
<div class="updated"><p><strong><?php 
            _e('User has been updated', 'user_updated');
            ?>
</strong></p></div>
<?php 
        }
    }
    ?>
<h2>User profile</h2>
<form>
<input type='hidden' name='page' value='mt_toutrix_page-handle'>
<input type='hidden' name='tab' value='setting'>
<table class="form-table">
<tr><td>Withdrawal bitcoin address:</td><td><input type='text' name='withdraw_bitcoin' value='<?php 
    echo $user->withdraw_bitcoin;
    ?>
'><br/>
Make sure this address is correct.<br/>
Leave it blank to not receive automatic payment.</td>
</tr>
<tr>
<td>Automatic withdrawal after:</td><td>$<input type='text' name='withdraw_at' value='<?php 
    echo $user->withdraw_at;
    ?>
' length='4'>
<br/>A payment will be sent when your account will be at that amount<br/>
Minimum is $0.10</td>
</tr>
</table>

<p class="submit">
<input type="submit" name="Submit" name="b" class="button-primary" value="<?php 
    esc_attr_e('Save Changes');
    ?>
" />
</p>

</form>
<?php 
}
    /**
     * Renders the control's content.
     *
     * @since 3.9.0
     * @access public
     */
    public function render_content()
    {
        $id = 'reorder-widgets-desc-' . str_replace(array('[', ']'), array('-', ''), $this->id);
        ?>
		<button type="button" class="button-secondary add-new-widget" aria-expanded="false" aria-controls="available-widgets">
			<?php 
        _e('Add a Widget');
        ?>
		</button>
		<button type="button" class="button-link reorder-toggle" aria-label="<?php 
        esc_attr_e('Reorder widgets');
        ?>
" aria-describedby="<?php 
        echo esc_attr($id);
        ?>
">
			<span class="reorder"><?php 
        _ex('Reorder', 'Reorder widgets in Customizer');
        ?>
</span>
			<span class="reorder-done"><?php 
        _ex('Done', 'Cancel reordering widgets in Customizer');
        ?>
</span>
		</button>
		<p class="screen-reader-text" id="<?php 
        echo esc_attr($id);
        ?>
"><?php 
        _e('When in reorder mode, additional controls to reorder widgets will be available in the widgets list above.');
        ?>
</p>
		<?php 
    }
Example #30
0
function display_setup_form( $error = null ) {
	// Ensure that Blogs appear in search engines by default
	$blog_public = 1;
	if ( isset($_POST) && !empty($_POST) ) {
		$blog_public = isset($_POST['blog_public']);
	}

	if ( ! is_null( $error ) ) {
?>
<p><?php printf( __('<strong>ERROR</strong>: %s'), $error); ?></p>
<?php } ?>
<form id="setup" method="post" action="install.php?step=2">
	<table class="form-table">
		<tr>
			<th scope="row"><label for="weblog_title"><?php _e('Blog Title'); ?></label></th>
			<td><input name="weblog_title" type="text" id="weblog_title" size="25" value="<?php echo ( isset($_POST['weblog_title']) ? esc_attr($_POST['weblog_title']) : '' ); ?>" /></td>
		</tr>
		<tr>
			<th scope="row"><label for="admin_email"><?php _e('Your E-mail'); ?></label></th>
			<td><input name="admin_email" type="text" id="admin_email" size="25" value="<?php echo ( isset($_POST['admin_email']) ? esc_attr($_POST['admin_email']) : '' ); ?>" /><br />
			<?php _e('Double-check your email address before continuing.'); ?></td>
		</tr>
		<tr>
			<td colspan="2"><label><input type="checkbox" name="blog_public" value="1" <?php checked($blog_public); ?> /> <?php _e('Allow my blog to appear in search engines like Google and Technorati.'); ?></label></td>
		</tr>
	</table>
	<p class="step"><input type="submit" name="Submit" value="<?php esc_attr_e('Install WordPress'); ?>" class="button" /></p>
</form>
<?php
}