Changeset 1408836
- Timestamp:
- 05/02/2016 11:22:07 AM (10 years ago)
- Location:
- copyfight
- Files:
-
- 36 added
- 14 edited
-
assets/screenshot-1.png (modified) (previous)
-
assets/screenshot-2.png (modified) (previous)
-
assets/screenshot-3.png (modified) (previous)
-
tags/1.3.11 (added)
-
tags/1.3.11/LICENSE.txt (added)
-
tags/1.3.11/_inc (added)
-
tags/1.3.11/_inc/copyfight-admin.css (added)
-
tags/1.3.11/_inc/copyfight-admin.js (added)
-
tags/1.3.11/_inc/copyfight.css (added)
-
tags/1.3.11/_inc/copyfight.js (added)
-
tags/1.3.11/_inc/img (added)
-
tags/1.3.11/_inc/img/copyfight-logo.png (added)
-
tags/1.3.11/_inc/img/copyfight_business_plan.png (added)
-
tags/1.3.11/_inc/img/copyfight_enterprise_plan.png (added)
-
tags/1.3.11/_inc/img/copyfight_freemium_plan.png (added)
-
tags/1.3.11/_inc/img/copyfight_premium_plan.png (added)
-
tags/1.3.11/_inc/img/icn-green.png (added)
-
tags/1.3.11/_inc/img/icn-grey-black.png (added)
-
tags/1.3.11/_inc/img/icn-red.png (added)
-
tags/1.3.11/_inc/img/icn-yellow.png (added)
-
tags/1.3.11/cache (added)
-
tags/1.3.11/cache/fontlist.txt (added)
-
tags/1.3.11/cache/index.php (added)
-
tags/1.3.11/class.copyfight-admin.php (added)
-
tags/1.3.11/class.copyfight.php (added)
-
tags/1.3.11/copyfight.php (added)
-
tags/1.3.11/index.php (added)
-
tags/1.3.11/languages (added)
-
tags/1.3.11/languages/copyfight-es_ES.mo (added)
-
tags/1.3.11/languages/copyfight-es_ES.po (added)
-
tags/1.3.11/languages/copyfight-nl_NL.mo (added)
-
tags/1.3.11/languages/copyfight-nl_NL.po (added)
-
tags/1.3.11/readme.txt (added)
-
tags/1.3.11/uninstall.php (added)
-
tags/1.3.11/views (added)
-
tags/1.3.11/views/config.php (added)
-
tags/1.3.11/views/index.php (added)
-
tags/1.3.11/views/notice.php (added)
-
tags/1.3.11/views/plans.php (added)
-
trunk/_inc/copyfight-admin.css (modified) (1 diff)
-
trunk/_inc/copyfight.css (modified) (1 diff)
-
trunk/class.copyfight-admin.php (modified) (9 diffs)
-
trunk/class.copyfight.php (modified) (1 diff)
-
trunk/copyfight.php (modified) (2 diffs)
-
trunk/languages/copyfight-es_ES.mo (modified) (previous)
-
trunk/languages/copyfight-es_ES.po (modified) (7 diffs)
-
trunk/languages/copyfight-nl_NL.mo (modified) (previous)
-
trunk/languages/copyfight-nl_NL.po (modified) (7 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/views/config.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
copyfight/trunk/_inc/copyfight-admin.css
r1393310 r1408836 85 85 .column-copyfight input { 86 86 border: none; 87 box-shadow: none; 88 background: none; 89 opacity: 1 !important; 90 cursor: default; 87 91 } 88 92 -
copyfight/trunk/_inc/copyfight.css
r1380393 r1408836 33 33 background-color: red; 34 34 color: white; 35 text-align: center; 35 36 } -
copyfight/trunk/class.copyfight-admin.php
r1408025 r1408836 76 76 register_setting( 'copyfight_options_group', 'copyfight_newsletter' ); 77 77 register_setting( 'copyfight_options_group', 'copyfight_status' ); 78 register_setting( 'copyfight_options_group', 'copyfight_tags' ); 78 79 register_setting( 'copyfight_options_group', 'copyfight_typeface' ); 79 80 register_setting( 'copyfight_options_group', 'copyfight_excerpt' ); … … 157 158 public static function display_posts_copyfight( $column, $post_id ) { 158 159 if ($column == 'copyfight') { 159 $status = call_user_func(COPYFIGHT_CLASS_ADMIN . '::is_copyfight_enabled', $post_id);160 $status = get_post_meta( $post_id, '_copyfight_status', true ); 160 161 if ( $status == 'enabled' ) { 161 162 echo '<input type="checkbox" disabled checked/>'; … … 167 168 168 169 public static function add_copyfight_column( $columns ) { 169 return array_merge( $columns, 170 array( 'copyfight' => __( 'Copyfight', 'copyfight' ) ) ); 170 return array_merge( $columns, array( 'copyfight' => __( 'Copyfight', 'copyfight' ) ) ); 171 171 } 172 172 … … 175 175 if ( strlen( $status ) ) { 176 176 $status = ( $status == 'disabled' ) ? 'disabled' : 'enabled'; 177 // get default s etting177 // get default status setting 178 178 } else { 179 179 $status = get_option('copyfight_status'); … … 182 182 } 183 183 184 public static function is_tags_enabled( $post_id ) { 185 $status = get_post_meta( $post_id, '_copyfight_tags', true ); 186 if ( strlen( $status ) ) { 187 $status = ( $status == 'disabled' ) ? 'disabled' : 'enabled'; 188 // get default tag setting 189 } else { 190 $status = get_option('copyfight_tags'); 191 } 192 return $status; 193 } 194 184 195 public static function copyfight_add_meta_box() { 185 add_meta_box( 'copyfight_post', __( 'Copyfight', 'copyfight' ), array(COPYFIGHT_CLASS_ADMIN, 'copyfight_meta_box_callback'), 'post' );186 add_meta_box( 'copyfight_page', __( 'Copyfight', 'copyfight' ), array(COPYFIGHT_CLASS_ADMIN, 'copyfight_meta_box_callback'), 'page' );196 add_meta_box( 'copyfight_post', __( 'Copyfight', 'copyfight' ), array(COPYFIGHT_CLASS_ADMIN, 'copyfight_meta_box_callback'), 'post', 'side', 'high' ); 197 add_meta_box( 'copyfight_page', __( 'Copyfight', 'copyfight' ), array(COPYFIGHT_CLASS_ADMIN, 'copyfight_meta_box_callback'), 'page', 'side', 'high' ); 187 198 } 188 199 189 200 public static function copyfight_meta_box_callback( $post ) { 190 201 wp_nonce_field( 'copyfight_save_meta_box_data', 'copyfight_meta_box_nonce' ); 202 203 //Status 204 $status = call_user_func(COPYFIGHT_CLASS_ADMIN . '::is_copyfight_enabled', $post->ID); 191 205 $options = array( 'enabled' => __( 'Enabled', 'copyfight' ), 'disabled' => __( 'Disabled', 'copyfight' ) ); 192 193 $status = call_user_func(COPYFIGHT_CLASS_ADMIN . '::is_copyfight_enabled', $post->ID); 194 206 echo '<p>'; 195 207 echo '<label for="copyfight_status">' . __( 'Status', 'copyfight' ) . ':</label> '; 196 208 echo '<select name="copyfight_status">'; … … 203 215 } 204 216 echo '</select>'; 217 echo '</p>'; 218 219 //Tags 220 $status = call_user_func(COPYFIGHT_CLASS_ADMIN . '::is_tags_enabled', $post->ID); 221 $options = array( 'enabled' => __( 'Enabled', 'copyfight' ), 'disabled' => __( 'Disabled', 'copyfight' ) ); 222 echo '<p>'; 223 echo '<label for="copyfight_tags">' . __( 'Tags', 'copyfight' ) . ':</label> '; 224 echo '<select name="copyfight_tags">'; 225 foreach ( $options as $value => $option ) { 226 if ( $value == $status ) { 227 echo ' <option selected value="' . $value . '">' . $option . '</option>'; 228 } else { 229 echo ' <option value="' . $value . '">' . $option . '</option>'; 230 } 231 } 232 echo '</select>'; 233 echo '</p>'; 205 234 } 206 235 … … 224 253 } 225 254 } 226 if ( !isset( $_POST['copyfight_status'] ) ) { 227 return; 228 } 255 256 if ( !isset( $_POST['copyfight_status'] ) || !isset( $_POST['copyfight_tags'] ) ) { 257 return; 258 } 259 229 260 $copyfight_status = sanitize_text_field( $_POST['copyfight_status'] ); 230 261 update_post_meta( $post_id, '_copyfight_status', $copyfight_status ); 262 263 $copyfight_tags = sanitize_text_field( $_POST['copyfight_tags'] ); 264 update_post_meta( $post_id, '_copyfight_tags', $copyfight_tags ); 231 265 } 232 266 … … 277 311 update_post_meta( $post_id, '_copyfight_keywords', $response->keywords ); 278 312 279 $terms = $terms = wp_get_post_terms( $post_id ); 280 if ( count( $terms ) == 0 ) { 313 //Tags 314 $status = get_post_meta( $post_id, '_copyfight_tags', true ); 315 if ( $status == 'enabled') { 316 $terms = $terms = wp_get_post_terms( $post_id ); 281 317 $keywords = array(); 282 318 foreach ( (array) $response->keywords as $keyword => $frequency ) { … … 285 321 wp_set_post_terms( $post_id, $keywords ); 286 322 } 323 287 324 } else { 288 325 -
copyfight/trunk/class.copyfight.php
r1380393 r1408836 76 76 } 77 77 $tpl .= '<!--googleon: anchor-->'; 78 $tpl .= '<input id="copyfight_notice" type="hidden" value="' . __( ' There is no content copied because this is a Copyfight protected article.', 'copyfight' ) . '">';78 $tpl .= '<input id="copyfight_notice" type="hidden" value="' . __( 'Copyfight prevented copying this content.', 'copyfight' ) . '">'; 79 79 $content = str_replace('{content}', $content, $tpl); 80 80 -
copyfight/trunk/copyfight.php
r1405615 r1408836 4 4 Plugin URI: https://getcopyfight.com/ 5 5 Description: Copyright protection 6 Version: 1.3.1 06 Version: 1.3.11 7 7 Author: Copyfight 8 8 Author URI: https://getcopyfight.com/ … … 35 35 add_action( 'plugins_loaded', 'copyfight_textdomain' ); 36 36 37 define( 'COPYFIGHT_VERSION', '1.3.1 0' );37 define( 'COPYFIGHT_VERSION', '1.3.11' ); 38 38 define( 'COPYFIGHT_MINIMUM_WP_VERSION', '3.2' ); 39 39 define( 'COPYFIGHT_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); -
copyfight/trunk/languages/copyfight-es_ES.po
r1405615 r1408836 2 2 msgstr "" 3 3 "Project-Id-Version: Copyfight\n" 4 "POT-Creation-Date: 2016-0 4-27 15:43+0200\n"5 "PO-Revision-Date: 2016-0 4-27 15:44+0200\n"4 "POT-Creation-Date: 2016-05-02 12:08+0200\n" 5 "PO-Revision-Date: 2016-05-02 12:09+0200\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: Copyfight <[email protected]>\n" … … 22 22 msgstr "Error: API vacío campo Clave" 23 23 24 #: class.copyfight-admin.php:84 class.copyfight-admin.php:3 1324 #: class.copyfight-admin.php:84 class.copyfight-admin.php:340 25 25 msgid "Settings" 26 26 msgstr "Ajustes" 27 27 28 #: class.copyfight-admin.php:90 class.copyfight-admin.php:1 6529 #: class.copyfight-admin.php:18 0 class.copyfight-admin.php:18128 #: class.copyfight-admin.php:90 class.copyfight-admin.php:170 29 #: class.copyfight-admin.php:185 class.copyfight-admin.php:186 30 30 msgid "Copyfight" 31 31 msgstr "Copyfight" … … 36 36 "Se ha producido un error de Derecho de Autor, el artículo no está protegido." 37 37 38 #: class.copyfight-admin.php:190 class.copyfight-admin.php:327 38 #: class.copyfight-admin.php:194 class.copyfight-admin.php:209 39 #: views/config.php:59 views/config.php:78 views/config.php:128 40 #: views/config.php:147 41 msgid "Enabled" 42 msgstr "Enciende" 43 44 #: class.copyfight-admin.php:194 class.copyfight-admin.php:209 45 #: views/config.php:58 views/config.php:77 views/config.php:127 46 #: views/config.php:146 47 msgid "Disabled" 48 msgstr "Apagar" 49 50 #: class.copyfight-admin.php:196 class.copyfight-admin.php:354 39 51 msgid "Status" 40 52 msgstr "Estado" 41 53 42 #: class.copyfight-admin.php:302 54 #: class.copyfight-admin.php:211 55 msgid "Tags" 56 msgstr "Etiquetas" 57 58 #: class.copyfight-admin.php:329 43 59 msgid "Overview" 44 60 msgstr "Visión de conjunto" 45 61 46 #: class.copyfight-admin.php:3 04 class.copyfight-admin.php:31547 #: class.copyfight-admin.php:3 2562 #: class.copyfight-admin.php:331 class.copyfight-admin.php:342 63 #: class.copyfight-admin.php:352 48 64 msgid "Copyfight Configuration" 49 65 msgstr "Copyfight Configuración" 50 66 51 #: class.copyfight-admin.php:3 0567 #: class.copyfight-admin.php:332 52 68 msgid "" 53 69 "Copyfight protects your content, so you can focus on more important things." … … 56 72 "importantes." 57 73 58 #: class.copyfight-admin.php:3 0674 #: class.copyfight-admin.php:333 59 75 msgid "" 60 76 "On this page, you are able to enter/remove an API key, view account " … … 64 80 "ver la información de la cuenta y ver las estadísticas." 65 81 66 #: class.copyfight-admin.php:3 16views/config.php:2282 #: class.copyfight-admin.php:343 views/config.php:22 67 83 msgid "API Key" 68 84 msgstr "API Clave" 69 85 70 #: class.copyfight-admin.php:3 1686 #: class.copyfight-admin.php:343 71 87 msgid "Enter/remove an API key." 72 88 msgstr "Introducir/eliminar una clave de API." 73 89 74 #: class.copyfight-admin.php:3 2390 #: class.copyfight-admin.php:350 75 91 msgid "Account" 76 92 msgstr "Cuenta" 77 93 78 #: class.copyfight-admin.php:3 2694 #: class.copyfight-admin.php:353 79 95 msgid "Subscription Type" 80 96 msgstr "Tipo de suscripción" 81 97 82 #: class.copyfight-admin.php:3 2698 #: class.copyfight-admin.php:353 83 99 msgid "The Copyfight subscription plan" 84 100 msgstr "El plan de suscripción Copyfight" 85 101 86 #: class.copyfight-admin.php:3 27102 #: class.copyfight-admin.php:354 87 103 msgid "The subscription status - active, cancelled or suspended" 88 104 msgstr "El estado de suscripción - activo, cancelado o suspendido" 89 105 90 #: class.copyfight-admin.php:3 32106 #: class.copyfight-admin.php:359 91 107 msgid "For more information:" 92 108 msgstr "Para más información:" 93 109 94 #: class.copyfight-admin.php:3 33110 #: class.copyfight-admin.php:360 95 111 msgid "Copyfight FAQ" 96 112 msgstr "Copyfight FAQ" 97 113 98 #: class.copyfight-admin.php:3 34114 #: class.copyfight-admin.php:361 99 115 msgid "Copyfight Support" 100 116 msgstr "Soporte Copyfight" 101 117 102 #: class.copyfight-admin.php: 380 class.copyfight-admin.php:396118 #: class.copyfight-admin.php:407 class.copyfight-admin.php:423 103 119 msgid "A Copyfight error has occurred..." 104 120 msgstr "Se ha producido un error de Copyfight..." 105 121 106 122 #: class.copyfight.php:78 107 msgid "" 108 "There is no content copied because this is a Copyfight protected article." 109 msgstr "" 110 "No hay contenido copiado porque se trata de un artículo protegido por " 111 "Copyfight." 123 msgid "Copyfight prevented copying this content." 124 msgstr "Copyfight impide la copia este contenido." 112 125 113 126 #: class.copyfight.php:98 class.copyfight.php:107 … … 160 173 msgstr "Estado predeterminado" 161 174 162 #: views/config.php:58 views/config.php:108 views/config.php:127163 msgid "Disabled"164 msgstr "Apagar"165 166 #: views/config.php:59 views/config.php:109 views/config.php:128167 msgid "Enabled"168 msgstr "Enciende"169 170 175 #: views/config.php:67 176 msgid "Default tags" 177 msgstr "Estado etiquetas" 178 179 #: views/config.php:86 171 180 msgid "Typeface" 172 181 msgstr "Tipo de letra" 173 182 174 #: views/config.php: 98183 #: views/config.php:117 175 184 msgid "Use excerpt" 176 185 msgstr "El uso del extracto" 177 186 178 #: views/config.php:1 17187 #: views/config.php:136 179 188 msgid "FOUC Protection" 180 189 msgstr "FOUC Protección" 181 190 182 #: views/config.php:1 17191 #: views/config.php:136 183 192 msgid "(Flash Of Unstyled Content)" 184 193 msgstr "" … … 216 225 217 226 #~ msgid "" 227 #~ "There is no content copied because this is a Copyfight protected article." 228 #~ msgstr "" 229 #~ "No hay contenido copiado porque se trata de un artículo protegido por " 230 #~ "Copyfight." 231 232 #~ msgid "" 218 233 #~ "There is no content copied because this is a Copyfight protected post." 219 234 #~ msgstr "No hay contenido porque este es un Copyfight protegida puesto." -
copyfight/trunk/languages/copyfight-nl_NL.po
r1405615 r1408836 4 4 msgstr "" 5 5 "Project-Id-Version: Development (trunk)\n" 6 "POT-Creation-Date: 2016-0 4-27 15:40+0200\n"7 "PO-Revision-Date: 2016-0 4-27 15:45+0200\n"6 "POT-Creation-Date: 2016-05-02 12:07+0200\n" 7 "PO-Revision-Date: 2016-05-02 12:08+0200\n" 8 8 "Last-Translator: \n" 9 9 "Language-Team: \n" … … 23 23 msgstr "Fout: leeg API sleutel veld" 24 24 25 #: class.copyfight-admin.php:84 class.copyfight-admin.php:3 1325 #: class.copyfight-admin.php:84 class.copyfight-admin.php:340 26 26 msgid "Settings" 27 27 msgstr "Configuratie" 28 28 29 #: class.copyfight-admin.php:90 class.copyfight-admin.php:1 6530 #: class.copyfight-admin.php:18 0 class.copyfight-admin.php:18129 #: class.copyfight-admin.php:90 class.copyfight-admin.php:170 30 #: class.copyfight-admin.php:185 class.copyfight-admin.php:186 31 31 msgid "Copyfight" 32 32 msgstr "Copyfight" … … 36 36 msgstr "Een Copyright fout is opgetreden, uw artikel is niet beschermd." 37 37 38 #: class.copyfight-admin.php:190 class.copyfight-admin.php:327 38 #: class.copyfight-admin.php:194 class.copyfight-admin.php:209 39 #: views/config.php:59 views/config.php:78 views/config.php:128 40 #: views/config.php:147 41 msgid "Enabled" 42 msgstr "Aan" 43 44 #: class.copyfight-admin.php:194 class.copyfight-admin.php:209 45 #: views/config.php:58 views/config.php:77 views/config.php:127 46 #: views/config.php:146 47 msgid "Disabled" 48 msgstr "Uit" 49 50 #: class.copyfight-admin.php:196 class.copyfight-admin.php:354 39 51 msgid "Status" 40 52 msgstr "Status" 41 53 42 #: class.copyfight-admin.php:302 54 #: class.copyfight-admin.php:211 55 msgid "Tags" 56 msgstr "Tags" 57 58 #: class.copyfight-admin.php:329 43 59 msgid "Overview" 44 60 msgstr "Overzicht" 45 61 46 #: class.copyfight-admin.php:3 04 class.copyfight-admin.php:31547 #: class.copyfight-admin.php:3 2562 #: class.copyfight-admin.php:331 class.copyfight-admin.php:342 63 #: class.copyfight-admin.php:352 48 64 msgid "Copyfight Configuration" 49 65 msgstr "Copyfight Configuratie" 50 66 51 #: class.copyfight-admin.php:3 0567 #: class.copyfight-admin.php:332 52 68 msgid "" 53 69 "Copyfight protects your content, so you can focus on more important things." … … 56 72 "belangrijke zaken." 57 73 58 #: class.copyfight-admin.php:3 0674 #: class.copyfight-admin.php:333 59 75 msgid "" 60 76 "On this page, you are able to enter/remove an API key, view account " … … 64 80 "bekijken." 65 81 66 #: class.copyfight-admin.php:3 16views/config.php:2282 #: class.copyfight-admin.php:343 views/config.php:22 67 83 msgid "API Key" 68 84 msgstr "API key" 69 85 70 #: class.copyfight-admin.php:3 1686 #: class.copyfight-admin.php:343 71 87 msgid "Enter/remove an API key." 72 88 msgstr "API-sleutel invoeren of verwijderen." 73 89 74 #: class.copyfight-admin.php:3 2390 #: class.copyfight-admin.php:350 75 91 msgid "Account" 76 92 msgstr "Account" 77 93 78 #: class.copyfight-admin.php:3 2694 #: class.copyfight-admin.php:353 79 95 msgid "Subscription Type" 80 96 msgstr "Abonnementstype" 81 97 82 #: class.copyfight-admin.php:3 2698 #: class.copyfight-admin.php:353 83 99 msgid "The Copyfight subscription plan" 84 100 msgstr "Het Copyfight abonnementen overzicht" 85 101 86 #: class.copyfight-admin.php:3 27102 #: class.copyfight-admin.php:354 87 103 msgid "The subscription status - active, cancelled or suspended" 88 104 msgstr "Abonnementstatus - actief, geannuleerd of geschorst" 89 105 90 #: class.copyfight-admin.php:3 32106 #: class.copyfight-admin.php:359 91 107 msgid "For more information:" 92 108 msgstr "Voor meer info:" 93 109 94 #: class.copyfight-admin.php:3 33110 #: class.copyfight-admin.php:360 95 111 msgid "Copyfight FAQ" 96 112 msgstr "Copyfight Veelgestelde Vragen" 97 113 98 #: class.copyfight-admin.php:3 34114 #: class.copyfight-admin.php:361 99 115 msgid "Copyfight Support" 100 116 msgstr "Copyfight ondersteuning" 101 117 102 #: class.copyfight-admin.php: 380 class.copyfight-admin.php:396118 #: class.copyfight-admin.php:407 class.copyfight-admin.php:423 103 119 msgid "A Copyfight error has occurred..." 104 120 msgstr "Er is een Copyfight fout opgetreden..." 105 121 106 122 #: class.copyfight.php:78 107 msgid "" 108 "There is no content copied because this is a Copyfight protected article." 109 msgstr "" 110 "Er is geen inhoud gekopieerd, want dit is een Copyfight beschermd artikel." 123 msgid "Copyfight prevented copying this content." 124 msgstr "Copyfight voorkwam het kopiëren van deze content." 111 125 112 126 #: class.copyfight.php:98 class.copyfight.php:107 … … 158 172 msgstr "Standaard status" 159 173 160 #: views/config.php:58 views/config.php:108 views/config.php:127161 msgid "Disabled"162 msgstr "Uit"163 164 #: views/config.php:59 views/config.php:109 views/config.php:128165 msgid "Enabled"166 msgstr "Aan"167 168 174 #: views/config.php:67 175 msgid "Default tags" 176 msgstr "Standaard tags" 177 178 #: views/config.php:86 169 179 msgid "Typeface" 170 180 msgstr "Lettertype" 171 181 172 #: views/config.php: 98182 #: views/config.php:117 173 183 msgid "Use excerpt" 174 184 msgstr "Gebruik samenvatting" 175 185 176 #: views/config.php:1 17186 #: views/config.php:136 177 187 msgid "FOUC Protection" 178 188 msgstr "FOUC Protectie" 179 189 180 #: views/config.php:1 17190 #: views/config.php:136 181 191 msgid "(Flash Of Unstyled Content)" 182 192 msgstr "" … … 207 217 "Onze <a href=\"https://getcopyfight.com/fair-use-policy/\" target=\"_blank" 208 218 "\">Fair Use Policy</a> is van toepassing op alle acties en abonnementen." 219 220 #~ msgid "" 221 #~ "There is no content copied because this is a Copyfight protected article." 222 #~ msgstr "" 223 #~ "Er is geen inhoud gekopieerd, want dit is een Copyfight beschermd artikel." 209 224 210 225 #~ msgid "A Copyfight error has occurred... " -
copyfight/trunk/readme.txt
r1405623 r1408836 7 7 Requires at least: 3.3.0 8 8 Tested up to: 4.5.1 9 Stable tag: 1.3.1 09 Stable tag: 1.3.11 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 67 67 68 68 == Screenshots == 69 1. Co nfiguration screen70 2. Posts/Pages listing: Copyfig thcolumn69 1. Copyfight configuration screen 70 2. Posts/Pages listing: Copyfight column 71 71 3. Post/Page screen: Copyfight options 72 72 -
copyfight/trunk/views/config.php
r1405615 r1408836 65 65 </tr> 66 66 <tr valign="top"> 67 <th scope="row"><label for="copyfight_t ypeface"><?php _e('Typeface', 'copyfight'); ?></label></th>67 <th scope="row"><label for="copyfight_tags"><?php _e('Default tags', 'copyfight'); ?></label></th> 68 68 <td style="white-space: nowrap"> 69 <select id="copyfight_t ypeface" name="copyfight_typeface">69 <select id="copyfight_tags" name="copyfight_tags"> 70 70 <?php 71 $timestamp = false; 72 $fontlist = file_get_contents( COPYFIGHT_FONTLIST ); 73 $fonts = unserialize( $fontlist ); 74 $copyfight_typeface = get_option('copyfight_typeface'); 75 if ( strlen( $copyfight_typeface ) == 0 ) { 76 update_option('copyfight_typeface', 'opensans/OpenSans-Regular.ttf'); 77 $copyfight_typeface = get_option('copyfight_typeface'); 78 } 79 asort($fonts); 80 foreach ($fonts as $file => $name) { 81 if ($copyfight_typeface == $file) { 82 echo ' <option selected value="' . $file . '">' . $name[0] . '</option>'; 83 } else { 84 echo ' <option value="' . $file . '">' . $name[0] . '</option>'; 85 } 71 $copyfight_tags = get_option('copyfight_tags'); 72 if ( strlen( $copyfight_tags ) == 0 ) { 73 update_option('copyfight_tags', 'enabled'); 74 $copyfight_tags = get_option('copyfight_tags'); 86 75 } 87 76 ?> 77 <option <?php if ( $copyfight_tags == 'disabled') { echo 'selected '; } ?>value="disabled"><?php _e('Disabled', 'copyfight'); ?></option>'; 78 <option <?php if ( $copyfight_tags == 'enabled') { echo 'selected '; } ?> value="enabled"><?php _e('Enabled', 'copyfight'); ?></option>'; 88 79 </select> 89 <?php add_thickbox(); ?> 90 <div id="copyfight_typeface_info_loader"><img src="/wp-admin/images/wpspin_light-2x.gif" /></div> 91 <a id="copyfight_typeface_info_link" title="Typeface" href="#TB_inline?width=640&height=320&inlineId=copyfight_typeface_info" class="thickbox"> 92 <div class="dashicons dashicons-info copyfight_typeface_info"></div> 80 <a id="copyfight_tags_info" target="_blank" title="Default tags" href="<?php echo COPYFIGHT_HOME; ?>support/wordpress-default-tags/"> 81 <div class="dashicons dashicons-info"></div> 93 82 </a> 94 <div id="copyfight_typeface_info" class="cf_modal"></div>95 83 </td> 96 84 </tr> … … 133 121 </td> 134 122 </tr> 123 <tr valign="top"> 124 <th scope="row"><label for="copyfight_typeface"><?php _e('Typeface', 'copyfight'); ?></label></th> 125 <td style="white-space: nowrap"> 126 <select id="copyfight_typeface" name="copyfight_typeface"> 127 <?php 128 $timestamp = false; 129 $fontlist = file_get_contents( COPYFIGHT_FONTLIST ); 130 $fonts = unserialize( $fontlist ); 131 $copyfight_typeface = get_option('copyfight_typeface'); 132 if ( strlen( $copyfight_typeface ) == 0 ) { 133 update_option('copyfight_typeface', 'opensans/OpenSans-Regular.ttf'); 134 $copyfight_typeface = get_option('copyfight_typeface'); 135 } 136 asort($fonts); 137 foreach ($fonts as $file => $name) { 138 if ($copyfight_typeface == $file) { 139 echo ' <option selected value="' . $file . '">' . $name[0] . '</option>'; 140 } else { 141 echo ' <option value="' . $file . '">' . $name[0] . '</option>'; 142 } 143 } 144 ?> 145 </select> 146 <?php add_thickbox(); ?> 147 <div id="copyfight_typeface_info_loader"><img src="/wp-admin/images/wpspin_light-2x.gif" /></div> 148 <a id="copyfight_typeface_info_link" title="Typeface" href="#TB_inline?width=640&height=320&inlineId=copyfight_typeface_info" class="thickbox"> 149 <div class="dashicons dashicons-info copyfight_typeface_info"></div> 150 </a> 151 <div id="copyfight_typeface_info" class="cf_modal"></div> 152 </td> 153 </tr> 135 154 </table> 136 155
Note: See TracChangeset
for help on using the changeset viewer.