Changeset 3274245
- Timestamp:
- 04/16/2025 07:36:55 AM (9 months ago)
- Location:
- smart-threema/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
threema.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smart-threema/trunk/readme.txt
r3207230 r3274245 5 5 Version: 2.4 6 6 Requires at least: 4.0 7 Tested up to: 6. 7.17 Tested up to: 6.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 14 14 Add Threema Buttons to your Website and allow your Visitor to Contact you. 15 15 The Contact Button show only on mobile Device 16 17 16 18 17 = Features = -
smart-threema/trunk/threema.php
r3207230 r3274245 8 8 Author URI: http://www.ericmaechler.com 9 9 Requires at least: 4.0 10 Tested up to: 6. 7.110 Tested up to: 6.8 11 11 */ 12 12 13 if ( ! defined( 'ABSPATH' )) exit; // Exit if accessed directly13 if (! defined('ABSPATH')) exit; // Exit if accessed directly 14 14 15 15 //threema mehrsprachig machen 16 function my_plugin_initthreema() { 17 load_plugin_textdomain( 'smart-threema', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); 18 } 19 add_action('init', 'my_plugin_initthreema'); 20 21 22 23 16 function my_plugin_initthreema() 17 { 18 load_plugin_textdomain('smart-threema', false, dirname(plugin_basename(__FILE__)) . '/languages'); 19 } 20 add_action('init', 'my_plugin_initthreema'); 24 21 25 22 … … 28 25 include 'conf.php'; 29 26 30 add_action( 'wp_enqueue_scripts', 'threemasmart_css_style_include' );31 32 function threemasmart_css_style_include() {33 //quick sharing button css34 27 35 wp_register_style( 'threemasmart_style', plugins_url('css/threemasmart_style.css', __FILE__) ); 36 wp_enqueue_style( 'threemasmart_style' ); 28 29 30 add_action('wp_enqueue_scripts', 'threemasmart_css_style_include'); 31 32 function threemasmart_css_style_include() 33 { 34 //quick sharing button css 35 36 wp_register_style('threemasmart_style', plugins_url('css/threemasmart_style.css', __FILE__)); 37 wp_enqueue_style('threemasmart_style'); 37 38 } 39 40 38 41 39 42 //threema://compose?id=33EJU3H5&text=Hier%20ein%20Beispiel%20Text. … … 60 63 /* ------------------------------------------- Floating Button Funktion -------------------------------------------------- */ 61 64 $threemasmart_floatingbutton_status_check = get_option('threemasmart_floatingbutton_status'); 62 if ($threemasmart_floatingbutton_status_check == 'an') 63 { 64 include("floating-button.php"); 65 if ($threemasmart_floatingbutton_status_check == 'an') { 66 include("floating-button.php"); 67 } else { 65 68 } 66 else67 {}68 69 69 70 /* ----------------------------------------------------------------------------------------------------------------------- */ 70 71 72 ?>
Note: See TracChangeset
for help on using the changeset viewer.