Changeset 3236250
- Timestamp:
- 02/06/2025 07:53:37 PM (14 months ago)
- Location:
- molongui-authorship/trunk
- Files:
-
- 14 edited
-
README.txt (modified) (1 diff)
-
changelog.txt (modified) (1 diff)
-
i18n/molongui-authorship-ar.po (modified) (5 diffs)
-
i18n/molongui-authorship-de_DE.po (modified) (5 diffs)
-
i18n/molongui-authorship-es_ES.po (modified) (5 diffs)
-
i18n/molongui-authorship-fr_FR.po (modified) (5 diffs)
-
i18n/molongui-authorship-nl_NL.po (modified) (5 diffs)
-
i18n/molongui-authorship-ru_RU.po (modified) (5 diffs)
-
i18n/molongui-authorship-zh_CN.po (modified) (5 diffs)
-
i18n/molongui-authorship.pot (modified) (5 diffs)
-
includes/author-box.php (modified) (2 diffs)
-
molongui-authorship.php (modified) (2 diffs)
-
views/author-box/parts/html-meta.php (modified) (2 diffs)
-
views/author-box/parts/html-socialmedia.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
molongui-authorship/trunk/README.txt
r3234936 r3236250 197 197 198 198 <strong>Important</strong>: If you use a caching plugin, please clear your cache after updating any plugins. 199 200 = 5.0.12 (2025-02-06) = 201 202 * Fixed: Incorrect author meta information displayed in the author box when profile fields are missing. 199 203 200 204 = 5.0.11 (2025-02-04) = -
molongui-authorship/trunk/changelog.txt
r3234936 r3236250 2 2 3 3 == Changelog == 4 5 = 5.0.12 (2025-02-06) = 6 7 * Fixed: Incorrect author meta information displayed in the author box when profile fields are missing. 4 8 5 9 = 5.0.11 (2025-02-04) = -
molongui-authorship/trunk/i18n/molongui-authorship-ar.po
r3234936 r3236250 3 3 "Project-Id-Version: Molongui Authorship\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2025-02-0 4 18:21+0100\n"5 "POT-Creation-Date: 2025-02-06 20:41+0100\n" 6 6 "PO-Revision-Date: 2017-08-23 13:23+0100\n" 7 7 "Last-Translator: Amitzy <molongui@amitzy.com>\n" … … 2485 2485 #: views/admin/editor/parts/html-editor-tab-content.php:557 2486 2486 #: views/admin/editor/parts/html-editor-tab-content.php:558 2487 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php: 982487 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:101 2488 2488 msgid "at" 2489 2489 msgstr "في" … … 2492 2492 #: views/admin/editor/parts/html-editor-tab-content.php:568 2493 2493 #: views/admin/editor/parts/html-editor-tab-content.php:569 2494 #: views/author-box/parts/html-meta.php: 582494 #: views/author-box/parts/html-meta.php:60 2495 2495 #: views/guest-author/html-admin-profile-metabox.php:74 2496 2496 msgid "Website" … … 2500 2500 #: views/admin/editor/parts/html-editor-tab-content.php:579 2501 2501 #: views/admin/editor/parts/html-editor-tab-content.php:580 2502 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:6 62502 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:67 2503 2503 msgid "+ posts" 2504 2504 msgstr "+ مقالات" … … 2507 2507 #: views/admin/editor/parts/html-editor-tab-content.php:590 2508 2508 #: views/admin/editor/parts/html-editor-tab-content.php:591 2509 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:7 02509 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:71 2510 2510 msgid "Bio ⮌" 2511 2511 msgstr "" -
molongui-authorship/trunk/i18n/molongui-authorship-de_DE.po
r3234936 r3236250 9 9 "Project-Id-Version: molongui-authorship 2.0.0\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2025-02-0 4 18:21+0100\n"11 "POT-Creation-Date: 2025-02-06 20:41+0100\n" 12 12 "PO-Revision-Date: 2017-08-21 18:25+0200\n" 13 13 "Last-Translator: <EMAIL@ADDRESS>\n" … … 2328 2328 #: views/admin/editor/parts/html-editor-tab-content.php:557 2329 2329 #: views/admin/editor/parts/html-editor-tab-content.php:558 2330 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php: 982330 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:101 2331 2331 msgid "at" 2332 2332 msgstr "" … … 2335 2335 #: views/admin/editor/parts/html-editor-tab-content.php:568 2336 2336 #: views/admin/editor/parts/html-editor-tab-content.php:569 2337 #: views/author-box/parts/html-meta.php: 582337 #: views/author-box/parts/html-meta.php:60 2338 2338 #: views/guest-author/html-admin-profile-metabox.php:74 2339 2339 msgid "Website" … … 2343 2343 #: views/admin/editor/parts/html-editor-tab-content.php:579 2344 2344 #: views/admin/editor/parts/html-editor-tab-content.php:580 2345 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:6 62345 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:67 2346 2346 msgid "+ posts" 2347 2347 msgstr "" … … 2350 2350 #: views/admin/editor/parts/html-editor-tab-content.php:590 2351 2351 #: views/admin/editor/parts/html-editor-tab-content.php:591 2352 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:7 02352 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:71 2353 2353 msgid "Bio ⮌" 2354 2354 msgstr "" -
molongui-authorship/trunk/i18n/molongui-authorship-es_ES.po
r3234936 r3236250 3 3 "Project-Id-Version: Molongui Authorship\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2025-02-0 4 18:21+0100\n"5 "POT-Creation-Date: 2025-02-06 20:41+0100\n" 6 6 "PO-Revision-Date: 2020-10-21 22:40+0200\n" 7 7 "Last-Translator: Molongui\n" … … 2455 2455 #: views/admin/editor/parts/html-editor-tab-content.php:557 2456 2456 #: views/admin/editor/parts/html-editor-tab-content.php:558 2457 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php: 982457 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:101 2458 2458 msgid "at" 2459 2459 msgstr "en" … … 2462 2462 #: views/admin/editor/parts/html-editor-tab-content.php:568 2463 2463 #: views/admin/editor/parts/html-editor-tab-content.php:569 2464 #: views/author-box/parts/html-meta.php: 582464 #: views/author-box/parts/html-meta.php:60 2465 2465 #: views/guest-author/html-admin-profile-metabox.php:74 2466 2466 msgid "Website" … … 2470 2470 #: views/admin/editor/parts/html-editor-tab-content.php:579 2471 2471 #: views/admin/editor/parts/html-editor-tab-content.php:580 2472 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:6 62472 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:67 2473 2473 msgid "+ posts" 2474 2474 msgstr "+ posts" … … 2477 2477 #: views/admin/editor/parts/html-editor-tab-content.php:590 2478 2478 #: views/admin/editor/parts/html-editor-tab-content.php:591 2479 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:7 02479 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:71 2480 2480 msgid "Bio ⮌" 2481 2481 msgstr "" -
molongui-authorship/trunk/i18n/molongui-authorship-fr_FR.po
r3234936 r3236250 9 9 "Project-Id-Version: molongui-authorship 2.0.0\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2025-02-0 4 18:21+0100\n"11 "POT-Creation-Date: 2025-02-06 20:41+0100\n" 12 12 "PO-Revision-Date: 2018-04-14 17:28+0200\n" 13 13 "Last-Translator: EMAIL@ADDRESS\n" … … 2431 2431 #: views/admin/editor/parts/html-editor-tab-content.php:557 2432 2432 #: views/admin/editor/parts/html-editor-tab-content.php:558 2433 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php: 982433 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:101 2434 2434 msgid "at" 2435 2435 msgstr "à" … … 2438 2438 #: views/admin/editor/parts/html-editor-tab-content.php:568 2439 2439 #: views/admin/editor/parts/html-editor-tab-content.php:569 2440 #: views/author-box/parts/html-meta.php: 582440 #: views/author-box/parts/html-meta.php:60 2441 2441 #: views/guest-author/html-admin-profile-metabox.php:74 2442 2442 msgid "Website" … … 2446 2446 #: views/admin/editor/parts/html-editor-tab-content.php:579 2447 2447 #: views/admin/editor/parts/html-editor-tab-content.php:580 2448 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:6 62448 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:67 2449 2449 msgid "+ posts" 2450 2450 msgstr "Plus de publications" … … 2453 2453 #: views/admin/editor/parts/html-editor-tab-content.php:590 2454 2454 #: views/admin/editor/parts/html-editor-tab-content.php:591 2455 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:7 02455 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:71 2456 2456 msgid "Bio ⮌" 2457 2457 msgstr "" -
molongui-authorship/trunk/i18n/molongui-authorship-nl_NL.po
r3234936 r3236250 3 3 "Project-Id-Version: Molongui Authorship\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2025-02-0 4 18:21+0100\n"5 "POT-Creation-Date: 2025-02-06 20:41+0100\n" 6 6 "PO-Revision-Date: 2016-09-12 12:31+0100\n" 7 7 "Last-Translator: Amitzy <molongui@amitzy.com>\n" … … 2462 2462 #: views/admin/editor/parts/html-editor-tab-content.php:557 2463 2463 #: views/admin/editor/parts/html-editor-tab-content.php:558 2464 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php: 982464 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:101 2465 2465 msgid "at" 2466 2466 msgstr "bij" … … 2469 2469 #: views/admin/editor/parts/html-editor-tab-content.php:568 2470 2470 #: views/admin/editor/parts/html-editor-tab-content.php:569 2471 #: views/author-box/parts/html-meta.php: 582471 #: views/author-box/parts/html-meta.php:60 2472 2472 #: views/guest-author/html-admin-profile-metabox.php:74 2473 2473 msgid "Website" … … 2477 2477 #: views/admin/editor/parts/html-editor-tab-content.php:579 2478 2478 #: views/admin/editor/parts/html-editor-tab-content.php:580 2479 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:6 62479 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:67 2480 2480 msgid "+ posts" 2481 2481 msgstr "+ berichten" … … 2484 2484 #: views/admin/editor/parts/html-editor-tab-content.php:590 2485 2485 #: views/admin/editor/parts/html-editor-tab-content.php:591 2486 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:7 02486 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:71 2487 2487 msgid "Bio ⮌" 2488 2488 msgstr "" -
molongui-authorship/trunk/i18n/molongui-authorship-ru_RU.po
r3234936 r3236250 9 9 "Project-Id-Version: molongui-authorship 2.0.0\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2025-02-0 4 18:21+0100\n"11 "POT-Creation-Date: 2025-02-06 20:41+0100\n" 12 12 "PO-Revision-Date: 2017-08-21 18:25+0200\n" 13 13 "Last-Translator: <EMAIL@ADDRESS>\n" … … 2334 2334 #: views/admin/editor/parts/html-editor-tab-content.php:557 2335 2335 #: views/admin/editor/parts/html-editor-tab-content.php:558 2336 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php: 982336 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:101 2337 2337 msgid "at" 2338 2338 msgstr "" … … 2341 2341 #: views/admin/editor/parts/html-editor-tab-content.php:568 2342 2342 #: views/admin/editor/parts/html-editor-tab-content.php:569 2343 #: views/author-box/parts/html-meta.php: 582343 #: views/author-box/parts/html-meta.php:60 2344 2344 #: views/guest-author/html-admin-profile-metabox.php:74 2345 2345 msgid "Website" … … 2349 2349 #: views/admin/editor/parts/html-editor-tab-content.php:579 2350 2350 #: views/admin/editor/parts/html-editor-tab-content.php:580 2351 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:6 62351 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:67 2352 2352 msgid "+ posts" 2353 2353 msgstr "" … … 2356 2356 #: views/admin/editor/parts/html-editor-tab-content.php:590 2357 2357 #: views/admin/editor/parts/html-editor-tab-content.php:591 2358 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:7 02358 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:71 2359 2359 msgid "Bio ⮌" 2360 2360 msgstr "" -
molongui-authorship/trunk/i18n/molongui-authorship-zh_CN.po
r3234936 r3236250 9 9 "Project-Id-Version: molongui-authorship 2.0.0\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2025-02-0 4 18:21+0100\n"11 "POT-Creation-Date: 2025-02-06 20:41+0100\n" 12 12 "PO-Revision-Date: 2017-08-21 18:25+0200\n" 13 13 "Last-Translator: <EMAIL@ADDRESS>\n" … … 2327 2327 #: views/admin/editor/parts/html-editor-tab-content.php:557 2328 2328 #: views/admin/editor/parts/html-editor-tab-content.php:558 2329 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php: 982329 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:101 2330 2330 msgid "at" 2331 2331 msgstr "" … … 2334 2334 #: views/admin/editor/parts/html-editor-tab-content.php:568 2335 2335 #: views/admin/editor/parts/html-editor-tab-content.php:569 2336 #: views/author-box/parts/html-meta.php: 582336 #: views/author-box/parts/html-meta.php:60 2337 2337 #: views/guest-author/html-admin-profile-metabox.php:74 2338 2338 msgid "Website" … … 2342 2342 #: views/admin/editor/parts/html-editor-tab-content.php:579 2343 2343 #: views/admin/editor/parts/html-editor-tab-content.php:580 2344 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:6 62344 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:67 2345 2345 msgid "+ posts" 2346 2346 msgstr "" … … 2349 2349 #: views/admin/editor/parts/html-editor-tab-content.php:590 2350 2350 #: views/admin/editor/parts/html-editor-tab-content.php:591 2351 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:7 02351 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:71 2352 2352 msgid "Bio ⮌" 2353 2353 msgstr "" -
molongui-authorship/trunk/i18n/molongui-authorship.pot
r3234936 r3236250 7 7 msgid "" 8 8 msgstr "" 9 "Project-Id-Version: molongui-authorship 5.0.1 1\n"9 "Project-Id-Version: molongui-authorship 5.0.12\n" 10 10 "Report-Msgid-Bugs-To: \n" 11 "POT-Creation-Date: 2025-02-0 4 18:21+0100\n"11 "POT-Creation-Date: 2025-02-06 20:41+0100\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 2328 2328 #: views/admin/editor/parts/html-editor-tab-content.php:557 2329 2329 #: views/admin/editor/parts/html-editor-tab-content.php:558 2330 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php: 982330 #: views/admin/html-page-editor.php:63 views/author-box/parts/html-meta.php:101 2331 2331 msgid "at" 2332 2332 msgstr "" … … 2335 2335 #: views/admin/editor/parts/html-editor-tab-content.php:568 2336 2336 #: views/admin/editor/parts/html-editor-tab-content.php:569 2337 #: views/author-box/parts/html-meta.php: 582337 #: views/author-box/parts/html-meta.php:60 2338 2338 #: views/guest-author/html-admin-profile-metabox.php:74 2339 2339 msgid "Website" … … 2343 2343 #: views/admin/editor/parts/html-editor-tab-content.php:579 2344 2344 #: views/admin/editor/parts/html-editor-tab-content.php:580 2345 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:6 62345 #: views/admin/html-page-editor.php:65 views/author-box/parts/html-meta.php:67 2346 2346 msgid "+ posts" 2347 2347 msgstr "" … … 2350 2350 #: views/admin/editor/parts/html-editor-tab-content.php:590 2351 2351 #: views/admin/editor/parts/html-editor-tab-content.php:591 2352 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:7 02352 #: views/admin/html-page-editor.php:66 views/author-box/parts/html-meta.php:71 2353 2353 msgid "Bio ⮌" 2354 2354 msgstr "" -
molongui-authorship/trunk/includes/author-box.php
r3231805 r3236250 580 580 } 581 581 return apply_filters( 'molongui_authorship/add_author_box', $add ); 582 } 583 private function should_display() 584 { 585 $display = true; 586 $post = Post::get(); 587 $post_type = Post::retrieve_post_type( $post ); 588 if ( !in_array( $post_type, Settings::get_post_types_with_author_box() ) ) 589 { 590 $display = false; 591 Debug::console_log( null, sprintf( 592 "Author box not displayed: current post type (%s) doesn't support the author box feature.", 593 $post_type 594 )); 595 } 596 elseif ( 'hide' === get_post_meta( $post->ID, '_molongui_author_box_display', true ) ) 597 { 598 $display = false; 599 Debug::console_log( null, sprintf( 600 "Author box not displayed: current post (#%s) is configured to not display the author box.", 601 $post->ID 602 )); 603 } 604 elseif ( 'default' === get_post_meta( $post->ID, '_molongui_author_box_display', true ) ) 605 { 606 if ( in_array( $post_type, Settings::get_post_types_with_author_box( 'manual' ) ) ) 607 { 608 if ( !Settings::get( 'author_box_auto_display_override', true ) 609 and !in_array( $post_type, Settings::get_post_types_with_author_box( 'auto' ) ) ) 610 { 611 $display = false; 612 Debug::console_log( null, sprintf( 613 "Author box not displayed: current post type (%s) is configured to display the author box only if the post (#%s) has the display setting set to 'Show'.", 614 $post_type, 615 $post->ID 616 )); 617 } 618 } 619 } 620 return apply_filters( 'molongui_authorship/display_author_box', $display ); 582 621 } 583 622 public function get_markup() … … 706 745 return apply_filters( 'molongui_authorship/author_box_markup', ob_get_clean(), $profiles ); 707 746 } 708 private function should_display()709 {710 $display = true;711 $post = Post::get();712 $post_type = Post::retrieve_post_type( $post );713 if ( !in_array( $post_type, Settings::get_post_types_with_author_box() ) )714 {715 $display = false;716 Debug::console_log( null, sprintf(717 "Author box not displayed: current post type (%s) doesn't support the author box feature.",718 $post_type719 ));720 }721 elseif ( 'hide' === get_post_meta( $post->ID, '_molongui_author_box_display', true ) )722 {723 $display = false;724 Debug::console_log( null, sprintf(725 "Author box not displayed: current post (#%s) is configured to not display the author box.",726 $post->ID727 ));728 }729 elseif ( 'default' === get_post_meta( $post->ID, '_molongui_author_box_display', true ) )730 {731 if ( in_array( $post_type, Settings::get_post_types_with_author_box( 'manual' ) ) )732 {733 if ( !Settings::get( 'author_box_auto_display_override', true )734 and !in_array( $post_type, Settings::get_post_types_with_author_box( 'auto' ) ) )735 {736 $display = false;737 Debug::console_log( null, sprintf(738 "Author box not displayed: current post type (%s) is configured to display the author box only if the post (#%s) has the display setting set to 'Show'.",739 $post_type,740 $post->ID741 ));742 }743 }744 }745 return apply_filters( 'molongui_authorship/display_author_box', $display );746 }747 747 public function render() 748 748 { -
molongui-authorship/trunk/molongui-authorship.php
r3234936 r3236250 13 13 * Plugin URI: https://www.molongui.com/wordpress-plugin-post-authors 14 14 * Description: All-in-One Authorship Solution: Seamless Author Box, Guest Authors, and Co-Authors to enhance your site's authority, credibility, engagement, and SEO. 15 * Version: 5.0.1 115 * Version: 5.0.12 16 16 * Requires at least: 5.2 17 17 * Tested up to: 6.7 … … 44 44 final class MolonguiAuthorship 45 45 { 46 const VERSION = '5.0.1 1';46 const VERSION = '5.0.12'; 47 47 use Singleton; 48 48 function __construct() -
molongui-authorship/trunk/views/author-box/parts/html-meta.php
r3222089 r3236250 11 11 $nofollow = ( $options['social_profiles_nofollow'] ? 'rel="nofollow"' : '' ); 12 12 $separator = sprintf( ' %s ', '<span class="m-a-box-meta-divider">'.$options['author_box_meta_divider'].'</span>' ); 13 14 $author_job = $author_company = $author_phone = $author_email = $author_web = $author_meta = ''; 13 15 if ( !empty( $profile['job'] ) ) 14 16 { … … 66 68 <?php $author_more = ob_get_clean(); 67 69 } 70 71 $showing_job = $showing_company = $showing_phone = $showing_email = $showing_web = $showing_more = false; 68 72 if ( !empty( $author_job ) ) 69 73 { -
molongui-authorship/trunk/views/author-box/parts/html-socialmedia.php
r3231805 r3236250 11 11 $networks = Social::get( 'enabled' ); 12 12 $_networks = array(); 13 if ( $profile['show_icon_web'] ) $networks['web'] = array ( 'name' => 'Website', 'url' => 'https://www.example.com/', 'color' => '#333', 'premium' => false );14 if ( $profile['show_icon_mail'] ) $networks['mail'] = array ( 'name' => 'E-mail', 'url' => 'your_name@example.com', 'color' => '#333', 'premium' => false );15 if ( $profile['show_icon_phone'] ) $networks['phone'] = array ( 'name' => 'Phone', 'url' => '123456789', 'color' => '#333', 'premium' => false );13 if ( $profile['show_icon_web'] ) $networks['web'] = array( 'name' => 'Website', 'url' => 'https://www.example.com/', 'color' => '#333', 'premium' => false ); 14 if ( $profile['show_icon_mail'] ) $networks['mail'] = array( 'name' => 'E-mail', 'url' => 'your_name@example.com', 'color' => '#333', 'premium' => false ); 15 if ( $profile['show_icon_phone'] ) $networks['phone'] = array( 'name' => 'Phone', 'url' => '123456789', 'color' => '#333', 'premium' => false ); 16 16 foreach ( $networks as $id => $network ) 17 17 {
Note: See TracChangeset
for help on using the changeset viewer.