Skip to content

Commit

Permalink
Rename system name to "kdk_fill_it_up"
Browse files Browse the repository at this point in the history
  • Loading branch information
fevangelou committed Jan 22, 2020
1 parent c5d5872 commit 5a49129
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion admin/layouts/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<?php _e('Fill It Up is a simple tool you can use to mass generate dummy content & users for your WordPress website. By using Fill It Up you speed up the initial development process until actual, proper content is in place.', 'kdk_fill_it_up'); ?>
</div>
</div>
<a href="admin.php?page=fillitup/admin/index.php&amp;view=posts" class="button button-primary button-large"><?php _e('Generate content & users', 'kdk_fill_it_up'); ?></a>
<a href="admin.php?page=kdk_fill_it_up/admin/index.php&amp;view=posts" class="button button-primary button-large"><?php _e('Generate content & users', 'kdk_fill_it_up'); ?></a>
</div>
<div class="clr"></div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions admin/layouts/posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
</div>
<div id="fillitup-completed-message" style="display:none;">
<h3><?php _e('Success!', 'kdk_fill_it_up'); ?></h3>
<a href="admin.php?page=fillitup/admin/index.php" class="button button-primary"><?php _e('Back to Fill It Up', 'kdk_fill_it_up'); ?></a> <?php _e('or', 'kdk_fill_it_up'); ?> <a id="fillitup-start-over-button" href="#" class="button button-primary"><?php _e('Start Over', 'kdk_fill_it_up'); ?></a>
<img id="fillitup-success-img" src="<?php echo plugins_url(); ?>/fillitup/admin/assets/images/sam_rockwell_yeah.gif" alt="Success!" />
<a href="admin.php?page=kdk_fill_it_up/admin/index.php" class="button button-primary"><?php _e('Back to Fill It Up', 'kdk_fill_it_up'); ?></a> <?php _e('or', 'kdk_fill_it_up'); ?> <a id="fillitup-start-over-button" href="#" class="button button-primary"><?php _e('Start Over', 'kdk_fill_it_up'); ?></a>
<img id="fillitup-success-img" src="<?php echo plugins_url(); ?>/kdk_fill_it_up/admin/assets/images/sam_rockwell_yeah.gif" alt="Success!" />
</div>
<div id="fillItUpAdminFooter">
<a target="_blank" href="https://github.com/kodeka/kdk_fill_it_up">Fill It Up v1.0.3</a> | Copyright &copy; 2018-<?php echo date('Y'); ?> <a target="_blank" href="https://kodeka.io">Kodeka OÜ</a>.
Expand Down
12 changes: 6 additions & 6 deletions fillitup.php → kdk_fill_it_up.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ public function adminMenu()
$this,
'_settings'
));
add_menu_page('Fill It Up', 'Fill It Up', 'manage_options', 'fillitup/admin/index.php', '', 'data:image/svg+xml;base64,'.base64_encode(file_get_contents(FILLITUP_DIR.'admin/assets/images/fillitup.svg')));
add_submenu_page('fillitup/admin/index.php', 'Generator', 'Generator', 'manage_options', 'fillitup/admin/index.php');
add_submenu_page('fillitup/admin/index.php', 'Settings', 'Settings', 'manage_options', 'options-general.php?page=fillitup-options');
add_menu_page('Fill It Up', 'Fill It Up', 'manage_options', 'kdk_fill_it_up/admin/index.php', '', 'data:image/svg+xml;base64,'.base64_encode(file_get_contents(FILLITUP_DIR.'admin/assets/images/fillitup.svg')));
add_submenu_page('kdk_fill_it_up/admin/index.php', 'Generator', 'Generator', 'manage_options', 'kdk_fill_it_up/admin/index.php');
add_submenu_page('kdk_fill_it_up/admin/index.php', 'Settings', 'Settings', 'manage_options', 'options-general.php?page=fillitup-options');
}

public function _settings()
Expand Down Expand Up @@ -106,9 +106,9 @@ public function definitions_url_callback()
public function adminEnqueueScripts()
{
$screen = get_current_screen();
if ($screen->id == 'fillitup/admin/index' || $screen->id == 'settings_page_fillitup-options') {
wp_enqueue_script('fillitup', plugins_url('/fillitup/admin/assets/js/fillitup.js'), array('jquery'), '1.0.3');
wp_enqueue_style('fillitup', plugins_url('/fillitup/admin/assets/css/fillitup.css'), array(), '1.0.3');
if ($screen->id == 'kdk_fill_it_up/admin/index' || $screen->id == 'settings_page_fillitup-options') {
wp_enqueue_script('fillitup', plugins_url('/kdk_fill_it_up/admin/assets/js/fillitup.js'), array('jquery'), '1.0.3');
wp_enqueue_style('fillitup', plugins_url('/kdk_fill_it_up/admin/assets/css/fillitup.css'), array(), '1.0.3');
}
}

Expand Down

0 comments on commit 5a49129

Please sign in to comment.