function wpef7_plugin_action_links($links, $file) { if ($file != WPEF7_PLUGIN_BASENAME) { return $links; } $url = wpef7_admin_url(array('page' => 'wpef7')); $settings_link = '<a href="' . esc_attr($url) . '">' . esc_html(__('Settings', 'wpef7')) . '</a>'; array_unshift($links, $settings_link); return $links; }
</div> <div id="wpef7-lang-select-modal" class="hidden"> <?php $available_locales = wpef7_l10n(); $default_locale = get_locale(); if (!isset($available_locales[$default_locale])) { $default_locale = 'en_US'; } ?> <h4><?php echo esc_html(sprintf(__('Use the default language (%s)', 'wpef7'), $available_locales[$default_locale])); ?> </h4> <p><a href="<?php echo wpef7_admin_url(array('contactform' => 'new')); ?> " class="button" /><?php echo esc_html(__('Add New', 'wpef7')); ?> </a></p> <?php unset($available_locales[$default_locale]); ?> <h4><?php echo esc_html(__('Or', 'wpef7')); ?> </h4> <form action="" method="get"> <input type="hidden" name="page" value="wpef7" />