Exemplo n.º 1
0
/**
 * Add the dashboard widget
 */
function iphorm_dashboard_widget()
{
    if (iphorm_get_all_entry_count(1) && current_user_can('iphorm_view_entries')) {
        wp_enqueue_style('iphorm-dashboard', iphorm_admin_url() . '/css/dashboard.css', array(), IPHORM_VERSION);
        wp_add_dashboard_widget('iphorm-dashboard-widget', iphorm_get_plugin_name(), 'iphorm_dashboard_widget_display');
    }
}
Exemplo n.º 2
0
    esc_html_e('You can now add the form to any post, page or widget.', 'iphorm');
    ?>
</h2>
            <div id="ifb-first-save-accordion">
                <h3 class="ifb-show-atw-content ifb-show-atw-content-closed"><?php 
    esc_html_e('Add your form to a post or page', 'iphorm');
    ?>
</h3>
                <div class="ifb-add-to-website-content-area ifb-first-save-1">
                <p><?php 
    esc_html_e('Add or edit the page you want to show the form on. If you look above
                    the visual editor you should see a Quform icon above it, as shown below.', 'iphorm');
    ?>
</p>
                <p><img src="<?php 
    echo iphorm_admin_url() . '/images/insert-screenshot.png';
    ?>
" alt="" /></p>
                <p><?php 
    esc_html_e('Click the Quform icon and a popup should appear, select the form from
                    the list and click the Insert form button. The shortcode for this form should now appear
                    inside the page editor. Alternatively, you can copy and paste one of the shortcodes below into your
                    post or page content.', 'iphorm');
    ?>
</p>
                <h4><?php 
    esc_html_e('Standard form', 'iphorm');
    ?>
</h4>
                <div class="ifb-shortcode-preview">[iphorm id="<span class="ifb-update-form-id"><?php 
    echo $id;
Exemplo n.º 3
0
            </tr>
            <?php 
$tempDir = iphorm_get_temp_dir();
$tempDirGood = is_writeable($tempDir);
?>
            <tr valign="top">
                <th scope="row"><label><?php 
esc_html_e('Temporary Directory', 'iphorm');
?>
</label></th>
                <td><?php 
echo $tempDir;
?>
</td>
                <td><?php 
echo $tempDirGood ? '<img src="' . iphorm_admin_url() . '/images/iphorm-success.png" alt="" />' : '<img src="' . iphorm_admin_url() . '/images/iphorm-warning.png" alt="" />';
?>
</td>
                <td><?php 
if (!$tempDirGood) {
    echo '<span class="ifb-compat-error">' . sprintf(esc_html__('The plugin requires a writeable temporary directory for file uploading. You can set a custom temporary directory path in your wp-config.php file by using the code %1$sdefine("WP_TEMP_DIR", "/path/to/tmp/dir");%2$s', 'iphorm'), '<code>', '</code>') . '</span>';
}
?>
</td>
            </tr>
        </table>

        <p class="submit iphorm-save-settings"><input type="submit" value="<?php 
esc_attr_e('Save Changes', 'iphorm');
?>
" class="button-primary" name="iphorm_settings" /></p>
Exemplo n.º 4
0
                    <img class="ifb-recaptcha-sample ifb-recaptcha-sample-light<?php 
    if ($element['recaptcha_theme'] != 'light') {
        echo ' ifb-hidden';
    }
    ?>
" src="<?php 
    echo iphorm_admin_url() . '/images/reCAPTCHA-light.png';
    ?>
" alt="reCAPTCHA light theme sample" />
                    <img class="ifb-recaptcha-sample ifb-recaptcha-sample-dark<?php 
    if ($element['recaptcha_theme'] != 'dark') {
        echo ' ifb-hidden';
    }
    ?>
" src="<?php 
    echo iphorm_admin_url() . '/images/reCAPTCHA-dark.png';
    ?>
" alt="reCAPTCHA dark theme sample" />
                    <p class="ifb-preview-description <?php 
    if (!strlen($element['description'])) {
        echo 'ifb-hidden';
    }
    ?>
"><?php 
    echo $element['description'];
    ?>
</p>
                </div>
            <?php 
}
?>
Exemplo n.º 5
0
<div class="iphorm-help-right">
    <h2>Global settings</h2>
    <p>The global plugin settings can be accessed by going to Quform &rarr; Settings on the WordPress menu.</p>

    <h3><span>Product license</span><a id="find-licence" class="find-licence"></a></h3>
    <p>Enter your license key as found in your CodeCanyon license certificate. See below for instructions on
    how to find your license key.</p>
    <ol>
        <li>Log in to CodeCanyon and go to the your <span class="ifb-bold">Downloads</span> tab.</li>
        <li>Next to the icon you should find a link called Licence Certificate<br /><img src="<?php 
echo iphorm_admin_url() . '/images/licence-key-step1.png';
?>
" alt="" /></li>
        <li>Click the link and download the .txt file</li>
        <li>Inside the file, you'll see a line containing the text Item Purchase Code: [Your license key]<br /><img src="<?php 
echo iphorm_admin_url() . '/images/licence-key-step2.png';
?>
" alt="" /></li>
        <li>This code is your license key, enter the key into the <span class="ifb-bold">Quform &rarr; Settings</span> page to verify the plugin and activate the license.</li>
    </ol>

    <h3><span>reCAPTCHA settings</span></h3>
    <p>Enter your reCAPTCHA API keys, which you can get from <a href="https://www.google.com/recaptcha/admin#createsite?app=quform" target="_blank">here</a>.</p>

    <h3><span>Email sending settings</span></h3>
    <p>You can decide to have the plugin send emails via the PHP mail() function or
    via an SMTP server. If you choose the SMTP option you will be given more fields to
    enter your SMTP settings.</p>

    <h3><span>Update active themes cache</span></h3>
    <p>If you have added or removed a form from the database directly, e.g. via phpMyAdmin
Exemplo n.º 6
0
var iphormPreviewL10n = <?php 
echo iphorm_json_encode($previewL10n);
?>
;
//]]>
</script>
<script type="text/javascript">
//<![CDATA[
var iphormL10n = <?php 
echo iphorm_json_encode(iphorm_js_l10n());
?>
;
//]]>
</script>
<script type="text/javascript" src="<?php 
echo iphorm_admin_url() . '/js/iphorm-preview.js';
?>
"></script>
<script type="text/javascript" src="<?php 
echo iphorm_plugin_url() . '/js/jquery.form.min.js';
?>
"></script>
<script type="text/javascript" src="<?php 
echo iphorm_plugin_url() . '/js/jquery.iphorm.js';
?>
"></script>
<?php 
if (!get_option('iphorm_disable_smoothscroll_output')) {
    ?>
<script type="text/javascript" src="<?php 
    echo iphorm_plugin_url() . '/js/jquery.smooth-scroll.min.js';