Exemplo n.º 1
1
function ewww_image_optimizer_webp_migrate_preview()
{
    ewwwio_debug_message('<b>' . __FUNCTION__ . '()</b>');
    ?>
	<div class="wrap"> 
	<h1><?php 
    esc_html_e('Migrate WebP Images', EWWW_IMAGE_OPTIMIZER_DOMAIN);
    ?>
</h1>
<?php 
    esc_html_e('The migration is split into two parts. First, the plugin needs to scan all folders for webp images. Once it has obtained the list of images to rename, it will proceed with the renaming');
    $button_text = esc_attr__('Start Migration', EWWW_IMAGE_OPTIMIZER_DOMAIN);
    $loading_image = plugins_url('/images/wpspin.gif', __FILE__);
    // create the html for the migration form and status divs
    ?>
		<div id="webp-loading">
		</div>
		<div id="webp-progressbar"></div>
		<div id="webp-counter"></div>
		<div id="webp-status"></div>
			<div id="bulk-forms">
			<form id="webp-start" class="webp-form" method="post" action="">
				<input id="webp-first" type="submit" class="button-secondary action" value="<?php 
    echo $button_text;
    ?>
" />
			</form>
	</div>
<?php 
}
    function display()
    {
        esc_html_e("Click the 'Get Started' button to complete your installation.", 'gravityflow');
        ?>

	<?php 
    }
Exemplo n.º 3
0
    /**
     * 設定パネルに追加
     *
     * @param numeric $key バリデーションルールセットの識別番号
     * @param array $value バリデーションルールセットの内容
     */
    public function admin($key, $value)
    {
        $bytes = '';
        if (is_array($value[$this->getName()]) && isset($value[$this->getName()]['bytes'])) {
            $bytes = $value[$this->getName()]['bytes'];
        }
        ?>
		<table>
			<tr>
				<td><?php 
        esc_html_e('Permitted file size', MWF_Config::DOMAIN);
        ?>
</td>
				<td><input type="text" value="<?php 
        echo esc_attr($bytes);
        ?>
" name="<?php 
        echo MWF_Config::NAME;
        ?>
[validation][<?php 
        echo $key;
        ?>
][<?php 
        echo esc_attr($this->getName());
        ?>
][bytes]" /> <span class="mwf_note"><?php 
        esc_html_e('bytes', MWF_Config::DOMAIN);
        ?>
</span></td>
			</tr>
		</table>
		<?php 
    }
    protected function tfoot_append()
    {
        $prev = isset($_REQUEST['prev']) ? esc_attr($_REQUEST['prev']) : '';
        $clear_cart_url = add_query_arg(array('prev' => $prev, '_wp_nonce' => wp_create_nonce('wpsc-clear-cart')), wpsc_get_cart_url('clear'));
        ?>
		<tr class="wpsc-cart-item-table-actions">
			<td></td>
			<td colspan="<?php 
        echo count($this->columns) - 1;
        ?>
">
				<a class="wpsc-button wpsc-button-small wpsc-clear-cart" href="<?php 
        echo esc_url($clear_cart_url);
        ?>
"><?php 
        esc_html_e('Clear Cart', 'wp-e-commerce');
        ?>
</a>
				<input type="hidden" name="action" value="update_quantity" />
				<input type="hidden" name="prev" value="<?php 
        echo $prev;
        ?>
">
			</td>
		</tr>
		<?php 
    }
Exemplo n.º 5
0
    public function form($instance)
    {
        if (isset($instance['title'])) {
            $title = $instance['title'];
        } else {
            $title = esc_html__('Site Links', 'wise-blog');
        }
        // Backend Admin Form
        ?>
<p>
<label for="<?php 
        echo esc_attr($this->get_field_id('title'));
        ?>
"><?php 
        esc_html_e('Title:', 'wise-blog');
        ?>
</label> 
<input class="widefat" 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 
    }
Exemplo n.º 6
0
    /**
     * add_mwform_tag_generator
     * フォームタグジェネレーター
     */
    public function mwform_tag_generator_dialog(array $options = array())
    {
        ?>
		<p>
			<strong>name<span class="mwf_require">*</span></strong>
			<?php 
        $name = $this->get_value_for_generator('name', $options);
        ?>
			<input type="text" name="name" value="<?php 
        echo esc_attr($name);
        ?>
" />
		</p>
		<p>
			<strong><?php 
        esc_html_e('String on the button', MWF_Config::DOMAIN);
        ?>
</strong>
			<?php 
        $value = $this->get_value_for_generator('value', $options);
        ?>
			<input type="text" name="value" value="<?php 
        echo esc_attr($value);
        ?>
" />
		</p>
		<?php 
    }
Exemplo n.º 7
0
    function form($instance)
    {
        if (!isset($instance['title'])) {
            $instance['title'] = esc_html__('Follow us', 'activello');
        }
        ?>

      <p><label for="<?php 
        echo $this->get_field_id('title');
        ?>
"><?php 
        esc_html_e('Title ', 'activello');
        ?>
</label>

      <input type="text" value="<?php 
        echo esc_attr($instance['title']);
        ?>
"
                          name="<?php 
        echo $this->get_field_name('title');
        ?>
"
                          id="<?php 
        $this->get_field_id('title');
        ?>
"
                          class="widefat" />
      </p>

    	<?php 
    }
Exemplo n.º 8
0
 /**
  * Renders toolbar content.
  *
  * @since 1.0.0
  *
  * @access protected
  */
 protected function _renderToolbar()
 {
     echo '<a class="button button-large" href="', add_query_arg('tab', 'data'), '">';
     esc_html_e('Back', 'visualizer');
     echo '</a>';
     echo '<input type="submit" class="button button-primary button-large push-right" value="', $this->button, '">';
 }
Exemplo n.º 9
0
    function form($instance)
    {
        $instance = wp_parse_args((array) $instance, array('warrior_category_list_title' => esc_html__('Categories', 'newmagz')));
        ?>
        <p>
            <label for="<?php 
        echo $this->get_field_id('warrior_category_list_title');
        ?>
"><?php 
        esc_html_e('Widget Title:', 'newmagz');
        ?>
</label>
            <input type="text" id="<?php 
        echo $this->get_field_id('warrior_category_list_title');
        ?>
" class="widefat" name="<?php 
        echo $this->get_field_name('warrior_category_list_title');
        ?>
" value="<?php 
        echo esc_attr($instance['warrior_category_list_title']);
        ?>
" />
        </p>
	<?php 
    }
Exemplo n.º 10
0
    /**
     * Append the new UI to the user profile.
     *
     * @param WP_User $profileuser
     */
    public static function append_secure_keys($profileuser)
    {
        ?>
<h3><?php 
        esc_html_e('Remote Publishing Permissions', 'xmlrpcs');
        ?>
</h3>
<table class="form-table xmlrpcs_permissions">
<tbody>
	<tr>
		<th scope="row"><?php 
        esc_html_e('Allowed applications', 'xmlrpcs');
        ?>
</th>
		<td><?php 
        echo XMLRPCS_Profile::secure_keys_list($profileuser);
        ?>
</td>
	</tr>
	<tr>
		<th scope="row"><?php 
        esc_html_e('Add a new application', 'xmlrpcs');
        ?>
</th>
		<td><a id="xmlrpcs-generate" href=""><?php 
        esc_html_e('Generate application keys', 'xmlrpcs');
        ?>
</a></td>
	</tr>
</tbody>
</table>
<?php 
    }
Exemplo n.º 11
0
/**
 * Render license page.
 *
 * @since 1.4
 */
function bnfw_render_license_page()
{
    $settings = apply_filters('bnfw_settings_licenses', array());
    ob_start();
    ?>

	<div class="wrap">
		<h2><?php 
    esc_html_e('BNFW Add-on Licenses', 'bnfw');
    ?>
</h2>

		<form method="post" action="options.php" class="bnfw-form">
			<?php 
    settings_errors();
    settings_fields('bnfw-license-settings');
    do_settings_sections('bnfw-license');
    if (!empty($settings)) {
        submit_button(esc_html__('Save License', 'bnfw'));
    } else {
        esc_html_e('<br>You have no BNFW Add-ons installed yet. You can buy add-ons from the <a href="https://betternotificationsforwp.com/store/?utm_source=WP%20Admin%20Submenu%20Item%20-%20"Add-on%20Licenses"&amp;utm_medium=referral" target="_blank">Store</a>.', 'bnfw');
    }
    ?>
		</form>
	</div>

	<?php 
    echo ob_get_clean();
}
Exemplo n.º 12
0
        /**
         * Back-end widget form.
         */
        public function form($instance)
        {
            $selected_user_id = isset($instance['selected_user_id']) ? $instance['selected_user_id'] : 1;
            ?>

			<p>
				<label for="<?php 
            echo esc_attr($this->get_field_id('selected_user_id'));
            ?>
"><?php 
            esc_html_e('Display author:', 'proteuswidgets');
            ?>
</label>
				<?php 
            wp_dropdown_users(array('name' => $this->get_field_name('selected_user_id'), 'id' => $this->get_field_id('selected_user_id'), 'selected' => $selected_user_id, 'class' => 'widefat'));
            ?>

			</p>

			<p><small><?php 
            printf(esc_html__('To add the social icons to this widget, please install the %sExtra User Details%s plugin and fill in the details in the &quot;Users&quot; section.', 'proteuswidgets'), '<a href="https://wordpress.org/plugins/extra-user-details/" target="_blank">', '</a>');
            ?>
</small></p>

			<?php 
        }
    /**
     * @param WP_Theme $theme
     */
    public function display(WP_Theme $theme)
    {
        settings_errors();
        ?>
		<div class="wrap">
			<h2><?php 
        echo esc_html(sprintf(_x('Create a child theme from %s', 'The placeholder is for a theme\'s name', 'child-themify'), $theme->name));
        ?>
</h2>

			<form method="post" action="<?php 
        echo esc_url($this->getLink($theme));
        ?>
">
				<label for="ctf_new_theme"><?php 
        esc_html_e('Name your child theme', 'child-themify');
        ?>
</label><br>
				<input type="text" name="new_theme" id="ctf_new_theme" />
				<?php 
        submit_button(__("Let's go!", 'child-themify'));
        ?>
			</form>
		</div>
		<?php 
        // End of Display
    }
Exemplo n.º 14
0
    function rtmedia_login_register_modal_popup()
    {
        if (!is_user_logged_in()) {
            $uri = '';
            if (isset($_REQUEST['REQUEST_URI'])) {
                $uri = esc_url_raw(wp_unslash($_REQUEST['REQUEST_URI']));
            }
            ?>
			<div class="rtmedia-popup mfp-hide rtm-modal" id="rtmedia-login-register-modal">
				<div id="rtm-modal-container">
					<h2 class="rtm-modal-title"><?php 
            esc_html_e('Please login', 'buddypress-media');
            ?>
</h2>

					<p><?php 
            esc_html_e('You need to be logged in to upload Media or to create Album.', 'buddypress-media');
            ?>
</p>

					<p>
						<?php 
            echo esc_html__('Click', 'buddypress-media') . ' <a href="' . esc_url(wp_login_url($uri)) . '" title="' . esc_attr__('Login', 'buddypress-media') . '">' . esc_html__('HERE', 'buddypress-media') . '</a>' . esc_html__(' to login.', 'buddypress-media');
            ?>
					</p>
				</div>
			</div>
			<?php 
        }
    }
    public static function showInterface()
    {
        $theme = empty($_GET['theme']) ? '' : $_GET['theme'];
        $theme = wp_get_theme($theme);
        if (self::checkCreds()) {
            return;
        }
        settings_errors();
        ?>
		<div class="wrap">
			<h2><?php 
        echo esc_html(sprintf(_x('Create a child theme from %s', 'The placeholder is for a theme\'s name', 'child-themify'), $theme->name));
        ?>
</h2>

			<form method="post" action="<?php 
        echo esc_url(self::getLink($theme->get_stylesheet()));
        ?>
">
				<label><?php 
        esc_html_e('Name your child theme', 'child-themify');
        ?>
</label><br>
				<input type="text" name="new_theme" />
				<?php 
        submit_button(__("Let's go!", 'child-themify'));
        ?>
			</form>
		</div>
	<?php 
    }
/**
 * Render function for Media Vault custom column in WP Media Library list table.
 *
 * @since 0.4
 *
 * @uses mgjp_mv_get_the_permissions()
 * @param $column_name string name-id of current column
 * @param $post_id int ID of post being evaluated
 */
function mgjp_mv_render_media_library_custom_column($column_name, $post_id)
{
    if ('mgjp_mv_info' != $column_name) {
        return;
    }
    if (!($permission = mgjp_mv_get_the_permission($post_id))) {
        return;
    }
    $permissions = mgjp_mv_get_the_permissions();
    $permission = isset($permissions[$permission]) ? $permissions[$permission] : '';
    $description = isset($permission['description']) && !empty($permission['description']) ? esc_html($permission['description']) : '<span class="mgjp-mv-error">' . esc_html__('Undetermined! Permissions have been misconfigured for this attachment!', 'media-vault') . '</span>';
    ?>

    <em><?php 
    esc_html_e('Protected Media', 'media-vault');
    ?>
</em>

    <p>

      <div><?php 
    esc_html_e('Files accessible to:', 'media-vault');
    ?>
</div>

      <em><?php 
    echo $description;
    ?>
</em>

    </p>

  <?php 
}
Exemplo n.º 17
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 
    }
}
Exemplo n.º 18
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();
}
        /**
         * Outputs the options form on admin
         *
         * @param array $instance The widget options
         */
        public function form($instance)
        {
            if ($instance) {
                $title = $instance['title'];
            } else {
                $title = '';
            }
            ?>

      <p>
      <label for="<?php 
            echo $this->get_field_id('title');
            ?>
"><?php 
            esc_html_e('Title:', PLUGIN_TEXT_DOMAIN);
            ?>
</label>
      <input class="widefat" id="<?php 
            echo $this->get_field_id('title');
            ?>
" name="<?php 
            echo $this->get_field_name('title');
            ?>
" type="text" value="<?php 
            echo esc_attr($title);
            ?>
" />
      </p>

  <?php 
        }
Exemplo n.º 20
0
    function display_table()
    {
        $this->prepare_items();
        ?>
		<div class="wpglobus_flag_table_wrapper">
			<a id="wpglobus_add_language"
			   href="<?php 
        admin_url();
        ?>
admin.php?page=<?php 
        echo WPGlobus::LANGUAGE_EDIT_PAGE;
        ?>
&amp;action=add"
			   class="button button-primary"><?php 
        esc_html_e('Add new Language', 'wpglobus');
        ?>
</a>

			<?php 
        $this->prepare_items();
        ?>
			<div class="table-wrap wrap">

				<form method="post">
					<?php 
        $this->display();
        ?>
				</form>
			</div>
			<!-- .wrap -->
		</div>    <?php 
    }
    function admin_page_warning()
    {
        $jetpack = Jetpack::init();
        $blog_name = get_bloginfo('blogname');
        if (empty($blog_name)) {
            $blog_name = home_url('/');
        }
        ?>
		<div id="message" class="updated jetpack-message jp-connect">
			<div class="jetpack-wrap-container">
				<div class="jetpack-text-container">
					<h4>
					<p><?php 
        printf(esc_html(wptexturize(__("To use Publicize, you'll need to link your %s account to your WordPress.com account using the button to the right.", 'jetpack'))), '<strong>' . esc_html($blog_name) . '</strong>');
        ?>
</p>
					<p><?php 
        echo esc_html(wptexturize(__("If you don't have a WordPress.com account yet, you can sign up for free in just a few seconds.", 'jetpack')));
        ?>
</p>
					</h4>
				</div>
				<div class="jetpack-install-container">
					<p class="submit"><a href="<?php 
        echo $jetpack->build_connect_url(false, menu_page_url('sharing', false));
        ?>
" class="button-connector" id="wpcom-connect"><?php 
        esc_html_e('Link account with WordPress.com', 'jetpack');
        ?>
</a></p>
				</div>
			</div>
		</div>
		<?php 
    }
Exemplo n.º 22
0
function et_shortcodes_options_render_page()
{
    ?>
	<div class="wrap">
		<?php 
    screen_icon();
    ?>
		<h2><?php 
    esc_html_e('ET Shortcodes Plugin Options');
    ?>
</h2>
		<?php 
    settings_errors();
    ?>

		<form method="post" action="options.php">
			<?php 
    settings_fields('et_shortcodes_options');
    do_settings_sections('et_shortcodes_plugin_options');
    submit_button();
    ?>
		</form>
	</div>
	<?php 
}
Exemplo n.º 23
0
    protected function render_fallback()
    {
        $classes = 'accordion-section avadaredux-main avadaredux-panel control-section control-panel control-panel-' . esc_attr($this->type);
        ?>
			<li id="accordion-panel-<?php 
        echo esc_attr($this->id);
        ?>
" class="<?php 
        echo esc_attr($classes);
        ?>
">
				<h3 class="accordion-section-title" tabindex="0">
					<?php 
        echo wp_kses($this->title, array('em' => array(), 'i' => array(), 'strong' => array(), 'span' => array('class' => array(), 'style' => array())));
        ?>
					<span class="screen-reader-text"><?php 
        esc_html_e('Press return or enter to open this panel', 'avadaredux-framework');
        ?>
</span>
				</h3>
				<ul class="accordion-sub-container control-panel-content">
					<table class="form-table">
						<tbody><?php 
        $this->render_content();
        ?>
</tbody>
					</table>
				</ul>
			</li>
			<?php 
    }
Exemplo n.º 24
0
    function photon_msg()
    {
        if (current_user_can('jetpack_manage_modules')) {
            ?>
			<div class="jp-jitm">
				<a href="#"  data-module="photon" class="dismiss"><span class="genericon genericon-close"></span></a>
				<div class="jp-emblem">
					<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0" y="0" viewBox="0 0 172.9 172.9" enable-background="new 0 0 172.9 172.9" xml:space="preserve">
						<path d="M86.4 0C38.7 0 0 38.7 0 86.4c0 47.7 38.7 86.4 86.4 86.4s86.4-38.7 86.4-86.4C172.9 38.7 134.2 0 86.4 0zM83.1 106.6l-27.1-6.9C49 98 45.7 90.1 49.3 84l33.8-58.5V106.6zM124.9 88.9l-33.8 58.5V66.3l27.1 6.9C125.1 74.9 128.4 82.8 124.9 88.9z"/>
					</svg>
				</div>
				<p>
					<?php 
            _e('Deliver super-fast images to your visitors that are automatically optimized for any device.', 'jetpack');
            ?>
				</p>
				<p>
					<a href="#" data-module="photon" class="activate button button-jetpack">
						<?php 
            esc_html_e('Activate Photon', 'jetpack');
            ?>
					</a>
				</p>
			</div>
		<?php 
            //jitm is being viewed, track it
            $jetpack = Jetpack::init();
            $jetpack->stat('jitm', 'photon-viewed');
            $jetpack->do_stats('server_side');
        }
    }
    /**
     * Add a button next to the media button to copy the source post.
     *
     * @wp-hook media_buttons
     *
     * @param string $editor_id      tinyMCE editor ID.
     * @param int    $remote_site_id Remote site ID.
     *
     * @return  void
     */
    public function show_copy_button($editor_id, $remote_site_id)
    {
        $matches = array();
        preg_match('~mlp-translation-data-(\\d+)-content~', $editor_id, $matches);
        if (empty($matches[1])) {
            return;
        }
        $name = $this->get_name($remote_site_id, 'copied_post');
        $id = $this->get_id($remote_site_id, 'copied-post');
        ?>
		<a href="#" class="button mlp-copy-post-button dashicons-before dashicons-image-rotate-right"
			data-site-id="<?php 
        echo $matches[1];
        ?>
"><?php 
        esc_html_e('Copy source post', 'multilingual-press');
        ?>
</a>
		<input type="hidden" name="<?php 
        echo $name;
        ?>
" value="" id="<?php 
        echo $id;
        ?>
">
		<?php 
    }
    /**
     * Echo metabox content
     *
     * Echos the content of the metabox for this CPT.
     *
     * @since 1.0.0
     *
     * @return void
     */
    public function project_metabox()
    {
        global $post;
        // Create nonce.
        echo '<input type="hidden" name="project_post_noncename" id="project_post_noncename" value="' . esc_attr(wp_create_nonce(plugin_basename(__FILE__))) . '" />';
        echo '<table class="form-table">';
        // Get URL data.
        $project_url = get_post_meta($post->ID, '_project_url', true);
        ?>

		<tr class="width_normal p_box">
			<th scope="row"><label for="project_url"><?php 
        esc_html_e('URL', 'chriswiegman');
        ?>
</label></th>
			<td>
				<input type="text" id="project_url" name="project_url" class="large-text" value="<?php 
        echo esc_url($project_url);
        ?>
">
			</td>
		</tr>

		<?php 
        echo '</table>';
    }
Exemplo n.º 27
0
/**
 * Custom metaboxes above th editor
 *
 * @global string $post_type
 * @global array $post
 */
function wp_event_calendar_editor_above()
{
    global $post_type, $post;
    // Description title
    if (!in_array($post_type, wp_event_calendar_allowed_post_types(), true)) {
        return;
    }
    // Above editor
    do_meta_boxes($post_type, 'above_event_editor', $post);
    ?>

	<div class="meta-box-sortables">
		<div class="wp-event-calendar-editor postbox">
			<div class="handlediv" title="<?php 
    esc_html_e('Click to toggle', 'wp-event-calendar');
    ?>
"><br></div>
			<h3 class="hndle ui-sortable-handle"><span><?php 
    esc_html_e('Details', 'wp-event-calendar');
    ?>
</span></h3>
			<div class="inside" style="padding-top: 12px; margin-top: 0;">

	<?php 
}
Exemplo n.º 28
0
        function form($instance)
        {
            $instance = wp_parse_args((array) $instance, array('title' => 'Social Icons'));
            $title = strip_tags($instance['title']);
            ?>
			<div class="theme-widget-wrap">
				<label for="<?php 
            echo $this->get_field_id('title');
            ?>
"><?php 
            esc_html_e('Title:', 'Twoot_Toolkit');
            ?>
</label>
				<input  id="<?php 
            echo $this->get_field_id('title');
            ?>
" name="<?php 
            echo $this->get_field_name('title');
            ?>
" type="text" value="<?php 
            echo esc_attr($title);
            ?>
" />
			</div>

			<div class="theme-widget-wrap">
				<?php 
            esc_html_e('Please set your social icons in the theme options first.', 'Twoot_Toolkit');
            ?>
			</div>
			<?php 
        }
Exemplo n.º 29
0
    function form($instance)
    {
        if ($instance) {
            $title = $instance['title'];
        } else {
            $title = __('Spam Blocked', 'akismet');
        }
        ?>

		<p>
		<label for="<?php 
        echo $this->get_field_id('title');
        ?>
"><?php 
        esc_html_e('Title:', 'akismet');
        ?>
</label>
		<input class="widefat" id="<?php 
        echo $this->get_field_id('title');
        ?>
" name="<?php 
        echo $this->get_field_name('title');
        ?>
" type="text" value="<?php 
        echo esc_attr($title);
        ?>
" />
		</p>

<?php 
    }
Exemplo n.º 30
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 
    }