Plugin Directory

Changeset 3489975


Ignore:
Timestamp:
03/24/2026 12:34:31 PM (8 days ago)
Author:
enkic
Message:

v2.5.8

Location:
ai-builder
Files:
9 edited
54 copied

Legend:

Unmodified
Added
Removed
  • ai-builder/tags/2.5.8/admin/pages/account.php

    r3356740 r3489975  
    120120            <h2>Account Dashboard</h2>
    121121            <p>Welcome back! Here's your account overview</p>
     122            <p class="ai-account-email" id="account-email">Loading...</p>
    122123        </div>
    123124
  • ai-builder/tags/2.5.8/admin/pages/credits.php

    r3479241 r3489975  
    7171            <div class="ai-plan-card-wrapper" data-plan="essential">
    7272                <div class="ai-plan-card ai-plan-essential">
    73                     <div class="ai-plan-badge">Essential</div>
    7473                    <div class="ai-plan-header">
    7574                        <div class="ai-plan-title">
    7675                            <h3>Essential</h3>
     76                            <p class="ai-plan-persona">Best for discovering AI Builder and creating your first pages.</p>
    7777                        </div>
    7878                    </div>
     
    101101                        </div>
    102102
    103                         <div class="ai-feature-item">
    104                             <div class="ai-feature-icon">
    105                                 <svg width="18" height="18" viewBox="0 0 24 24" fill="none"
    106                                     xmlns="http://www.w3.org/2000/svg">
    107                                     <path d="M20 6L9 17L4 12" stroke="currentColor" stroke-width="2.5"
    108                                         stroke-linecap="round" stroke-linejoin="round" />
    109                                 </svg>
    110                             </div>
    111                             <!-- <span class="ai-feature-text">Site Copilot (AI assistant)</span> -->
    112                         </div>
    113103
    114104                        <div class="ai-feature-item">
     
    150140                        <div class="ai-plan-title">
    151141                            <h3>Premium</h3>
     142                            <p class="ai-plan-persona">Best for creators who need more credits and advanced features to build faster.</p>
    152143                        </div>
    153144                    </div>
     
    176167                        </div>
    177168
    178                         <div class="ai-feature-item">
    179                             <div class="ai-feature-icon">
    180                                 <svg width="18" height="18" viewBox="0 0 24 24" fill="none"
    181                                     xmlns="http://www.w3.org/2000/svg">
    182                                     <path d="M20 6L9 17L4 12" stroke="currentColor" stroke-width="2.5"
    183                                         stroke-linecap="round" stroke-linejoin="round" />
    184                                 </svg>
    185                             </div>
    186                             <!-- <span class="ai-feature-text">Site Copilot (AI assistant)</span> -->
    187                         </div>
    188169
    189170                        <div class="ai-feature-item">
     
    232213            <div class="ai-plan-card-wrapper" data-plan="creator">
    233214                <div class="ai-plan-card ai-plan-creator">
    234                     <div class="ai-plan-badge">Creator</div>
    235215                    <div class="ai-plan-header">
    236216                        <div class="ai-plan-title">
    237217                            <h3>Creator</h3>
     218                            <p class="ai-plan-persona">Best for agencies and teams scaling production across many projects.</p>
    238219                        </div>
    239220                    </div>
     
    262243                        </div>
    263244
    264                         <div class="ai-feature-item">
    265                             <div class="ai-feature-icon">
    266                                 <svg width="18" height="18" viewBox="0 0 24 24" fill="none"
    267                                     xmlns="http://www.w3.org/2000/svg">
    268                                     <path d="M20 6L9 17L4 12" stroke="currentColor" stroke-width="2.5"
    269                                         stroke-linecap="round" stroke-linejoin="round" />
    270                                 </svg>
    271                             </div>
    272                             <!-- <span class="ai-feature-text">Site Copilot (AI assistant)</span> -->
    273                         </div>
    274245
    275246                        <div class="ai-feature-item">
     
    563534        text-transform: uppercase;
    564535        letter-spacing: 0.6px;
     536        line-height: 1.2;
     537        max-width: calc(100% - 36px);
     538        box-sizing: border-box;
    565539    }
    566540
     
    568542        background: rgba(79, 70, 229, 0.12);
    569543        color: #4338ca;
     544        top: 14px;
     545        right: 14px;
     546        font-size: 10px;
     547        padding: 5px 10px;
     548        letter-spacing: 0.4px;
    570549    }
    571550
     
    602581        margin: 0 0 6px 0;
    603582        color: #0f172a;
     583    }
     584
     585    .ai-plan-persona {
     586        margin: 0;
     587        font-size: 13px;
     588        line-height: 1.5;
     589        color: #64748b;
     590        max-width: 300px;
     591        margin-left: auto;
     592        margin-right: auto;
    604593    }
    605594
  • ai-builder/tags/2.5.8/aibui-builder.php

    r3487371 r3489975  
    44 * Plugin URI:        https://website-ai-builder.com/
    55 * Description: This plugin is used to build your website with AI.
    6  * Version: 2.5.6
     6 * Version: 2.5.8
    77 * Author: enkic
    88 * Author URI:        https://enkicorbin.fr/
     
    1818
    1919// Définir la version du plugin
    20 define('AIBUI_VERSION', '2.5.6');
     20define('AIBUI_VERSION', '2.5.8');
    2121
    2222/**
  • ai-builder/tags/2.5.8/assets/css/account.css

    r3408247 r3489975  
    2525    font-size: 16px;
    2626    margin: 0;
     27}
     28
     29.ai-account-email {
     30    margin-top: 10px !important;
     31    font-size: 13px !important;
     32    color: #4b5563 !important;
     33    font-weight: 500;
     34    word-break: break-word;
    2735}
    2836
  • ai-builder/tags/2.5.8/assets/css/chat-widget.css

    r3460817 r3489975  
    33  bottom: 40px;
    44  left: 20px;
    5   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     5  background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
    66  color: white;
    77  padding: 12px 20px;
     
    1111  font-weight: 600;
    1212  font-size: 14px;
    13   box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
     13  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.35);
    1414  transition: all 0.3s ease;
    1515  border: none;
     
    2121#chat-toggle:hover {
    2222  transform: translateY(-2px);
    23   box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
     23  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.5);
    2424}
    2525
     
    2828  position: fixed;
    2929  animation: toggle-pulse 1.5s ease-in-out infinite;
    30   box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4),
    31     0 0 20px rgba(102, 126, 234, 0.6),
    32     0 0 40px rgba(102, 126, 234, 0.4);
     30  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.35),
     31    0 0 20px rgba(14, 165, 233, 0.45),
     32    0 0 40px rgba(29, 78, 216, 0.3);
    3333  transform-origin: left bottom;
    3434}
     
    3939  100% {
    4040    transform: scale(1);
    41     box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4),
    42       0 0 20px rgba(102, 126, 234, 0.6),
    43       0 0 40px rgba(102, 126, 234, 0.4);
     41    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.35),
     42      0 0 20px rgba(14, 165, 233, 0.45),
     43      0 0 40px rgba(29, 78, 216, 0.3);
    4444  }
    4545
    4646  50% {
    4747    transform: scale(1.05);
    48     box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4),
    49       0 0 30px rgba(102, 126, 234, 0.8),
    50       0 0 60px rgba(102, 126, 234, 0.6);
     48    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.35),
     49      0 0 30px rgba(14, 165, 233, 0.65),
     50      0 0 60px rgba(29, 78, 216, 0.45);
    5151  }
    5252}
     
    7171
    7272#chat-header {
    73   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     73  background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
    7474  color: white;
    7575  padding: 20px;
     
    167167
    168168#chat-input textarea:focus {
    169   border-color: #667eea;
     169  border-color: #2563eb;
    170170}
    171171
     
    176176
    177177#chat-input button {
    178   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     178  background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
    179179  color: white;
    180180  border: none;
     
    190190#chat-input button:hover:not(:disabled) {
    191191  transform: translateY(-1px);
    192   box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
     192  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
    193193}
    194194
  • ai-builder/tags/2.5.8/assets/js/account.js

    r3413458 r3489975  
    445445function displayUserInfo(userData) {
    446446  console.log("🔍 User data:", userData);
     447  const accountEmail = document.getElementById("account-email");
     448  if (accountEmail) {
     449    const email =
     450      userData?.email ||
     451      userData?.userEmail ||
     452      userData?.mail ||
     453      "";
     454    accountEmail.textContent = email || "-";
     455  }
     456
    447457  // Afficher le plan
    448458  const planBadge = document.getElementById("plan-badge");
  • ai-builder/tags/2.5.8/assets/js/chat-widget.js

    r3470237 r3489975  
    8686            <p class="warning-text">⚠️ The current page content will be replaced by AI-generated content</p>
    8787          </div>
    88           <div style="display: flex; flex-direction: column; gap: 8px; align-items: flex-end;">
    89             <div style="display: flex; gap: 8px;">
     88          <div id="chat-header-actions">
     89            <div id="chat-header-tools">
    9090              <button id="js-edit-button" title="Edit JS">
    91                 <span style="font-size: 14px;">JS</span>
     91                <span>JS</span>
    9292              </button>
    9393              <button id="css-edit-button" title="Edit CSS">
     
    9595              </button>
    9696            </div>
    97             <button id="headers-footers-button" title="Headers & Footers" style="background: #f0f9ff; border: 1px solid #bae6fd; color: #0369a1; padding: 6px 10px; border-radius: 4px; cursor: pointer; font-size: 11px; font-weight: 500; white-space: nowrap; transition: all 0.2s;">
     97            <button id="headers-footers-button" title="Headers & Footers">
    9898              Header/Footer
    9999            </button>
     
    879879        creditsElem.style.color = "#cccccc";
    880880        creditsElem.style.marginTop = "2px";
    881         creditsElem.style.textAlign = "center";
     881        creditsElem.style.textAlign = "left";
    882882        header.appendChild(creditsElem);
    883883      }
     
    15911591  }
    15921592
    1593   /* Header du chat avec bouton CSS intégré */
     1593  /* Header du chat: layout propre et actions cohérentes */
    15941594  #chat-header {
    15951595    display: flex;
    15961596    justify-content: space-between;
    15971597    align-items: flex-start;
    1598     gap: 10px;
     1598    gap: 16px;
     1599    text-align: left;
    15991600  }
    16001601
    16011602  #chat-header-left {
    16021603    flex: 1;
    1603   }
    1604 
    1605  
     1604    min-width: 0;
     1605  }
    16061606
    16071607  #chat-header-left h3 {
    1608     margin: 0 0 5px 0;
     1608    margin: 0 0 6px 0;
     1609    font-size: 17px;
     1610    line-height: 1.25;
    16091611  }
    16101612
     
    16121614    margin: 0;
    16131615    font-size: 12px;
     1616    line-height: 1.45;
     1617    opacity: 0.92;
     1618  }
     1619
     1620  #chat-header-actions {
     1621    display: flex;
     1622    flex-direction: column;
     1623    align-items: flex-end;
     1624    gap: 8px;
     1625    flex-shrink: 0;
     1626  }
     1627
     1628  #chat-header-tools {
     1629    display: flex;
     1630    align-items: center;
     1631    justify-content: space-between;
     1632    gap: 8px;
     1633    width: 116px;
     1634    box-sizing: border-box;
    16141635  }
    16151636
    16161637  /* Bouton Header/Footer */
    16171638  #headers-footers-button {
     1639    background: rgba(255, 255, 255, 0.95);
     1640    border: 1px solid rgba(191, 219, 254, 0.9);
     1641    color: #1e40af;
     1642    padding: 7px 11px;
     1643    border-radius: 8px;
     1644    cursor: pointer;
     1645    font-size: 11px;
     1646    font-weight: 600;
     1647    letter-spacing: 0.2px;
     1648    white-space: nowrap;
    16181649    transition: all 0.2s ease;
     1650    width: 116px;
     1651    box-sizing: border-box;
     1652    text-align: center;
    16191653  }
    16201654
    16211655  #headers-footers-button:hover {
    1622     background: #e0f2fe !important;
    1623     border-color: #7dd3fc !important;
     1656    background: #ffffff !important;
     1657    border-color: #93c5fd !important;
    16241658    transform: translateY(-1px);
    1625   }
    1626 
    1627   /* Bouton CSS intégré dans le header */
     1659    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.2);
     1660  }
     1661
     1662  /* Boutons outils du header */
    16281663  #css-edit-button {
    1629     width: 32px;
    1630     height: 32px;
    1631     background: #007cba;
     1664    width: 54px;
     1665    height: 34px;
     1666    background: rgba(255, 255, 255, 0.2);
    16321667    color: white;
    1633     border: none;
    1634     border-radius: 4px;
     1668    border: 1px solid rgba(255, 255, 255, 0.35);
     1669    border-radius: 8px;
    16351670    cursor: pointer;
    16361671    display: flex;
     
    16401675    transition: all 0.3s ease;
    16411676    padding: 0;
     1677    box-sizing: border-box;
    16421678  }
    16431679
    16441680  #css-edit-button:hover {
    1645     background: #005a87;
    1646     transform: scale(1.05);
     1681    background: rgba(255, 255, 255, 0.3);
     1682    border-color: rgba(255, 255, 255, 0.6);
     1683    transform: translateY(-1px);
    16471684  }
    16481685
     
    18201857  /* Bouton JS intégré dans le header */
    18211858  #js-edit-button {
    1822     width: 32px;
    1823     height: 32px;
    1824     background: #007cba;
     1859    width: 54px;
     1860    height: 34px;
     1861    background: rgba(255, 255, 255, 0.2);
    18251862    color: white;
    1826     border: none;
    1827     border-radius: 4px;
     1863    border: 1px solid rgba(255, 255, 255, 0.35);
     1864    border-radius: 8px;
    18281865    cursor: pointer;
    18291866    display: flex;
     
    18341871    padding: 0;
    18351872    font-weight: 600;
     1873    box-sizing: border-box;
    18361874  }
    18371875
    18381876  #js-edit-button:hover {
    1839     background: #005a87;
    1840     transform: scale(1.05);
     1877    background: rgba(255, 255, 255, 0.3);
     1878    border-color: rgba(255, 255, 255, 0.6);
     1879    transform: translateY(-1px);
     1880  }
     1881
     1882  #js-edit-button span {
     1883    font-size: 12px;
     1884    font-weight: 700;
     1885    letter-spacing: 0.3px;
     1886  }
     1887
     1888  @media (max-width: 560px) {
     1889    #chat-header {
     1890      flex-direction: column;
     1891      align-items: stretch;
     1892      gap: 12px;
     1893    }
     1894
     1895    #chat-header-actions {
     1896      align-items: stretch;
     1897    }
     1898
     1899    #chat-header-tools {
     1900      justify-content: flex-end;
     1901    }
     1902
     1903    #headers-footers-button {
     1904      text-align: center;
     1905    }
    18411906  }
    18421907
  • ai-builder/tags/2.5.8/includes/class-translation-handler.php

    r3405907 r3489975  
    746746        }
    747747
     748        // Copy custom JS meta if present (so translated pages keep JS behavior)
     749        $js_meta_keys = array(
     750            'ai_builder_page_js_content',
     751            'ai_builder_block_js_content',
     752            'ai_builder_js_content'
     753        );
     754
     755        foreach ($js_meta_keys as $js_key) {
     756            $js_value = get_post_meta($post_id, $js_key, true);
     757            if (!empty($js_value)) {
     758                update_post_meta($new_post_id, $js_key, $js_value);
     759            }
     760        }
     761
    748762        // Save language meta
    749763        update_post_meta($new_post_id, '_ai_lang', $target_lang);
  • ai-builder/tags/2.5.8/readme.txt

    r3487371 r3489975  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 2.5.6
     7Stable tag: 2.5.8
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    5757
    5858= Is the plugin free to try? =
    59 Yes! You get **100 free credits** immediately upon signup to test all features (page generation, text, images). No credit card or OpenAI API key is required.
     59Yes! You get **150 free credits** immediately upon signup to test all features (page generation, text, images). No credit card or OpenAI API key is required.
    6060
    6161= What happens to my content if I cancel my subscription? =
  • ai-builder/trunk/admin/pages/account.php

    r3356740 r3489975  
    120120            <h2>Account Dashboard</h2>
    121121            <p>Welcome back! Here's your account overview</p>
     122            <p class="ai-account-email" id="account-email">Loading...</p>
    122123        </div>
    123124
  • ai-builder/trunk/admin/pages/credits.php

    r3479241 r3489975  
    7171            <div class="ai-plan-card-wrapper" data-plan="essential">
    7272                <div class="ai-plan-card ai-plan-essential">
    73                     <div class="ai-plan-badge">Essential</div>
    7473                    <div class="ai-plan-header">
    7574                        <div class="ai-plan-title">
    7675                            <h3>Essential</h3>
     76                            <p class="ai-plan-persona">Best for discovering AI Builder and creating your first pages.</p>
    7777                        </div>
    7878                    </div>
     
    101101                        </div>
    102102
    103                         <div class="ai-feature-item">
    104                             <div class="ai-feature-icon">
    105                                 <svg width="18" height="18" viewBox="0 0 24 24" fill="none"
    106                                     xmlns="http://www.w3.org/2000/svg">
    107                                     <path d="M20 6L9 17L4 12" stroke="currentColor" stroke-width="2.5"
    108                                         stroke-linecap="round" stroke-linejoin="round" />
    109                                 </svg>
    110                             </div>
    111                             <!-- <span class="ai-feature-text">Site Copilot (AI assistant)</span> -->
    112                         </div>
    113103
    114104                        <div class="ai-feature-item">
     
    150140                        <div class="ai-plan-title">
    151141                            <h3>Premium</h3>
     142                            <p class="ai-plan-persona">Best for creators who need more credits and advanced features to build faster.</p>
    152143                        </div>
    153144                    </div>
     
    176167                        </div>
    177168
    178                         <div class="ai-feature-item">
    179                             <div class="ai-feature-icon">
    180                                 <svg width="18" height="18" viewBox="0 0 24 24" fill="none"
    181                                     xmlns="http://www.w3.org/2000/svg">
    182                                     <path d="M20 6L9 17L4 12" stroke="currentColor" stroke-width="2.5"
    183                                         stroke-linecap="round" stroke-linejoin="round" />
    184                                 </svg>
    185                             </div>
    186                             <!-- <span class="ai-feature-text">Site Copilot (AI assistant)</span> -->
    187                         </div>
    188169
    189170                        <div class="ai-feature-item">
     
    232213            <div class="ai-plan-card-wrapper" data-plan="creator">
    233214                <div class="ai-plan-card ai-plan-creator">
    234                     <div class="ai-plan-badge">Creator</div>
    235215                    <div class="ai-plan-header">
    236216                        <div class="ai-plan-title">
    237217                            <h3>Creator</h3>
     218                            <p class="ai-plan-persona">Best for agencies and teams scaling production across many projects.</p>
    238219                        </div>
    239220                    </div>
     
    262243                        </div>
    263244
    264                         <div class="ai-feature-item">
    265                             <div class="ai-feature-icon">
    266                                 <svg width="18" height="18" viewBox="0 0 24 24" fill="none"
    267                                     xmlns="http://www.w3.org/2000/svg">
    268                                     <path d="M20 6L9 17L4 12" stroke="currentColor" stroke-width="2.5"
    269                                         stroke-linecap="round" stroke-linejoin="round" />
    270                                 </svg>
    271                             </div>
    272                             <!-- <span class="ai-feature-text">Site Copilot (AI assistant)</span> -->
    273                         </div>
    274245
    275246                        <div class="ai-feature-item">
     
    563534        text-transform: uppercase;
    564535        letter-spacing: 0.6px;
     536        line-height: 1.2;
     537        max-width: calc(100% - 36px);
     538        box-sizing: border-box;
    565539    }
    566540
     
    568542        background: rgba(79, 70, 229, 0.12);
    569543        color: #4338ca;
     544        top: 14px;
     545        right: 14px;
     546        font-size: 10px;
     547        padding: 5px 10px;
     548        letter-spacing: 0.4px;
    570549    }
    571550
     
    602581        margin: 0 0 6px 0;
    603582        color: #0f172a;
     583    }
     584
     585    .ai-plan-persona {
     586        margin: 0;
     587        font-size: 13px;
     588        line-height: 1.5;
     589        color: #64748b;
     590        max-width: 300px;
     591        margin-left: auto;
     592        margin-right: auto;
    604593    }
    605594
  • ai-builder/trunk/aibui-builder.php

    r3488830 r3489975  
    44 * Plugin URI:        https://website-ai-builder.com/
    55 * Description: This plugin is used to build your website with AI.
    6  * Version: 2.5.7
     6 * Version: 2.5.8
    77 * Author: enkic
    88 * Author URI:        https://enkicorbin.fr/
     
    1818
    1919// Définir la version du plugin
    20 define('AIBUI_VERSION', '2.5.6');
     20define('AIBUI_VERSION', '2.5.8');
    2121
    2222/**
  • ai-builder/trunk/assets/css/account.css

    r3408247 r3489975  
    2525    font-size: 16px;
    2626    margin: 0;
     27}
     28
     29.ai-account-email {
     30    margin-top: 10px !important;
     31    font-size: 13px !important;
     32    color: #4b5563 !important;
     33    font-weight: 500;
     34    word-break: break-word;
    2735}
    2836
  • ai-builder/trunk/assets/css/chat-widget.css

    r3460817 r3489975  
    33  bottom: 40px;
    44  left: 20px;
    5   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     5  background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
    66  color: white;
    77  padding: 12px 20px;
     
    1111  font-weight: 600;
    1212  font-size: 14px;
    13   box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
     13  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.35);
    1414  transition: all 0.3s ease;
    1515  border: none;
     
    2121#chat-toggle:hover {
    2222  transform: translateY(-2px);
    23   box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
     23  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.5);
    2424}
    2525
     
    2828  position: fixed;
    2929  animation: toggle-pulse 1.5s ease-in-out infinite;
    30   box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4),
    31     0 0 20px rgba(102, 126, 234, 0.6),
    32     0 0 40px rgba(102, 126, 234, 0.4);
     30  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.35),
     31    0 0 20px rgba(14, 165, 233, 0.45),
     32    0 0 40px rgba(29, 78, 216, 0.3);
    3333  transform-origin: left bottom;
    3434}
     
    3939  100% {
    4040    transform: scale(1);
    41     box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4),
    42       0 0 20px rgba(102, 126, 234, 0.6),
    43       0 0 40px rgba(102, 126, 234, 0.4);
     41    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.35),
     42      0 0 20px rgba(14, 165, 233, 0.45),
     43      0 0 40px rgba(29, 78, 216, 0.3);
    4444  }
    4545
    4646  50% {
    4747    transform: scale(1.05);
    48     box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4),
    49       0 0 30px rgba(102, 126, 234, 0.8),
    50       0 0 60px rgba(102, 126, 234, 0.6);
     48    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.35),
     49      0 0 30px rgba(14, 165, 233, 0.65),
     50      0 0 60px rgba(29, 78, 216, 0.45);
    5151  }
    5252}
     
    7171
    7272#chat-header {
    73   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     73  background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
    7474  color: white;
    7575  padding: 20px;
     
    167167
    168168#chat-input textarea:focus {
    169   border-color: #667eea;
     169  border-color: #2563eb;
    170170}
    171171
     
    176176
    177177#chat-input button {
    178   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     178  background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
    179179  color: white;
    180180  border: none;
     
    190190#chat-input button:hover:not(:disabled) {
    191191  transform: translateY(-1px);
    192   box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
     192  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
    193193}
    194194
  • ai-builder/trunk/assets/js/account.js

    r3413458 r3489975  
    445445function displayUserInfo(userData) {
    446446  console.log("🔍 User data:", userData);
     447  const accountEmail = document.getElementById("account-email");
     448  if (accountEmail) {
     449    const email =
     450      userData?.email ||
     451      userData?.userEmail ||
     452      userData?.mail ||
     453      "";
     454    accountEmail.textContent = email || "-";
     455  }
     456
    447457  // Afficher le plan
    448458  const planBadge = document.getElementById("plan-badge");
  • ai-builder/trunk/assets/js/chat-widget.js

    r3470237 r3489975  
    8686            <p class="warning-text">⚠️ The current page content will be replaced by AI-generated content</p>
    8787          </div>
    88           <div style="display: flex; flex-direction: column; gap: 8px; align-items: flex-end;">
    89             <div style="display: flex; gap: 8px;">
     88          <div id="chat-header-actions">
     89            <div id="chat-header-tools">
    9090              <button id="js-edit-button" title="Edit JS">
    91                 <span style="font-size: 14px;">JS</span>
     91                <span>JS</span>
    9292              </button>
    9393              <button id="css-edit-button" title="Edit CSS">
     
    9595              </button>
    9696            </div>
    97             <button id="headers-footers-button" title="Headers & Footers" style="background: #f0f9ff; border: 1px solid #bae6fd; color: #0369a1; padding: 6px 10px; border-radius: 4px; cursor: pointer; font-size: 11px; font-weight: 500; white-space: nowrap; transition: all 0.2s;">
     97            <button id="headers-footers-button" title="Headers & Footers">
    9898              Header/Footer
    9999            </button>
     
    879879        creditsElem.style.color = "#cccccc";
    880880        creditsElem.style.marginTop = "2px";
    881         creditsElem.style.textAlign = "center";
     881        creditsElem.style.textAlign = "left";
    882882        header.appendChild(creditsElem);
    883883      }
     
    15911591  }
    15921592
    1593   /* Header du chat avec bouton CSS intégré */
     1593  /* Header du chat: layout propre et actions cohérentes */
    15941594  #chat-header {
    15951595    display: flex;
    15961596    justify-content: space-between;
    15971597    align-items: flex-start;
    1598     gap: 10px;
     1598    gap: 16px;
     1599    text-align: left;
    15991600  }
    16001601
    16011602  #chat-header-left {
    16021603    flex: 1;
    1603   }
    1604 
    1605  
     1604    min-width: 0;
     1605  }
    16061606
    16071607  #chat-header-left h3 {
    1608     margin: 0 0 5px 0;
     1608    margin: 0 0 6px 0;
     1609    font-size: 17px;
     1610    line-height: 1.25;
    16091611  }
    16101612
     
    16121614    margin: 0;
    16131615    font-size: 12px;
     1616    line-height: 1.45;
     1617    opacity: 0.92;
     1618  }
     1619
     1620  #chat-header-actions {
     1621    display: flex;
     1622    flex-direction: column;
     1623    align-items: flex-end;
     1624    gap: 8px;
     1625    flex-shrink: 0;
     1626  }
     1627
     1628  #chat-header-tools {
     1629    display: flex;
     1630    align-items: center;
     1631    justify-content: space-between;
     1632    gap: 8px;
     1633    width: 116px;
     1634    box-sizing: border-box;
    16141635  }
    16151636
    16161637  /* Bouton Header/Footer */
    16171638  #headers-footers-button {
     1639    background: rgba(255, 255, 255, 0.95);
     1640    border: 1px solid rgba(191, 219, 254, 0.9);
     1641    color: #1e40af;
     1642    padding: 7px 11px;
     1643    border-radius: 8px;
     1644    cursor: pointer;
     1645    font-size: 11px;
     1646    font-weight: 600;
     1647    letter-spacing: 0.2px;
     1648    white-space: nowrap;
    16181649    transition: all 0.2s ease;
     1650    width: 116px;
     1651    box-sizing: border-box;
     1652    text-align: center;
    16191653  }
    16201654
    16211655  #headers-footers-button:hover {
    1622     background: #e0f2fe !important;
    1623     border-color: #7dd3fc !important;
     1656    background: #ffffff !important;
     1657    border-color: #93c5fd !important;
    16241658    transform: translateY(-1px);
    1625   }
    1626 
    1627   /* Bouton CSS intégré dans le header */
     1659    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.2);
     1660  }
     1661
     1662  /* Boutons outils du header */
    16281663  #css-edit-button {
    1629     width: 32px;
    1630     height: 32px;
    1631     background: #007cba;
     1664    width: 54px;
     1665    height: 34px;
     1666    background: rgba(255, 255, 255, 0.2);
    16321667    color: white;
    1633     border: none;
    1634     border-radius: 4px;
     1668    border: 1px solid rgba(255, 255, 255, 0.35);
     1669    border-radius: 8px;
    16351670    cursor: pointer;
    16361671    display: flex;
     
    16401675    transition: all 0.3s ease;
    16411676    padding: 0;
     1677    box-sizing: border-box;
    16421678  }
    16431679
    16441680  #css-edit-button:hover {
    1645     background: #005a87;
    1646     transform: scale(1.05);
     1681    background: rgba(255, 255, 255, 0.3);
     1682    border-color: rgba(255, 255, 255, 0.6);
     1683    transform: translateY(-1px);
    16471684  }
    16481685
     
    18201857  /* Bouton JS intégré dans le header */
    18211858  #js-edit-button {
    1822     width: 32px;
    1823     height: 32px;
    1824     background: #007cba;
     1859    width: 54px;
     1860    height: 34px;
     1861    background: rgba(255, 255, 255, 0.2);
    18251862    color: white;
    1826     border: none;
    1827     border-radius: 4px;
     1863    border: 1px solid rgba(255, 255, 255, 0.35);
     1864    border-radius: 8px;
    18281865    cursor: pointer;
    18291866    display: flex;
     
    18341871    padding: 0;
    18351872    font-weight: 600;
     1873    box-sizing: border-box;
    18361874  }
    18371875
    18381876  #js-edit-button:hover {
    1839     background: #005a87;
    1840     transform: scale(1.05);
     1877    background: rgba(255, 255, 255, 0.3);
     1878    border-color: rgba(255, 255, 255, 0.6);
     1879    transform: translateY(-1px);
     1880  }
     1881
     1882  #js-edit-button span {
     1883    font-size: 12px;
     1884    font-weight: 700;
     1885    letter-spacing: 0.3px;
     1886  }
     1887
     1888  @media (max-width: 560px) {
     1889    #chat-header {
     1890      flex-direction: column;
     1891      align-items: stretch;
     1892      gap: 12px;
     1893    }
     1894
     1895    #chat-header-actions {
     1896      align-items: stretch;
     1897    }
     1898
     1899    #chat-header-tools {
     1900      justify-content: flex-end;
     1901    }
     1902
     1903    #headers-footers-button {
     1904      text-align: center;
     1905    }
    18411906  }
    18421907
  • ai-builder/trunk/readme.txt

    r3488830 r3489975  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 2.5.7
     7Stable tag: 2.5.8
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    5757
    5858= Is the plugin free to try? =
    59 Yes! You get **100 free credits** immediately upon signup to test all features (page generation, text, images). No credit card or OpenAI API key is required.
     59Yes! You get **150 free credits** immediately upon signup to test all features (page generation, text, images). No credit card or OpenAI API key is required.
    6060
    6161= What happens to my content if I cancel my subscription? =
Note: See TracChangeset for help on using the changeset viewer.