Пример #1
0
function inkthemes_optionsframework_options_page()
{
    $options = get_option('of_template');
    $themename = get_option('of_themename');
    ?>
<div class="wrap" id="of_container">
  <div id="of-popup-save" class="of-save-popup">
    <div class="of-save-save">Options Updated</div>
  </div>
  <div id="of-popup-reset" class="of-save-popup">
    <div class="of-save-reset">Options Reset</div>
  </div>
  <form action="" enctype="multipart/form-data" id="ofform">
  <?php 
    wp_nonce_field('colorwaytheme-update-option', 'colorway_option_nonce');
    ?>
    <div id="header">
      <div class="logo">
        <h2><?php 
    echo $themename;
    ?>
 Options</h2>
      </div>
      <a href="http://www.inkthemes.com" target="_new">
      <div class="icon-option"> </div>
      </a>
      <div class="clear"></div>
    </div>
    <?php 
    // Rev up the Options Machine
    $return = inkthemes_optionsframework_machine($options);
    ?>
    <div id="main">
      <div id="of-nav">
        <ul>
          <?php 
    echo $return[1];
    ?>
        </ul>
      </div>
      <div id="content"> <?php 
    echo $return[0];
    /* Settings */
    ?>
 </div>
      <div class="clear"></div>
    </div>
    <div class="save_bar_top">
    <img style="display:none" src="<?php 
    echo get_template_directory_uri();
    ?>
/functions/images/loading-bottom.gif" class="ajax-loading-img ajax-loading-img-bottom" alt="Working..." />
    <input type="submit" value="Save All Changes" class="button-primary" />
  </form>
  <form action="<?php 
    echo esc_attr($_SERVER['REQUEST_URI']);
    ?>
" method="post" style="display:inline" id="ofform-reset">
    <span class="submit-footer-reset">
    <input name="reset" type="submit" value="Reset Options" class="button submit-button reset-button" onclick="return confirm('Click OK to reset. Any settings will be lost!');" />
    <input type="hidden" name="of_save" value="reset" />
    </span>
  </form>
</div>
<?php 
    if (!empty($update_message)) {
        echo $update_message;
    }
    ?>
<div style="clear:both;"></div>
</div>
<!--wrap-->
<?php 
}
Пример #2
0
function inkthemes_optionsframework_options_page()
{
    $options = inkthemes_options();
    $themename = $options['theme_name'];
    $pro_theme_url = 'http://www.inkthemes.com/wp-themes/colorway-wp-theme/';
    $pro_theme_demo = 'http://inkthemes.com/wpthemes/colorwayngo/';
    $site_url = 'http://www.inkthemes.com';
    ?>
	<div class="colorway_advert" id="colorway_advert">	
				<div class="colorway_block_wrapper">
				<h3><?php 
    _e('Colorway Pro Version Features', 'colorway');
    ?>
</h3>
				<div class="colorway_block block_two">				
					<ul>						
						<li><div class="dashicons dashicons-controls-play"></div><?php 
    _e('8 Built in Color Schemes', 'colorway');
    ?>
</li>
						<li><div class="dashicons dashicons-controls-play"></div><?php 
    _e('PDF/Video Documentations', 'colorway');
    ?>
</li>
						<li><div class="dashicons dashicons-controls-play"></div><?php 
    _e('Background Images Bonus', 'colorway');
    ?>
</li>
						<li><div class="dashicons dashicons-controls-play"></div><?php 
    _e('Home Page Slider', 'colorway');
    ?>
</li>
					</ul>
				</div>
				<div class="colorway_block block_three">
					<ul>
						<li><div class="dashicons dashicons-controls-play"></div><?php 
    _e('Seo optimized Theme', 'colorway');
    ?>
</li>
						<li><div class="dashicons dashicons-controls-play"></div><?php 
    _e('Wpml Compatible Theme', 'colorway');
    ?>
</li>
						<li><div class="dashicons dashicons-controls-play"></div><?php 
    _e('Improved Zoom-box', 'colorway');
    ?>
</li>
						<li><div class="dashicons dashicons-controls-play"></div><?php 
    _e('Gallery & Contact Page', 'colorway');
    ?>
</li>						
					</ul>
				</div>
				<a href="<?php 
    echo esc_url($pro_theme_demo);
    ?>
" target="blank" class="btn btn-demo"><?php 
    _e('View Pro Demo', 'colorway');
    ?>
</a>
				<a href="<?php 
    echo esc_url($pro_theme_url);
    ?>
" target="_blank" class="btn btn-upgrade"><?php 
    _e('Upgrade to Pro', 'colorway');
    ?>
</a>
				</div>
				<div class="colorway_block block_four">				
				<img class="colorway_img_responsive " src="<?php 
    echo get_template_directory_uri();
    ?>
/images/advert.png">				
			</div>
		</div>
    <div class="clear"></div>
    <div class="theme-option">
        <div class="wrap" id="of_container">
            <div id="of-popup-save" class="of-save-popup">
                <div class="of-save-save"><?php 
    _e('Options Updated', 'colorway');
    ?>
</div>
            </div>
            <div id="of-popup-reset" class="of-save-popup">
                <div class="of-save-reset"><?php 
    _e('Options Reset', 'colorway');
    ?>
</div>
            </div>
            <form action="" enctype="multipart/form-data" id="ofform">
                <?php 
    wp_nonce_field('colorwaytheme-update-option', 'colorway_option_nonce');
    ?>
                <div id="header">
                    <div class="logo">
                        <h2><?php 
    echo $themename;
    _e(' Options', 'colorway');
    ?>
</h2>
                    </div>
                    <a href="<?php 
    esc_url($site_url);
    ?>
" target="new">
                        <div class="icon-option"> </div>
                    </a>
                    <div class="clear"></div>
                </div>
                <?php 
    // Rev up the Options Machine
    $return = inkthemes_optionsframework_machine($options);
    ?>
                <div id="main">
                    <div id="of-nav">
                        <ul>
                            <?php 
    echo $return[1];
    ?>
                        </ul>
                    </div>
                    <div id="content"> <?php 
    echo $return[0];
    /* Settings */
    ?>
 </div>
                    <div class="clear"></div>
                </div>
                <div class="save_bar_right save_bar_top">
                    <img style="display:none" src="<?php 
    echo get_template_directory_uri();
    ?>
/functions/images/loading-bottom.gif" class="ajax-loading-img ajax-loading-img-bottom" alt="Working..." />
                    <input type="submit" value="<?php 
    _e('Save All Changes', 'colorway');
    ?>
" class="button-primary" onclick="tinyMCE.triggerSave()" />
                </div>
            </form>
            <div class="save_bar_left save_bar_top">
                <form action="<?php 
    echo esc_attr($_SERVER['REQUEST_URI']);
    ?>
" method="post" style="display:inline" id="ofform-reset">
                    <span class="submit-footer-reset">
                        <input name="reset" type="submit" value="<?php 
    _e('Reset Options', 'colorway');
    ?>
" class="button submit-button reset-button" onclick="return confirm('Click OK to reset. Any settings will be lost!');" />
                        <input type="hidden" name="of_save" value="reset" />
                    </span>
                </form>
            </div>
            <?php 
    if (!empty($update_message)) {
        echo $update_message;
    }
    ?>
            <div style="clear:both;"></div>
        </div>
    </div>
    <div class="theme-notification">
        <div class="notification-header">
            <span class="wrap notification-heading"><h2><?php 
    _e('Notifications', 'colorway');
    ?>
</h2></span>
        </div>
        <div class="postbox-container" id="main">
            <div class="notification-box">
                <h3><?php 
    _e("Get Themes email updates and a free WordPress ebook", "colorway");
    ?>
</h3>
                <p><?php 
    _e("We'll send you new updates about themes and WordPress and a free WordPress tips & tricks ebook!", 'colorway');
    ?>
                </p>
                <div class = "form-container">
                    <form accept-charset="UTF-8" action="//www.formget.com/mailget/signups/subscribe/IjgwNCI_3D " name="mailget_form" method="post" onsubmit="return v_mailget()" >
                        <div class="form-button-container">
                            <input name="utf8" type="hidden" value="?"/>
                            <input name="subs_set_url" type="hidden" value="<?php 
    echo esc_url($site_url);
    ?>
"/>
                            <input name="subs_name" type="text" placeholder="<?php 
    _e('Your Name', 'colorway');
    ?>
" required />
                            <input name="subs_email" type="email" value="<?php 
    echo get_option('admin_email', 'email address');
    ?>
" required/>
                        </div>                           
                        <input type="submit" value="Subscribe and get a free ebook" name="subscribe" class="button button-primary">
                    </form>
                </div>
            </div>
            <div class="horizontal-line"></div>
            <div>
                <h3><?php 
    _e('Get the Colorway Pro Theme', 'colorway');
    ?>
</h3>
                <p><?php 
    _e('You are using the Lite Version of ColorWay Theme. Upgrade to Pro for extra features like Home Page Slider Contact Page, Gallery Features, Portfolio Page Template, FullWidth Page Templates, Multiple Color Options and much more.', 'colorway');
    ?>
</p>
                <a class="button-primary" href="<?php 
    echo esc_url($pro_theme_url);
    ?>
" target="_blank"><?php 
    _e('Get the Colorway Pro', 'colorway');
    ?>
</a>
            </div>
            <div class="horizontal-line"></div>
            <div>
                <h3><?php 
    _e('Rate us on WordPress.org ', 'colorway');
    ?>
</h3>
                <p><?php 
    _e('Get Best and free theme support. We are always ready to solve your queries. Just started your query at Wordpress.org', 'colorway');
    ?>
</p>
                <a class="button-primary" href="<?php 
    echo esc_url('https://wordpress.org/support/theme/colorway');
    ?>
" target="_blank"><?php 
    _e('Get Free Support', 'colorway');
    ?>
</a>
            </div>
			<div class="horizontal-line"></div>
			<div>
                <h3><?php 
    _e('Extra Benefits With Colorway Pro', 'colorway');
    ?>
</h3>
                <p><?php 
    _e('Get Premium Support & Free Bonus that includes one WordPress Notification Plugin and free bonus psd', 'colorway');
    ?>
</p>
                <a class="" href="<?php 
    echo esc_url('http://www.inkthemes.com/wp-themes/colorway-wp-theme/');
    ?>
" target="_blank"><img src="<?php 
    echo get_template_directory_uri();
    ?>
/images/benifits.png"/></a>
            </div>
        </div>
    </div>
    <?php 
}
Пример #3
0
function inkthemes_optionsframework_options_page()
{
    $options = inkthemes_get_option('of_template');
    $themename = inkthemes_get_option('of_themename');
    ?>
    <div class="trail-notify">
        <?php 
    $pro_theme_url = 'http://www.inkthemes.com/wp-themes/colorway-wp-theme/';
    $site_url = 'http://www.inkthemes.com';
    ?>
        <h1><?php 
    _e('Get ColorWay Theme PRO!', 'colorway');
    ?>
</h1>
        <p style="font-size:15px; line-height: 20px;"><?php 
    _e('You are using the Lite Version of ColorWay Theme. Upgrade to Pro for extra features like Home Page Slider Contact Page, Gallery Features, Portfolio Page Template, FullWidth Page Templates, Multiple Color Options and much more.', 'colorway');
    ?>
</p>
        <a href="<?php 
    echo esc_url($pro_theme_url);
    ?>
" target="blank"><?php 
    _e('Upgrade to ColorWay PRO Theme here>>', 'colorway');
    ?>
 </a>
    </div>
    <div class="wrap" id="of_container">
        <div id="of-popup-save" class="of-save-popup">
            <div class="of-save-save"><?php 
    _e('Options Updated', 'colorway');
    ?>
</div>
        </div>
        <div id="of-popup-reset" class="of-save-popup">
            <div class="of-save-reset"><?php 
    _e('Options Reset', 'colorway');
    ?>
</div>
        </div>
        <form action="" enctype="multipart/form-data" id="ofform">
            <?php 
    wp_nonce_field('theme-update-option');
    ?>
            <div id="header">
                <div class="logo">
                    <h2><?php 
    echo $themename;
    _e(' Options', 'colorway');
    ?>
</h2>
                </div>
                <a href="<?php 
    esc_url($site_url);
    ?>
" target="new">
                    <div class="icon-option"> </div>
                </a>
                <div class="clear"></div>
            </div>
            <?php 
    // Rev up the Options Machine
    $return = inkthemes_optionsframework_machine($options);
    ?>
            <div id="main">
                <div id="of-nav">
                    <ul>
                        <?php 
    echo $return[1];
    ?>
                    </ul>
                </div>
                <div id="content"> <?php 
    echo $return[0];
    /* Settings */
    ?>
 </div>
                <div class="clear"></div>
            </div>
            <div class="save_bar_top">
                <img style="display:none" src="<?php 
    echo get_template_directory_uri();
    ?>
/functions/images/loading-bottom.gif" class="ajax-loading-img ajax-loading-img-bottom" alt="Working..." />
                <input type="submit" value="Save All Changes" class="button-primary" onclick="tinyMCE.triggerSave()" />
        </form>
        <form action="<?php 
    echo esc_attr($_SERVER['REQUEST_URI']);
    ?>
" method="post" style="display:inline" id="ofform-reset">
            <span class="submit-footer-reset">
                <input name="reset" type="submit" value="Reset Options" class="button submit-button reset-button" onclick="return confirm('Click OK to reset. Any settings will be lost!');" />
                <input type="hidden" name="of_save" value="reset" />
            </span>
        </form>
    </div>
    <?php 
    if (!empty($update_message)) {
        echo $update_message;
    }
    ?>
    <div style="clear:both;"></div>
    </div>
    <!--wrap-->
    <?php 
}