Plugin Directory

Changeset 930382


Ignore:
Timestamp:
06/11/2014 01:34:14 PM (12 years ago)
Author:
LiknoSoftware
Message:

Supports the "Genesis Framework" (the menu is now linked to the posts/pages automatically, without any custom hook required).

Location:
allwebmenus-wordpress-menu-plugin/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • allwebmenus-wordpress-menu-plugin/trunk/allwebmenus-wordpress-menu.php

    r902694 r930382  
    44Plugin URI: http://www.likno.com/addins/wordpress-menu.html
    55Description: WordPress plugin for the AllWebMenus PRO Javascript Menu Maker - Create stylish drop-down menus or sliding menus for your blogs!
    6 Version: 1.1.20
     6Version: 1.1.21
    77Author: Likno Software
    88Author URI: http://www.likno.com/
     
    6868    $this->awm_table_name = $awm_table_name = $this->wpdb->prefix . "awm";
    6969    $this->dataArray = $dataArray = array();
    70     $this->AWM_ver = $AWM_ver = '1.1.20';
     70    $this->AWM_ver = $AWM_ver = '1.1.21';
    7171   
    7272    $this->awm_total_tabs = $awm_total_tabs = get_option("AWM_total_menus",(int) 0);
     
    9898    if (!empty($this->databaseMessage))
    9999        $this->databaseMessage = "<div class=\"updated fade\" style=\"margin-top: 20px;\"><strong>".$this->databaseMessage."</strong></div>";
    100     add_genre_column();
    101     add_revision_column();
     100    awm_add_genre_column();
     101    awm_add_revision_column();
    102102   
    103103    $this->awm_total_tabs = $awm_total_tabs;
     
    284284    <table id="uploader">
    285285
    286         <tr><td width="250"><strong>Browse for the "<span id='correct_filename'>awm<?php echo $myrows[get_option('AWM_selected_tab')]->name;?>.zip</span></i>" file:</strong></td>
     286        <tr><td width="250"><strong>Browse for the "<span id='correct_filename'>awm<?php echo $myrows[get_option('AWM_selected_tab')]->name;?>.zip</span>" file:</strong></td>
    287287        <td>
    288288        <form method="post" enctype="multipart/form-data" id="theform1a" name="theform1a" action="<?php echo plugins_url('actions.php',__FILE__); ?>" >
  • allwebmenus-wordpress-menu-plugin/trunk/include.php

    r902699 r930382  
    1919    }
    2020    if (substr_count($file,'AWM_generate_linking_code')==0) {
     21        // genesis_markup case
     22        if (substr_count($file,'genesis_markup')!=0) {
     23            $file = str_replace("do_action( 'genesis_before' );", "if (function_exists('AWM_generate_linking_code'))AWM_generate_linking_code();\ndo_action( 'genesis_before' );", $file);
     24        }
     25        // generic case
     26        else
     27        {
    2128        preg_match ( "/<body([^\?>])*(<\?([^>])*\?>([^>\?])*)*>/", $file, $matches );
    2229        if (count($matches)>0) {
     
    2431            if (count($pieces) == 2) {
    2532                $file =$pieces[0].$matches[0]."\n<?php if (function_exists('AWM_generate_linking_code'))AWM_generate_linking_code(); ?>".$pieces[1];
     33            }
     34        } else {
     35            if ($actualPerms < $wantedPerms) @chmod ( $file_path , $actualPerms );
     36            return false;
     37        }
     38    }
    2639                $fp = fopen($file_path, 'w');
    2740                if (!$fp) {
     
    3447               return true;
    3548            }
    36         } else {
    37             if ($actualPerms < $wantedPerms) @chmod ( $file_path , $actualPerms );
    38             return false;
    39         }
    40     }
    4149    if ($actualPerms < $wantedPerms) @chmod ( $file_path , $actualPerms );
    4250    return true;
     
    236244}
    237245
    238 function add_genre_column() {
     246function awm_add_genre_column() {
    239247    global $awm_total_tabs, $awm_table_name, $wpdb;
    240248    if($wpdb->get_var("show columns from $awm_table_name LIKE 'menu_genre'")!= 'menu_genre'){
     
    245253}
    246254
    247 function add_revision_column() {
     255function awm_add_revision_column() {
    248256    global $awm_total_tabs, $awm_table_name, $wpdb;
    249257    if($wpdb->get_var("show columns from $awm_table_name LIKE 'menu_revisions'")!= 'menu_revisions'){
  • allwebmenus-wordpress-menu-plugin/trunk/readme.txt

    r902696 r930382  
    55Plugin URI: http://www.likno.com/addins/wordpress-menu.html
    66Tags: web menu, allwebmenus, drop down menu, javascript menu, dhtml menu, menu builder, navigation menu, css menu, ajax menu, responsive menu
    7 Stable Tag: 1.1.20
     7Stable Tag: 1.1.21
    88Requires at least: 2.3
    99Tested up to: 3.9
    1010
    1111
    12 Required commercial (paid) software: AllWebMenus PRO (v5.3.926)
     12Requires commercial (paid) software: AllWebMenus PRO (v5.3.926)
    1313
    1414
     
    6868
    6969== Changelog ==
     70= 1.1.21 (requires AllWebMenus Build #926 or above) =
     71* Supports the "Genesis Framework" (the menu is now linked to the posts/pages automatically, without any custom hook required).
    7072= 1.1.20 (requires AllWebMenus Build #926 or above) =
    7173* Improves the sessions usage on servers where certain permissions are not granted.
  • allwebmenus-wordpress-menu-plugin/trunk/script.js

    r902695 r930382  
    4949    } else {
    5050        if (tmp=='') alert ("You have not selected the ZIP file yet. Please browse for it first.");
    51         else alert("Wrong filename! The filename should be '"+document.getElementById('correct_filename').innerHTML+"' and it now is '"+tmp+"'.");
     51        else alert("Wrong filename! The filename should be '"+document.getElementById('correct_filename').innerHTML+"' while now it is '"+tmp+"'.");
    5252    }
    5353}
Note: See TracChangeset for help on using the changeset viewer.