-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
919 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. | ||
/** | ||
* | ||
* @package Codestar Framework - WordPress Options Framework | ||
* @author Codestar <info@codestarthemes.com> | ||
* @link http://codestarframework.com | ||
* @copyright 2015-2022 Codestar | ||
* | ||
* | ||
* Plugin Name: Codestar Framework | ||
* Plugin URI: http://codestarframework.com/ | ||
* Author: Codestar | ||
* Author URI: http://codestarthemes.com/ | ||
* Version: 2.3.0 | ||
* Description: A Simple and Lightweight WordPress Option Framework for Themes and Plugins | ||
* Text Domain: csf | ||
* Domain Path: /languages | ||
* | ||
*/ | ||
require_once plugin_dir_path( __FILE__ ) .'classes/setup.class.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,181 @@ | ||
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. ?> | ||
|
||
<p>Welcome to the exciting world of Codestar Framework. Built in Object Oriented Programming paradigm with high number of custom fields and tons of options. Allows you to bring custom admin, metabox, taxonomy and customize settings to all of your pages, posts and categories. It's highly modern and advanced framework.</p> | ||
|
||
<div class="csf-welcome-cols"> | ||
|
||
<div class="csf--col csf--col-first"> | ||
<span class="csf--icon csf--active"><i class="fas fa-check"></i></span> | ||
<div class="csf--title">Admin Option Framework</div> | ||
<p class="csf--text">Built in Object Oriented Programming paradigm with high number of custom fields and tons of options. It's highly modern and advanced framework.</p> | ||
</div> | ||
|
||
<div class="csf--col csf--col-first"> | ||
<span class="csf--icon csf--<?php echo esc_attr( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CSF::$premium ? 'check' : 'times' ); ?>"></i></span> | ||
<div class="csf--title">Customize Option Framework</div> | ||
<p class="csf--text">Inherits the default WordPress Customizer with integration of own custom fields. It's more powerful to customize your site on live.</p> | ||
</div> | ||
|
||
<div class="csf--col csf--col-first csf--last"> | ||
<span class="csf--icon csf--<?php echo esc_attr( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CSF::$premium ? 'check' : 'times' ); ?>"></i></span> | ||
<div class="csf--title">Metabox Option Framework</div> | ||
<p class="csf--text">Allows you to bring custom metabox settings to all of your pages and posts. We provide advanced settings with numerious number of fields.</p> | ||
</div> | ||
|
||
<div class="clear"></div> | ||
|
||
<div class="csf--col csf--col-first"> | ||
<span class="csf--icon csf--<?php echo esc_attr( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CSF::$premium ? 'check' : 'times' ); ?>"></i></span> | ||
<div class="csf--title">Nav Menu Option Framework</div> | ||
<p class="csf--text">Allows you to bring custom nav menu item settings to all of your menus. We provide advanced settings with numerious number of fields.</p> | ||
</div> | ||
|
||
<div class="csf--col csf--col-first"> | ||
<span class="csf--icon csf--<?php echo esc_attr( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CSF::$premium ? 'check' : 'times' ); ?>"></i></span> | ||
<div class="csf--title">Taxonomy Option Framework</div> | ||
<p class="csf--text">Allows you to bring custom taxonomy settings to all of your categories, tags or CPT. We provide advanced settings with numerious number of fields.</p> | ||
</div> | ||
|
||
<div class="csf--col csf--col-first csf--last"> | ||
<span class="csf--icon csf--<?php echo esc_attr( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CSF::$premium ? 'check' : 'times' ); ?>"></i></span> | ||
<div class="csf--title">Profile Option Framework</div> | ||
<p class="csf--text">Allows you to bring custom user profile settings to all of users. We provide advanced settings with numerious number of fields.</p> | ||
</div> | ||
|
||
<div class="clear"></div> | ||
|
||
<div class="csf--col"> | ||
<span class="csf--icon csf--<?php echo esc_attr( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CSF::$premium ? 'check' : 'times' ); ?>"></i></span> | ||
<div class="csf--title">Widget Option Framework</div> | ||
<p class="csf--text">Allows you to creating custom widgets. We provide advanced settings wtih numerious number of fields.</p> | ||
</div> | ||
|
||
<div class="csf--col"> | ||
<span class="csf--icon csf--<?php echo esc_attr( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CSF::$premium ? 'check' : 'times' ); ?>"></i></span> | ||
<div class="csf--title">Comment Option Framework</div> | ||
<p class="csf--text">Allows you to bring custom comment metabox settings to all of comments. We provide advanced settings wtih numerious number of fields.</p> | ||
</div> | ||
|
||
<div class="csf--col csf--last"> | ||
<span class="csf--icon csf--<?php echo esc_attr( CSF::$premium ? 'active' : 'deactive' ); ?>"><i class="fas fa-<?php echo esc_attr( CSF::$premium ? 'check' : 'times' ); ?>"></i></span> | ||
<div class="csf--title">Shortcode Option Framework</div> | ||
<p class="csf--text">Comes with pre-built shortcode editor to manage your content. It's easy and flexible to build unlimited layouts with endless possibilites.</p> | ||
</div> | ||
|
||
<?php if ( ! CSF::$premium ) { ?> | ||
<div class="clear"></div> | ||
<div class="csf--col-upgrade"> | ||
<a href="http://codestarframework.com/" class="button button-primary" target="_blank" rel="nofollow"><i class="fas fa-share"></i> Upgrade Premium Version</a> | ||
</div> | ||
<?php } ?> | ||
|
||
<div class="clear"></div> | ||
</div> | ||
|
||
<hr /> | ||
|
||
<div class="csf-features-cols csf--col-wrap"> | ||
<div class="csf--col csf--key-features"> | ||
|
||
<h4>Key Features</h4> | ||
|
||
<ul> | ||
<li>WordPress 6.2.x Ready</li> | ||
<li>Gutenberg Ready</li> | ||
<li>Multiple instances</li> | ||
<li>Unlimited frameworks</li> | ||
<li>Output css styles</li> | ||
<li>Output typography</li> | ||
<li>Advanced option fields</li> | ||
<li>Fields dependencies based on rules</li> | ||
<li>Sanitize and validate fields</li> | ||
<li>Ajax saving</li> | ||
<li>Localization</li> | ||
<li>Useful hooks for configurations</li> | ||
<li>Export and import options</li> | ||
<li>and much more...</li> | ||
</ul> | ||
|
||
</div> | ||
|
||
<div class="csf--col csf--available-fields"> | ||
|
||
<h4>Available Fields</h4> | ||
|
||
<table class="csf--table-fields fixed widefat"> | ||
<tbody> | ||
<tr> | ||
<td>text</td> | ||
<td>accordion</td> | ||
<td>background</td> | ||
<td>backup</td> | ||
<td>icon</td> | ||
</tr> | ||
<tr> | ||
<td>textarea</td> | ||
<td>repeater</td> | ||
<td>heading</td> | ||
<td>date</td> | ||
<td>code_editor</td> | ||
</tr> | ||
<tr> | ||
<td>checkbox</td> | ||
<td>group</td> | ||
<td>image_select</td> | ||
<td>slider</td> | ||
<td>content</td> | ||
</tr> | ||
<tr> | ||
<td>select</td> | ||
<td>gallery</td> | ||
<td>notice</td> | ||
<td>fieldset</td> | ||
<td>typography</td> | ||
</tr> | ||
<tr> | ||
<td>switcher</td> | ||
<td>sorter</td> | ||
<td>link_color</td> | ||
<td>subheading</td> | ||
<td>upload</td> | ||
</tr> | ||
<tr> | ||
<td>color</td> | ||
<td>media</td> | ||
<td>radio</td> | ||
<td>tabbed</td> | ||
<td>wp_editor</td> | ||
</tr> | ||
<tr> | ||
<td>spacing</td> | ||
<td>border</td> | ||
<td>palette</td> | ||
<td>spinner</td> | ||
<td>dimensions</td> | ||
</tr> | ||
<tr> | ||
<td>link_color</td> | ||
<td>sortable</td> | ||
<td>button_set</td> | ||
<td>accordion</td> | ||
<td>others</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
<p>and more on the way...</p> | ||
|
||
</div> | ||
|
||
<div class="clear"></div> | ||
</div> | ||
|
||
<?php if ( CSF::$premium ) { ?> | ||
<hr /> | ||
<h5>You can force to disable this page with (it would works for only premium users):</h5> | ||
<div class="csf-code-block"> | ||
<pre> | ||
add_filter( 'csf_welcome_page', '__return_false' ); | ||
</pre> | ||
</div> | ||
<?php } ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. ?> | ||
|
||
<p>If you are new to Codestar Framework, here is a step-by-step plan for getting started.</p> | ||
|
||
<p><a href="http://codestarframework.com/documentation/" class="button" target="_blank" rel="nofollow"><i class="fas fa-book"></i> Online Documentation</a></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. ?> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. ?> | ||
|
||
<table class="csf--table-compare widefat fixed striped"> | ||
<thead> | ||
<tr> | ||
<td><strong>Features</strong></td> | ||
<td><strong>Free Version</strong></td> | ||
<td><strong>Premium Version</strong></td> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>Admin Option Framework</td> | ||
<td><i class="fas fa-check-circle"></i></td> | ||
<td><i class="fas fa-check-circle"></i></td> | ||
</tr> | ||
<tr> | ||
<td>Customize Option Framework</td> | ||
<td><i class="fas fa-times-circle"></i></td> | ||
<td><i class="fas fa-check-circle"></i></td> | ||
</tr> | ||
<tr> | ||
<td>Metabox Option Framework</td> | ||
<td><i class="fas fa-times-circle"></i></td> | ||
<td><i class="fas fa-check-circle"></i></td> | ||
</tr> | ||
<tr> | ||
<td>Nav Menu Option Framework</td> | ||
<td><i class="fas fa-times-circle"></i></td> | ||
<td><i class="fas fa-check-circle"></i></td> | ||
</tr> | ||
<tr> | ||
<td>Taxonomy Option Framework</td> | ||
<td><i class="fas fa-times-circle"></i></td> | ||
<td><i class="fas fa-check-circle"></i></td> | ||
</tr> | ||
<tr> | ||
<th>Profile Option Framework</th> | ||
<td><i class="fas fa-times-circle"></i></td> | ||
<td><i class="fas fa-check-circle"></i></td> | ||
</tr> | ||
<tr> | ||
<td>Widget Option Framework</td> | ||
<td><i class="fas fa-times-circle"></i></td> | ||
<td><i class="fas fa-check-circle"></i></td> | ||
</tr> | ||
<tr> | ||
<td>Comment Option Framework</td> | ||
<td><i class="fas fa-times-circle"></i></td> | ||
<td><i class="fas fa-check-circle"></i></td> | ||
</tr> | ||
<tr> | ||
<td>Shortcode Option Framework</td> | ||
<td><i class="fas fa-times-circle"></i></td> | ||
<td><i class="fas fa-check-circle"></i></td> | ||
</tr> | ||
<tr> | ||
<td>All Option Fields</td> | ||
<td><i class="fas fa-times-circle"></i></td> | ||
<td><i class="fas fa-check-circle"></i></td> | ||
</tr> | ||
<tr> | ||
<td>Developer Packages</td> | ||
<td><i class="fas fa-times-circle"></i></td> | ||
<td><i class="fas fa-check-circle"></i></td> | ||
</tr> | ||
<tr> | ||
<td>Unminfy Library</td> | ||
<td><i class="fas fa-times-circle"></i></td> | ||
<td><i class="fas fa-check-circle"></i></td> | ||
</tr> | ||
<tr> | ||
<td>New Requests</td> | ||
<td><i class="fas fa-times-circle"></i></td> | ||
<td><i class="fas fa-check-circle"></i></td> | ||
</tr> | ||
<tr> | ||
<td>Autoremove Advertisements</td> | ||
<td><i class="fas fa-times-circle"></i></td> | ||
<td><i class="fas fa-check-circle"></i></td> | ||
</tr> | ||
<tr> | ||
<td>Life-time access/updates</td> | ||
<td><i class="fas fa-times-circle"></i></td> | ||
<td><i class="fas fa-check-circle"></i></td> | ||
</tr> | ||
<tr> | ||
<td>Support Forum</td> | ||
<td><i class="fas fa-times-circle"></i></td> | ||
<td><i class="fas fa-check-circle"></i></td> | ||
</tr> | ||
</tbody> | ||
<tfoot> | ||
<tr> | ||
<td></td> | ||
<td><a href="https://github.com/Codestar/codestar-framework/" class="button" target="_blank" rel="nofollow">Download Free Version</a></td> | ||
<td><a href="http://codestarframework.com/" class="button button-primary" target="_blank" rel="nofollow">Upgrade Premium Version</a></td> | ||
</tr> | ||
</tfoot> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly. | ||
|
||
$demo = get_option( 'csf_demo_mode', false ); | ||
$text = ( ! empty( $demo ) ) ? 'Deactivate' : 'Activate'; | ||
$status = ( ! empty( $demo ) ) ? 'deactivate' : 'activate'; | ||
$class = ( ! empty( $demo ) ) ? ' csf-warning-primary' : ''; | ||
$section = ( ! empty( $_GET[ 'section' ] ) ) ? sanitize_text_field( wp_unslash( $_GET[ 'section' ] ) ) : 'about'; | ||
$links = array( | ||
'about' => 'About', | ||
'quickstart' => 'Quick Start', | ||
'documentation' => 'Documentation', | ||
'free-vs-premium' => 'Free vs Premium', | ||
'support' => 'Support', | ||
'relnotes' => 'Release Notes', | ||
); | ||
|
||
?> | ||
<div class="csf-welcome csf-welcome-wrap"> | ||
|
||
<h1>Welcome to Codestar Framework v<?php echo esc_attr( CSF::$version ); ?></h1> | ||
|
||
<p class="csf-about-text">A Simple and Lightweight WordPress Option Framework for Themes and Plugins</p> | ||
|
||
<p class="csf-demo-button"><a href="<?php echo esc_url( add_query_arg( array( 'csf-demo' => $status ) ) ); ?>" class="button button-primary<?php echo esc_attr( $class ); ?>"><?php echo esc_attr( $text ); ?> Demo</a></p> | ||
|
||
<div class="csf-logo"> | ||
<div class="csf--effects"><i></i><i></i><i></i><i></i></div> | ||
<div class="csf--wp-logos"> | ||
<div class="csf--wp-logo"></div> | ||
<div class="csf--wp-plugin-logo"></div> | ||
</div> | ||
<div class="csf--text">Codestar Framework</div> | ||
<div class="csf--text csf--version">v<?php echo esc_attr( CSF::$version ); ?></div> | ||
</div> | ||
|
||
<h2 class="nav-tab-wrapper wp-clearfix"> | ||
<?php | ||
|
||
foreach ( $links as $key => $link ) { | ||
|
||
if ( CSF::$premium && $key === 'free-vs-premium' ) { continue; } | ||
|
||
$activate = ( $section === $key ) ? ' nav-tab-active' : ''; | ||
|
||
echo '<a href="'. esc_url( add_query_arg( array( 'page' => 'csf-welcome', 'section' => $key ), admin_url( 'tools.php' ) ) ) .'" class="nav-tab'. esc_attr( $activate ) .'">'. esc_attr( $link ) .'</a>'; | ||
|
||
} | ||
|
||
?> | ||
</h2> |
Oops, something went wrong.