当前位置: 首页>>代码示例>>PHP>>正文


PHP format_to_edit函数代码示例

本文整理汇总了PHP中format_to_edit函数的典型用法代码示例。如果您正苦于以下问题:PHP format_to_edit函数的具体用法?PHP format_to_edit怎么用?PHP format_to_edit使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了format_to_edit函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct()
 {
     echo '<div class="ws-menu-page-hr"></div>' . "\n";
     echo '<h3 style="margin:0;">Auto-Return Page Template (<a href="#" onclick="jQuery(\'div#ws-plugin--s2member-pro-paypal-return-page-template\').toggle(); return false;" class="ws-dotted-link">optional customizations</a>)</h3>' . "\n";
     echo '<div id="ws-plugin--s2member-pro-paypal-return-page-template" style="display:none;">' . "\n";
     echo '<p>With s2Member Pro installed, you have the ability to customize your <a href="' . esc_attr(site_url("/?s2member_paypal_return=1&s2member_paypal_proxy=paypal&s2member_paypal_proxy_use=x-preview")) . '" target="_blank" rel="external">Auto-Return Page Template</a>. If you are using PayPal Standard integration <em>(i.e. PayPal Buttons)</em>, each of your Customers are returned back to your site immediately after they complete checkout at PayPal. Your Auto-Return Page displays a message and instructions for the Customer. s2Member may change the message and instructions dynamically, based on what the Customer is actually doing <em>(i.e. based on the type of transaction that is taking place)</em>. So, although we do NOT recommend that you attempt to change the message and instructions presented dynamically by s2Member, you CAN certainly control the Header, and/or the overall appearance of s2Member\'s Auto-Return Page Template.</p>' . "\n";
     echo '<p>The quickest/easiest way, is to simply add some HTML code in the box below. For instance, you might include an &lt;img&gt; tag with your logo. The box below, allows you to customize the Header section <em>(i.e. the top)</em> of s2Member\'s default Auto-Return Page Template. Everything else, including the textual response and other important details that each Customer needs to know about, are already handled dynamically by s2Member <em>(based on the type of transaction that is taking place)</em>. All you need to do is customize the Header with your logo and anything else you feel is important. Although this Header customization is completely optional, we recommend an <a href="http://www.w3schools.com/tags/tag_img.asp" target="_blank" rel="external">&lt;img&gt; tag</a>, with a logo that is around 300px wide. After you "Save All Changes" below, you may <a href="' . esc_attr(site_url("/?s2member_paypal_return=1&s2member_paypal_proxy=paypal&s2member_paypal_proxy_use=x-preview")) . '" target="_blank" rel="external">click this link to see what your Header looks like</a>.</p>' . "\n";
     echo '<table class="form-table">' . "\n";
     echo '<tbody>' . "\n";
     echo '<tr>' . "\n";
     echo '<th>' . "\n";
     echo '<label for="ws-plugin--s2member-pro-paypal-return-template-header">' . "\n";
     echo 'Auto-Return Page Template Header:' . "\n";
     echo '</label>' . "\n";
     echo '</th>' . "\n";
     echo '</tr>' . "\n";
     echo '<tr>' . "\n";
     echo '<td>' . "\n";
     echo '<textarea name="ws_plugin__s2member_pro_paypal_return_template_header" id="ws-plugin--s2member-pro-paypal-return-template-header" rows="5" wrap="off" spellcheck="false">' . format_to_edit($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["pro_paypal_return_template_header"]) . '</textarea><br />' . "\n";
     echo 'Any valid XHTML / JavaScript' . (is_multisite() && c_ws_plugin__s2member_utils_conds::is_multisite_farm() && !is_main_site() ? '' : ' (or even PHP)') . ' code will work just fine here.' . "\n";
     echo '</td>' . "\n";
     echo '</tr>' . "\n";
     echo '</tbody>' . "\n";
     echo '</table>' . "\n";
     echo '<div class="ws-menu-page-hr"></div>' . "\n";
     if (!is_multisite() || !c_ws_plugin__s2member_utils_conds::is_multisite_farm() || is_main_site()) {
         echo '<p>It is also possible to build your own Auto-Return Page Template, if you prefer. If you feel the need to create your own Auto-Return Page Template, please make a copy of s2Member\'s default template: <code>' . esc_html(c_ws_plugin__s2member_utils_dirs::doc_root_path($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["dir"] . "/includes/templates/returns/default-template.php")) . '</code>. Place your copy of this default template, inside your active WordPress theme directory, and name the file: <code>/paypal-return.php</code>. s2Member will automatically find your Auto-Return Page Template in this location, and s2Member will use your template, instead of the default. Further details are provided inside s2Member\'s default template file. Once your custom template file is in place, you may <a href="' . esc_attr(site_url("/?s2member_paypal_return=1&s2member_paypal_proxy=paypal&s2member_paypal_proxy_use=x-preview")) . '" target="_blank" rel="external">click this link to see what it looks like</a>.</p>' . "\n";
     }
     echo '<p>It is also possible to bypass s2Member\'s Auto-Return system all together, if you prefer. For further details, please read more about the <code>success=""</code> Shortcode Attribute for PayPal Buttons generated by s2Member. You will find details on this inside your Dashboard, under: <code>s2Member -› PayPal Buttons -› Shortcode Attributes (Explained)</code>. Please note: you will still need to configure your PayPal account for Auto-Return/PDT <em>(as instructed above)</em>. Then, you may use the <code>success=""</code> Attribute in your Shortcode, when/if you need it. In other words, if you use the <code>success=""</code> Attribute in your Shortcode, the initial redirection back to s2Member\'s default Auto-Return/PDT handler MUST still occur. However, instead of s2Member displaying an Auto-Return Template to the Customer, s2Member will silently redirect the Customer to the URL that you specified in the <code>success="http://..."</code> Attribute of your Shortcode, allowing you to take complete control over what happens next.</p>' . "\n";
     echo '</div>' . "\n";
 }
开发者ID:donwea,项目名称:nhap.org,代码行数:31,代码来源:paypal-ops-return-template.inc.php

示例2: strip_tags

            $instance['text'] = $new_instance['text'];
        } else {
            $instance['cssClass'] = strip_tags($new_instance['cssClass']);
        }
        return $instance;
    }
    /**
     * Setup the widget admin form
     */
    function form($instance)
    {
        $instance = wp_parse_args((array) $instance, array('text' => ''));
        $text = format_to_edit($instance['text']);
        ?>
        <style>
            .monospace { font-family: Consolas, Lucida Console, monospace; }
        </style>
        <p>
            <label for="<?php 
        echo $this->get_field_id('text');
        ?>
"><?php 
        _e('广告代码', 'enhancedtext');
        ?>
:</label>
            <textarea class="widefat monospace" rows="16" cols="20" id="<?php 
开发者ID:eric-xujun,项目名称:wordpress,代码行数:26,代码来源:ads-init.php

示例3: form

    function form($instance)
    {
        $instance = wp_parse_args((array) $instance, array('title' => 'Rent a car'));
        $title = strip_tags($instance['title']);
        $intro = format_to_edit($instance['intro']);
        ?>
		<p><label for="<?php 
        echo $this->get_field_id('title');
        ?>
"><?php 
        _e('Title:', 'bizzthemes');
        ?>
</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 
    }
开发者ID:loevendahl,项目名称:flexbil,代码行数:25,代码来源:widget-booking.php

示例4: theme_add_sidebar

function theme_add_sidebar($arg)
{
    $name = apply_filters('widget_title', $_POST['sidebar_name']);
    $description = format_to_edit($_POST['sidebar_description']);
    if (!empty($name)) {
        $registered_sidebars = get_registered_sidebars();
        if (!in_array($name, $registered_sidebars)) {
            global $wp_registered_sidebars;
            $sidebars = get_option('generated_sidebars');
            $sidebar_id = register_sidebar(array('name' => $name, 'description' => $description, 'before_widget' => '<div id="%1$s" class="widget-container %2$s">', 'after_widget' => '</div>', 'before_title' => '<h3>', 'after_title' => '</h3>'));
            $sidebars[$sidebar_id] = $wp_registered_sidebars[$sidebar_id];
            update_option('generated_sidebars', $sidebars);
            $up = get_option('generated_sidebars');
            add_settings_error('general', 'settings_updated', __('Sidebar successfully added.'), 'updated');
        } else {
            add_settings_error('sidebars', 'name', __('Sidebar already exists, please use a different name.', TEMPLATENAME));
        }
    } else {
        add_settings_error('sidebars', 'name', __('Sidebar name cannot by empty.', TEMPLATENAME));
    }
    set_transient('settings_errors', get_settings_errors(), 30);
    $goback = wp_get_referer();
    wp_redirect($goback);
    exit;
}
开发者ID:billyprice1,项目名称:website,代码行数:25,代码来源:sidebars.php

示例5: __construct

 public function __construct()
 {
     if (!is_multisite() || !c_ws_plugin__s2member_utils_conds::is_multisite_farm() || is_main_site()) {
         echo '<div class="ws-menu-page-group" title="Pro API For Remote Operations">' . "\n";
         echo '<div class="ws-menu-page-section ws-plugin--s2member-api-remote-operations-section">' . "\n";
         echo '<h3>Pro API For Remote Operations (PHP scripting required)</h3>' . "\n";
         echo '<p>With s2Member Pro installed, you have access to the s2Member Pro API For Remote Operations. This is made available for developers that wish to create User/Member accounts dynamically through custom scripts of their own. s2Member\'s Remote Operations API requires a secret API Key in order to POST authenticated requests to your installation of s2Member.</p>' . "\n";
         echo '<div class="ws-menu-page-hr"></div>' . "\n";
         echo '<h4>Remote Operations API: <strong>Your secret API Key</strong></h4>' . "\n";
         echo '<input type="text" autocomplete="off" value="' . format_to_edit(c_ws_plugin__s2member_pro_remote_ops::remote_ops_key_gen()) . '" style="width:99%;" />' . "\n";
         echo '<p><em><strong class="ws-menu-page-hilite">Experimental:</strong> The Remote Operations API is currently in an experimental state. The Operations that are currently possible include: <code>auth_check_user</code>, <code>get_user</code>, <code>create_user</code>, <code>modify_user</code>, <code>delete_user</code>. In a future release of s2Member Pro, we will add further documentation and some additional Remote Operations to this API. Thanks for your patience.</em></p>' . "\n";
         echo '<div class="ws-menu-page-hr"></div>' . "\n";
         echo '<h4>Remote Operation: <code>auth_check_user</code> (authenticate existing Users/Members)</h4>' . "\n";
         echo '<p>' . c_ws_plugin__s2member_utils_strings::highlight_php(str_replace("www.example.com", $_SERVER["HTTP_HOST"], str_replace("http://www.example.com/", site_url("/"), str_replace("[API Key]", c_ws_plugin__s2member_pro_remote_ops::remote_ops_key_gen(), file_get_contents(dirname(__FILE__) . "/code-samples/remote-op-auth-check-user.x-php"))))) . '</p>' . "\n";
         echo '<h4>Remote Operation: <code>get_user</code> (retrieve data about existing Users/Members)</h4>' . "\n";
         echo '<p>' . c_ws_plugin__s2member_utils_strings::highlight_php(str_replace("www.example.com", $_SERVER["HTTP_HOST"], str_replace("http://www.example.com/", site_url("/"), str_replace("[API Key]", c_ws_plugin__s2member_pro_remote_ops::remote_ops_key_gen(), file_get_contents(dirname(__FILE__) . "/code-samples/remote-op-get-user.x-php"))))) . '</p>' . "\n";
         echo '<div class="ws-menu-page-hr"></div>' . "\n";
         echo '<h4>Remote Operation: <code>create_user</code> (or update existing Users/Members)</h4>' . "\n";
         echo '<p>' . c_ws_plugin__s2member_utils_strings::highlight_php(str_replace("www.example.com", $_SERVER["HTTP_HOST"], str_replace("http://www.example.com/", site_url("/"), str_replace("[API Key]", c_ws_plugin__s2member_pro_remote_ops::remote_ops_key_gen(), file_get_contents(dirname(__FILE__) . "/code-samples/remote-op-create-user.x-php"))))) . '</p>' . "\n";
         echo '<div class="ws-menu-page-hr"></div>' . "\n";
         echo '<h4>Remote Operation: <code>modify_user</code> (updates existing Users/Members)</h4>' . "\n";
         echo '<p>' . c_ws_plugin__s2member_utils_strings::highlight_php(str_replace("www.example.com", $_SERVER["HTTP_HOST"], str_replace("http://www.example.com/", site_url("/"), str_replace("[API Key]", c_ws_plugin__s2member_pro_remote_ops::remote_ops_key_gen(), file_get_contents(dirname(__FILE__) . "/code-samples/remote-op-modify-user.x-php"))))) . '</p>' . "\n";
         echo '<div class="ws-menu-page-hr"></div>' . "\n";
         echo '<h4>Remote Operation: <code>delete_user</code> (deletes existing Users/Members)</h4>' . "\n";
         echo '<p>' . c_ws_plugin__s2member_utils_strings::highlight_php(str_replace("www.example.com", $_SERVER["HTTP_HOST"], str_replace("http://www.example.com/", site_url("/"), str_replace("[API Key]", c_ws_plugin__s2member_pro_remote_ops::remote_ops_key_gen(), file_get_contents(dirname(__FILE__) . "/code-samples/remote-op-delete-user.x-php"))))) . '</p>' . "\n";
         echo '<div class="ws-menu-page-hr"></div>' . "\n";
         echo '<p><strong>TIP:</strong> In addition to this documentation, you may also want to have a look at the <a href="http://www.s2member.com/codex/" target="_blank" rel="external">s2Member Codex</a>.<br />' . "\n";
         echo '<strong>See Also:</strong> <a href="http://www.s2member.com/codex/stable/s2member/api_constants/package-summary/" target="_blank" rel="external">s2Member Codex -› API Constants</a>, and <a href="http://www.s2member.com/codex/stable/s2member/api_functions/package-summary/" target="_blank" rel="external">s2Member Codex -› API Functions</a>.</p>' . "\n";
         echo '</div>' . "\n";
         echo '</div>' . "\n";
     }
 }
开发者ID:donwea,项目名称:nhap.org,代码行数:32,代码来源:scripting-api-remote-ops.inc.php

示例6: __construct

 public function __construct()
 {
     if (is_object($user = wp_get_current_user()) && ($user_id = $user->ID)) {
         echo '<form id="ws-updates-form" action="http://websharks-inc.us1.list-manage1.com/subscribe/post?u=8f347da54d66b5298d13237d9&amp;id=19e9d213bc" method="post" target="_blank">' . "\n";
         echo '<input type="hidden" name="group[1][4]" id="ws-updates-group" value="4" />' . "\n";
         /**/
         if (!is_ssl() && !c_ws_plugin__s2member_utils_conds::is_localhost()) {
             echo '<div class="ws-menu-page-r-group-header">' . "\n";
             echo '<ins class="open">-</ins>Latest News<em>!</em>' . "\n";
             echo '</div>' . "\n";
             /**/
             echo '<div class="ws-menu-page-r-group" style="display:block;">' . "\n";
             echo '<script type="text/javascript" src="http://feeds.feedburner.com/s2member-updates?format=sigpro&amp;nItems=3&amp;openLinks=new&amp;displayTitle=false&amp;displayFeedIcon=false&amp;displayExcerpts=false&amp;displayAuthor=false&amp;displayDate=false&amp;displayEnclosures=false&amp;displayLinkToFeed=false"></script>' . "\n";
             echo '</div>' . "\n";
         }
         /**/
         echo '<div class="ws-menu-page-r-group-header">' . "\n";
         echo '<ins>+</ins>Email Updates<em>!</em>' . "\n";
         echo '</div>' . "\n";
         /**/
         echo '<div class="ws-menu-page-r-group">' . "\n";
         /**/
         echo '<div id="ws-updates-div-fname">' . "\n";
         echo '<label for="ws-updates-fname">First Name: *</label><br />' . "\n";
         echo '<input type="text" aria-required="true" autocomplete="off" name="FNAME" id="ws-updates-fname" value="' . esc_attr($user->first_name) . '" />' . "\n";
         echo '</div>' . "\n";
         /**/
         echo '<div id="ws-updates-div-lname">' . "\n";
         echo '<label for="ws-updates-lname">Last Name: *</label><br />' . "\n";
         echo '<input type="text" aria-required="true" autocomplete="off" name="LNAME" id="ws-updates-lname" value="' . esc_attr($user->last_name) . '" />' . "\n";
         echo '</div>' . "\n";
         /**/
         echo '<div id="ws-updates-div-email">' . "\n";
         echo '<label for="ws-updates-email">Email Address: *</label><br />' . "\n";
         echo '<input type="text" aria-required="true" autocomplete="off" name="EMAIL" id="ws-updates-email" value="' . format_to_edit($user->user_email) . '" />' . "\n";
         echo '</div>' . "\n";
         /**/
         if (!is_ssl() && !c_ws_plugin__s2member_utils_conds::is_localhost()) {
             echo '<div id="ws-updates-div-subs">' . "\n";
             echo '<script type="text/javascript" src="http://websharks-inc.us1.list-manage.com/subscriber-count?b=31&u=8c67d547-edf6-41c5-807d-2d2d0e6cffd1&id=19e9d213bc"></script>' . "\n";
             echo '</div>' . "\n";
         }
         /**/
         echo '<div id="ws-updates-div-priv">' . "\n";
         echo '( <a href="' . esc_attr(c_ws_plugin__s2member_readmes::parse_readme_value("Privacy URI")) . '" target="_blank">we DO respect your privacy</a> )' . "\n";
         echo '</div>' . "\n";
         /**/
         echo '<div id="ws-updates-div-submit">' . "\n";
         echo '<input type="submit" value="Subscribe" name="subscribe" />' . "\n";
         echo '</div>' . "\n";
         /**/
         echo '</div>' . "\n";
         /**/
         echo '</form>' . "\n";
     }
 }
开发者ID:vinvinh315,项目名称:maintainwebsolutions.com,代码行数:56,代码来源:updates.inc.php

示例7: form

    function form($instance)
    {
        $instance = wp_parse_args((array) $instance, array('title' => '', 'text' => ''));
        $title = strip_tags($instance['title']);
        $text = format_to_edit($instance['text']);
        ?>
		<p><label for="<?php 
        echo $this->get_field_id('title');
        ?>
"><?php 
        _e('Title:', 'php-code-widget');
        ?>
</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>

		<textarea class="widefat" rows="16" cols="20" id="<?php 
        echo $this->get_field_id('text');
        ?>
" name="<?php 
        echo $this->get_field_name('text');
        ?>
"><?php 
        echo $text;
        ?>
</textarea>

		<p><input id="<?php 
        echo $this->get_field_id('filter');
        ?>
" name="<?php 
        echo $this->get_field_name('filter');
        ?>
" type="checkbox" <?php 
        checked(isset($instance['filter']) ? $instance['filter'] : 0);
        ?>
 />&nbsp;<label for="<?php 
        echo $this->get_field_id('filter');
        ?>
"><?php 
        _e('Automatically add paragraphs.', 'php-code-widget');
        ?>
</label></p>
<?php 
    }
开发者ID:HeliWang,项目名称:EngSoc-Website,代码行数:53,代码来源:execphp.php

示例8: alo_em_user_profile_optin

/**
 * On User Profile
 */
function alo_em_user_profile_optin($user)
{
    // get the current setting
    //if (ALO_easymail_get_optin($user->ID)=='yes'){    // deleted ALO
    if (alo_em_is_subscriber($user->user_email)) {
        // added ALO
        $optin_selected = " selected='selected' ";
        $optout_selected = '';
    } else {
        $optin_selected = '';
        $optout_selected = " selected='selected' ";
    }
    $html = "<h3>" . __("Newsletter", "alo-easymail") . "</h3>\n";
    $html .= "<table class='form-table'>\n";
    $html .= "  <tr>\n";
    $optin_txt = alo_em_translate_option(alo_em_get_language(), 'alo_em_custom_optin_msg', false) != "" ? alo_em_translate_option(alo_em_get_language(), 'alo_em_custom_optin_msg', false) : __("Yes, I would like to receive the Newsletter", "alo-easymail");
    $html .= "    <th><label for='alo_em_option'>" . $optin_txt . "</label></th>\n";
    $html .= "    <td>\n";
    $html .= "\t\t<select name='alo_easymail_option' id='alo_easymail_option'>\n";
    $html .= "        <option value='yes' {$optin_selected}>" . __("Yes", "alo-easymail") . "</option>\n";
    $html .= "        <option value='no' {$optout_selected}>" . __("No", "alo-easymail") . "</option>\n";
    $html .= "      </select>\n";
    $html .= "    </td>\n";
    $html .= "  </tr>\n";
    $html .= "</table>\n";
    // add mailing lists html table
    $html .= alo_em_html_mailinglists_table_to_edit($user->user_email, "form-table");
    //edit : added all the next if
    $alo_em_cf = alo_easymail_get_custom_fields();
    if ($alo_em_cf) {
        $html .= "<h3>" . __("Newsletter fields", "alo-easymail") . "</h3>\n";
        $html .= "<table class='form-table'>\n";
        $subscriber = alo_em_get_subscriber($user->user_email);
        foreach ($alo_em_cf as $key => $value) {
            $html .= "  <tr>\n";
            $field_id = "alo_em_" . $key;
            // edit-by-alo
            $html .= "    <th><label for='" . $field_id . "'>" . __($value['humans_name'], "alo-easymail") . "</label></th>\n";
            // edit-by-alo:
            $html .= "    <td>\n";
            // edit-by-alo: added next $input block
            $prev = isset($subscriber->{$key}) ? format_to_edit($subscriber->{$key}) : '';
            $html .= alo_easymail_custom_field_html($key, $value, $field_id, $prev, true);
            $html .= "    </td>\n";
            $html .= "  </tr>\n";
        }
        $html .= "</table>\n";
    }
    echo $html;
}
开发者ID:dcotet,项目名称:alo-easymail,代码行数:53,代码来源:alo-easymail-users.php

示例9: form

        function form($instance)
        {
            global $atw;
            $title = isset($instance['title']) ? esc_attr($instance['title']) : false;
            $title = apply_filters('widget_title', $title);
            $text = isset($instance['text']) ? $instance['text'] : false;
            ?>
            <label for="<?php 
            echo $this->get_field_id('title');
            ?>
" title="<?php 
            _e('Title above the widget', $atw->hook);
            ?>
"><?php 
            _e('Title:', $atw->hook);
            ?>
<input style="width:400px;" id="<?php 
            echo $this->get_field_id('title');
            ?>
" name="<?php 
            echo $this->get_field_name('title');
            ?>
" type="text" value="<?php 
            echo $title;
            ?>
" /></label>
            <p><?php 
            _e('PHP Code (MUST be enclosed in &lt;?php and ?&gt; tags!):', $atw->hook);
            ?>
</p>
            <label for="<?php 
            echo $this->get_field_id('text');
            ?>
" title="<?php 
            _e('PHP Code (MUST be enclosed in &lt;?php and ?&gt; tags!):', $atw->hook);
            ?>
"><textarea id="<?php 
            echo $this->get_field_id('text');
            ?>
" name="<?php 
            echo $this->get_field_name('text');
            ?>
" cols="20" rows="16" style="width:400px;"><?php 
            echo format_to_edit($text);
            ?>
</textarea></label>

            <?php 
            do_action('atw_condition_fields', $this, $instance);
        }
开发者ID:Calraiser,项目名称:flux,代码行数:50,代码来源:advancedtext.php

示例10: __construct

 public function __construct()
 {
     echo '<div class="ws-menu-page-group" title="CAPTCHA Anti-Spam Security">' . "\n";
     /**/
     echo '<div class="ws-menu-page-section ws-plugin--optimizemember-pro-captchas-section">' . "\n";
     echo '<h3>CAPTCHA Anti-Spam Security ( for optimizeMember Pro Forms )</h3>' . "\n";
     echo '<p>Please note. optimizeMember does NOT introduce a <a href="http://www.optimizepress.com/captcha-definition" target="_blank" rel="external">CAPTCHA</a> <em>( i.e. a challenge-response )</em>, into any core feature for WordPress. We\'ve <strong>excluded</strong> this functionality on purpose, because many site owners prefer to use a more comprehensive CAPTCHA plugin that encompasses all aspects of their site. We recommend <a href="http://wordpress.org/extend/plugins/si-captcha-for-wordpress/" target="_blank" rel="external">this one</a>. <strong>However</strong>, optimizeMember Pro Forms for PayPal Pro and Authorize.Net <em>( including Free Registration Forms )</em> CAN be configured with optimizeMember, to use Google\'s reCAPTCHA™ service <em>( which is free )</em>. Just add this Attribute to your Pro Form Shortcode: <code>captcha="clean"</code>.</p>' . "\n";
     echo '<p><strong>Regarding optimizeMember Pro Forms.</strong> optimizeMember comes with a default set of reCAPTCHA™ Keys, both Public and Private. If you leave the fields below empty, optimizeMember will simply use its own default set of Keys for reCAPTCHA™. However, if you\'re using optimizeMember Pro Forms, we DO suggest that you acquire your own set of reCAPTCHA™ Keys <em>( it\'s free )</em>. It\'s better to have your own set of Keys, specifically for your domain. Please follow <a href="http://www.optimizepress.com/recaptcha-create-keys" target="_blank" rel="external">this link</a> to obtain Public/Private Keys for the reCAPTCHA™ service.</p>' . "\n";
     /**/
     echo '<table class="form-table">' . "\n";
     echo '<tbody>' . "\n";
     echo '<tr>' . "\n";
     /**/
     echo '<th>' . "\n";
     echo '<label for="ws-plugin--optimizemember-pro-recaptcha-public-key">' . "\n";
     echo 'reCAPTCHA™ Public Key:' . "\n";
     echo '</label>' . "\n";
     echo '</th>' . "\n";
     /**/
     echo '</tr>' . "\n";
     echo '<tr>' . "\n";
     /**/
     echo '<td>' . "\n";
     echo '<input type="text" autocomplete="off" name="ws_plugin__optimizemember_pro_recaptcha_public_key" id="ws-plugin--optimizemember-pro-recaptcha-public-key" value="' . format_to_edit($GLOBALS["WS_PLUGIN__"]["optimizemember"]["o"]["pro_recaptcha_public_key"]) . '" />' . "\n";
     echo '</td>' . "\n";
     /**/
     echo '</tr>' . "\n";
     echo '<tr>' . "\n";
     /**/
     echo '<th>' . "\n";
     echo '<label for="ws-plugin--optimizemember-pro-recaptcha-private-key">' . "\n";
     echo 'reCAPTCHA™ Private Key:' . "\n";
     echo '</label>' . "\n";
     echo '</th>' . "\n";
     /**/
     echo '</tr>' . "\n";
     echo '<tr>' . "\n";
     /**/
     echo '<td>' . "\n";
     echo '<input type="password" autocomplete="off" name="ws_plugin__optimizemember_pro_recaptcha_private_key" id="ws-plugin--optimizemember-pro-recaptcha-private-key" value="' . format_to_edit($GLOBALS["WS_PLUGIN__"]["optimizemember"]["o"]["pro_recaptcha_private_key"]) . '" />' . "\n";
     echo '</td>' . "\n";
     /**/
     echo '</tr>' . "\n";
     echo '</tbody>' . "\n";
     echo '</table>' . "\n";
     echo '</div>' . "\n";
     /**/
     echo '</div>' . "\n";
 }
开发者ID:JalpMi,项目名称:v2contact,代码行数:49,代码来源:gen-ops-captcha-ops.inc.php

示例11: get_comment_to_edit

/**
 * {@internal Missing Short Description}}
 *
 * @since unknown
 *
 * @param unknown_type $id
 * @return unknown
 */
function get_comment_to_edit($id)
{
    if (!($comment = get_comment($id))) {
        return false;
    }
    $comment->comment_ID = (int) $comment->comment_ID;
    $comment->comment_post_ID = (int) $comment->comment_post_ID;
    $comment->comment_content = format_to_edit($comment->comment_content);
    $comment->comment_content = apply_filters('comment_edit_pre', $comment->comment_content);
    $comment->comment_author = format_to_edit($comment->comment_author);
    $comment->comment_author_email = format_to_edit($comment->comment_author_email);
    $comment->comment_author_url = clean_url($comment->comment_author_url);
    $comment->comment_author_url = format_to_edit($comment->comment_author_url);
    return $comment;
}
开发者ID:BGCX262,项目名称:zxhproject-svn-to-git,代码行数:23,代码来源:comment.php

示例12: __construct

 public function __construct()
 {
     echo '<div class="ws-menu-page-group" title="Tax Rate Calculations (Pro-Form)">' . "\n";
     echo '<div class="ws-menu-page-section ws-plugin--s2member-pro-tax-rates-section">' . "\n";
     echo '<h3>Tax Rate Calculations for PayPal Pro-Forms (optional)<br />— specifically for s2Member Pro-Form integrations</h3>' . "\n";
     echo '<p>With PayPal Pro, your software (s2Member Pro) is solely responsible for calculating Tax Rates. In the fields below, you can set a Global Default Tax Rate, and/or a "Custom Tax Configuration File"; which can be applied to specific countries, specific states, provinces, and even to specific zip code ranges. * Tax Rate calculations are fully compatible with international currencies and locations.</p>' . "\n";
     echo '<p>When you create a PayPal Pro-Form with s2Member, you\'ll be asked to supply a <em>Charge Amount</em>. Then, during checkout... s2Member calculates Tax. The calculated Tax Rate is added to the <em>Charge Amount</em> in your PayPal Pro Shortcode. The Tax Rate will be displayed to a Customer during checkout, <strong>after</strong> they\'ve supplied a Billing Address. For example, if you create a PayPal Pro-Form that charges a Customer <strong>$24.95</strong>, and the Tax Rate is configured as 7.0%; s2Member will automatically calculate the Tax as $1.75. A Customer will pay the Total Amount (<em>Charge</em> + Tax = <strong>$26.70</strong>).</p>' . "\n";
     echo '<p><em><strong>Quick Tip:</strong> If you configure Tax, it\'s good to include a note somewhere in the <code>desc=""</code> attribute of your Shortcode. Something like <code>desc="$x.xx (plus tax)"</code>.</em></p>' . "\n";
     echo '<table class="form-table">' . "\n";
     echo '<tbody>' . "\n";
     echo '<tr>' . "\n";
     echo '<th>' . "\n";
     echo '<label for="ws-plugin--s2member-pro-default-tax">' . "\n";
     echo 'Global Default Tax Rate:' . "\n";
     echo '</label>' . "\n";
     echo '</th>' . "\n";
     echo '</tr>' . "\n";
     echo '<tr>' . "\n";
     echo '<td>' . "\n";
     echo '<input type="text" autocomplete="off" name="ws_plugin__s2member_pro_default_tax" id="ws-plugin--s2member-pro-default-tax" value="' . format_to_edit($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["pro_default_tax"]) . '" /><br />' . "\n";
     echo 'This can be a flat tax <code>(1.75)</code>, or a percentage <code>(7.0%)</code>.' . "\n";
     echo '</td>' . "\n";
     echo '</tr>' . "\n";
     echo '<tr>' . "\n";
     echo '<th>' . "\n";
     echo '<label for="ws-plugin--s2member-pro-tax-rates">' . "\n";
     echo 'Custom Tax Configuration File (one rate per line)<br />' . "\n";
     echo 'Apply different Tax Rates by country, state/province, or zip code range:' . "\n";
     echo '</label>' . "\n";
     echo '</th>' . "\n";
     echo '</tr>' . "\n";
     echo '<tr>' . "\n";
     echo '<td>' . "\n";
     echo '<textarea name="ws_plugin__s2member_pro_tax_rates" id="ws-plugin--s2member-pro-tax-rates" rows="10" wrap="off" spellcheck="false">' . format_to_edit($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["pro_tax_rates"]) . '</textarea><br />' . "\n";
     echo 'Please use one of the following formats (<a href="#" onclick="alert(\'US=7.0%\\nCA=12.0%\\nHK=0.0%\\nFLORIDA/US=7.5%\\nIDAHO/US=6.0%\\nALBERTA/CA=5.0%\\nBRITISH COLUMBIA/CA=12.0%\\n32000-34999/US=7.5%\\n83200-83999/US=6.0%\\n32601/US=6.5%\'); return false;">click for examples</a>)<br /><br />' . "\n";
     echo '<code>2-CHARACTER COUNTRY CODE = Flat rate or percentage.</code>—low precedence<br />' . "\n";
     echo '<code>STATE OR PROVINCE/2-CHARACTER COUNTRY CODE = Flat rate or percentage.</code>—higher precedence<br />' . "\n";
     echo '<code>ZIP CODE-ZIP CODE/2-CHARACTER COUNTRY CODE = Flat rate or percentage.</code>—higher precedence (zip code range)<br />' . "\n";
     echo '<code>ZIP CODE/2-CHARACTER COUNTRY CODE = Flat rate or percentage.</code>—highest precedence (specific zip code)' . "\n";
     echo '</td>' . "\n";
     echo '</tr>' . "\n";
     echo '</tbody>' . "\n";
     echo '</table>' . "\n";
     echo '</div>' . "\n";
     echo '</div>' . "\n";
 }
开发者ID:codeforest,项目名称:s2member-pro,代码行数:46,代码来源:paypal-ops-tax-rates.inc.php

示例13: __construct

 public function __construct()
 {
     if (is_object($user = wp_get_current_user()) && ($user_id = $user->ID)) {
         echo '<form id="ws-updates-form" action="http://websharks-inc.us1.list-manage1.com/subscribe/post?u=8f347da54d66b5298d13237d9&amp;id=19e9d213bc" method="post" target="_blank">' . "\n";
         if (!is_ssl() && !c_ws_plugin__s2member_utils_conds::is_localhost()) {
             echo '<div class="ws-menu-page-r-group-header open">' . "\n";
             echo '   <i class="fa fa-rss"></i> s2 News' . "\n";
             echo '</div>' . "\n";
             echo '<div class="ws-menu-page-r-group open">' . "\n";
             echo '<script type="text/javascript" src="http://feeds.feedburner.com/s2member?format=sigpro&amp;nItems=5&amp;openLinks=new&amp;displayTitle=false&amp;displayFeedIcon=false&amp;displayExcerpts=false&amp;displayAuthor=false&amp;displayDate=false&amp;displayEnclosures=false&amp;displayLinkToFeed=false"></script>' . "\n";
             echo '➘ <a href="' . esc_attr(c_ws_plugin__s2member_readmes::parse_readme_value("Knowledge Base")) . '" target="_blank" rel="external">More updates...</a>' . "\n";
             echo '</div>' . "\n";
         }
         echo '<div class="ws-menu-page-r-group-header">' . "\n";
         echo '   <i class="fa fa-envelope"></i> s2 Updates' . "\n";
         echo '</div>' . "\n";
         echo '<div class="ws-menu-page-r-group">' . "\n";
         echo '<p style="text-align:center; font-size:90%;"><strong>Hi ' . esc_html(wp_get_current_user()->first_name) . ' :-)</strong><br />Subscribe here! We\'ll keep you informed about all things related to s2Member.</p>' . "\n";
         echo '<div id="ws-updates-div-fname">' . "\n";
         echo '<label for="ws-updates-fname">First Name: *</label><br />' . "\n";
         echo '<input type="text" aria-required="true" autocomplete="off" name="FNAME" id="ws-updates-fname" value="' . esc_attr($user->first_name) . '" />' . "\n";
         echo '</div>' . "\n";
         echo '<div id="ws-updates-div-lname">' . "\n";
         echo '<label for="ws-updates-lname">Last Name: *</label><br />' . "\n";
         echo '<input type="text" aria-required="true" autocomplete="off" name="LNAME" id="ws-updates-lname" value="' . esc_attr($user->last_name) . '" />' . "\n";
         echo '</div>' . "\n";
         echo '<div id="ws-updates-div-email">' . "\n";
         echo '<label for="ws-updates-email">Email Address: *</label><br />' . "\n";
         echo '<input type="text" aria-required="true" autocomplete="off" name="EMAIL" id="ws-updates-email" value="' . format_to_edit($user->user_email) . '" />' . "\n";
         echo '</div>' . "\n";
         if (!is_ssl() && !c_ws_plugin__s2member_utils_conds::is_localhost()) {
             echo '<div id="ws-updates-div-subs">' . "\n";
             echo '<script type="text/javascript" src="http://websharks-inc.us1.list-manage.com/subscriber-count?b=31&u=8c67d547-edf6-41c5-807d-2d2d0e6cffd1&id=19e9d213bc"></script>' . "\n";
             echo '</div>' . "\n";
         }
         echo '<div id="ws-updates-div-priv">' . "\n";
         echo '(<a href="' . esc_attr(c_ws_plugin__s2member_readmes::parse_readme_value("Privacy URI")) . '" target="_blank">privacy policy</a>)' . "\n";
         echo '</div>' . "\n";
         echo '<div id="ws-updates-div-submit">' . "\n";
         echo '<input type="submit" value="Subscribe" name="subscribe" />' . "\n";
         echo '</div>' . "\n";
         echo '</div>' . "\n";
         echo '</form>' . "\n";
     }
 }
开发者ID:donwea,项目名称:nhap.org,代码行数:45,代码来源:updates.inc.php

示例14: __construct

 public function __construct()
 {
     echo '<div class="ws-menu-page-group" title="One-Time-Offers ( Upon Login )">' . "\n";
     /**/
     echo '<div class="ws-menu-page-section ws-plugin--optimizemember-pro-one-time-offers-section">' . "\n";
     echo '<h3>Optional One-Time-Offers ( Upon Login )</h3>' . "\n";
     echo '<p>This is enabled by optimizeMember Pro. One-Time-Offers allow you to override your default Login Welcome Page, based on the number of times a User/Member has logged in previously. optimizeMember Pro gives you the ability to write your own configuration file for One-Time-Offers. Please follow the instructions below. It is also possible for advanced site owners to use these <a href="#" onclick="alert(\'Replacement Codes:\\n\\n%%current_user_login%% = The current User\\\'s Username, lowercase.\\n%%current_user_id%% = The current User\\\'s ID.\\n%%current_user_level%% = The current User\\\'s optimizeMember Level.\\n%%current_user_role%% = The current User\\\'s WordPress Role.' . (!is_multisite() || !c_ws_plugin__optimizemember_utils_conds::is_multisite_farm() || is_main_site() ? '\\n%%current_user_ccaps%% = The current User\\\'s Custom Capabilities.' : '') . '\\n%%current_user_logins%% = Number of times the current User has logged in.\\n\\nFor example, if you\\\'re using BuddyPress, and you want to redirect Members to their BuddyPress Profile page after logging in, you would use: ' . site_url("/members/%%current_user_login%%/profile/") . '\\n\\nOr, using %%current_user_level%%, you could have a separate One-Time-Offer page for each Membership Level that you plan to offer.\'); return false;">Replacement Codes</a> in their One-Time-Offer URLs.</p>' . "\n";
     echo c_ws_plugin__optimizemember_utils_conds::bp_is_installed() ? '<p><em><strong>BuddyPress:</strong> optimizeMember integrates with BuddyPress. This configuration affects BuddyPress too.</em></p>' . "\n" : '';
     /**/
     echo '<table class="form-table">' . "\n";
     echo '<tbody>' . "\n";
     echo '<tr>' . "\n";
     /**/
     echo '<th>' . "\n";
     echo '<label for="ws-plugin--optimizemember-pro-login-welcome-page-otos">' . "\n";
     echo 'One-Time-Offer Configuration File:' . "\n";
     echo '</label>' . "\n";
     echo '</th>' . "\n";
     /**/
     echo '</tr>' . "\n";
     echo '<tr>' . "\n";
     /**/
     echo '<td>' . "\n";
     echo '<textarea name="ws_plugin__optimizemember_pro_login_welcome_page_otos" id="ws-plugin--optimizemember-pro-login-welcome-page-otos" rows="8" wrap="off" spellcheck="false">' . format_to_edit($GLOBALS["WS_PLUGIN__"]["optimizemember"]["o"]["pro_login_welcome_page_otos"]) . '</textarea><br />' . "\n";
     echo 'This is a line-delimited list of URLs <em>( in a special format, as seen below )</em>.<br /><br />' . "\n";
     echo 'Special format ( explained ):<br />' . "\n";
     echo '<code>[Logins]</code>:<code>[Access Level]</code>:<code>[One-Time-Offer URL]</code><br /><br />' . "\n";
     echo '<em><code>[Logins]</code> ( this triggers your One-Time-Offer page, upon X number of logins )</em><br />' . "\n";
     echo '<em><code>[Access Level]</code> ( optional, this triggers your One-Time-Offer, based on Level# as well )</em><br />' . "\n";
     echo '<em><code>[One-Time-Offer URL]</code> ( where User is redirected, upon login )</em><br /><br />' . "\n";
     echo '<strong>Example Configuration File:</strong><br />' . "\n";
     echo '<code>1:http://example.com/your-first-login/</code> <em>( displayed on 1st login, to all Users/Members )</em><br />' . "\n";
     echo '<code>25:http://example.com/customer-loyalty-reward/</code> <em>( displayed on 25th login, to all Users/Members )</em><br />' . "\n";
     echo '<code>3:1:http://example.com/upgrade-to-level-2/</code> <em>( displayed on 3rd login, to Level #1 Members only )</em><br />' . "\n";
     echo '<code>1:0:http://example.com/upgrade-to-level-1/</code> <em>( displayed on 1st login, to Free Subscribers only )</em>' . "\n";
     echo '</td>' . "\n";
     /**/
     echo '</tr>' . "\n";
     echo '</tbody>' . "\n";
     echo '</table>' . "\n";
     echo '</div>' . "\n";
     /**/
     echo '</div>' . "\n";
 }
开发者ID:JalpMi,项目名称:v2contact,代码行数:44,代码来源:gen-ops-lwp-otos.inc.php

示例15: form

    function form($instance)
    {
        $instance = wp_parse_args((array) $instance, array('title' => '', 'text' => ''));
        $title = strip_tags($instance['title']);
        $text = format_to_edit($instance['text']);
        ?>
    
    <p>
      <label for="<?php 
        echo $this->get_field_id('title');
        ?>
">
        Title:
        <input class="widefat" id="<?php 
        echo $this->get_field_id('title');
        ?>
" name="<?php 
        echo $this->get_field_name('title');
        ?>
" type="text" value="<?php 
        echo attribute_escape($title);
        ?>
" />
      </label>
    </p>
    <p><label for="<?php 
        echo $this->get_field_id('text');
        ?>
">HTML Text (chunks are separated with <tt>&lt;!--more--&gt;</tt>):</label></p>
    <textarea class="widefat" rows="16" cols="20" id="<?php 
        echo $this->get_field_id('text');
        ?>
" name="<?php 
        echo $this->get_field_name('text');
        ?>
"><?php 
        echo $text;
        ?>
</textarea>
<?php 
    }
开发者ID:kpumuk,项目名称:ad-rotator,代码行数:41,代码来源:adrotator.php


注:本文中的format_to_edit函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。