Changeset 1646316
- Timestamp:
- 04/27/2017 07:23:56 AM (9 years ago)
- File:
-
- 1 edited
-
countdown-flipclock/trunk/FlipClock.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
countdown-flipclock/trunk/FlipClock.php
r1586995 r1646316 2 2 /** 3 3 * @package Countdown Flipclock 4 * @version 2.6 4 * @version 2.6.1 5 5 */ 6 6 /* … … 10 10 Author: Bluelevel 11 11 Author URI: http://www.bluelevel.in 12 Version: 2.6 12 Version: 2.6.1 13 13 License: GPL2 14 14 Copyright 2017 BlueLevel Communications (email : [email protected]) … … 70 70 ), $CDFC_atts) ); 71 71 $CDFC_post_id = $id; 72 $CDFC_queried_post = get_post( post_id);73 $CDFC_title = $ queried_post->post_title;72 $CDFC_queried_post = get_post($CDFC_post_id); 73 $CDFC_title = $CDFC_queried_post->post_title; 74 74 $CDFC_color = get_post_meta($id, "CDFC_meta_box_cold", true); 75 75 $CDFC_bgcolor = get_post_meta($id, "CDFC_meta_box_colb", true); … … 130 130 $CDFC_mnth3 = $CDFC_mnth; 131 131 } 132 $CDFC_random_ID = mt_rand(); 132 133 return'<style>.flip-clock-wrapper ul li a div div.inn{color:'.$CDFC_color.';background-color:'.$CDFC_bgcolor.';font-family:"'.$CDFC_font.'"}.flip-clock-dot{background-color:'.$CDFC_bgcolor.';} 133 </style><div class="clock'.$CDFC_ title.' clock" style="margin:2em;"></div>134 </style><div class="clock'.$CDFC_random_ID.' clock '.$CDFC_title.'" style="margin:2em;"></div> 134 135 <script type="text/javascript">!function($){ 135 136 … … 157 158 158 159 // Instantiate a coutdown FlipClock 159 clock = $(".clock'.$CDFC_title.'").FlipClock(diff , { 160 clockFace: "DailyCounter", 161 countdown: true 162 }); 160 161 $(".clock").each(function() { 162 $( ".clock'.$CDFC_random_ID.'" ).FlipClock(diff , { 163 clockFace: "DailyCounter", 164 countdown: true 165 }); 166 }); 163 167 })}(jQuery);</script>'; 164 168 }
Note: See TracChangeset
for help on using the changeset viewer.