Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Cisco115

    (@cisco115)

    here is what i get when i run the script.

    <b>Parse error</b>: syntax error, unexpected ‘<‘ in <b>[…][…]</b> on line <b>14</b>

    any idea how i can make this work so my site loads?
    Thanks

    Thread Starter Cisco115

    (@cisco115)

    i just updated to php 5.4.24 but the problem was before that, it looks like what you wrote is different than what is in the php file.

    I’m having a similar problem can you help me out with my code something is causing the white screen of death, but i’m not proficient in php to figure it out.
    thanks

    <p class="w400 text-center mdem12 smem11 xsem10 margin_top6 lh120"><?php echo $CTAcontactnotxt ?></p>
    						</div>
    					</div>
    				<?php }
    			}
    			//Get Values of social links
    			//echo "</div>";
    		}
    
    	}
    	//Add function
    	function gcta_load_widget() {
    		register_widget( 'gcta_widget' );
    	}
    	add_action( 'widgets_init', 'gcta_load_widget' );
    }
    #-------------------------------------------------
    #				CTA Widgets END
    #------------------------------------------------- 	
    
    add_action( 'admin_footer', function () {
    	?>
    	<script>
    		$(document).ready(function() {
    			function runSelect() {
    				$("#widgets-right #CTAContactId").click(function(){
    					$("#widgets-right #DivButton").hide();
    					$("#widgets-right #DivContactNo").show();
    					$("#widgets-right #DivImage").hide();
    				});
    				$("#widgets-right #CTAButtonId").click(function(){
    					$("#widgets-right #DivButton").show();
    					$("#widgets-right #DivContactNo").hide();
    					$("#widgets-right #DivImage").hide();
    				});
    				$("#widgets-right #CTAImageId").click(function(){
    					$("#widgets-right #DivImage").show();
    					$("#widgets-right #DivButton").hide();
    					$("#widgets-right #DivContactNo").hide();
    
    				});
    			}
    			window.counter = 1;
    			runSelect();
    			$( document ).ajaxStop( function() {
    				runSelect();
    			} );
            });
    	</script>
    <?php
    });
    
    /*------------------------
     * Proper way to enqueue s

    I’m not good at php can you tell me what’s wrong with this code

    [redacted by moderator]

Viewing 4 replies - 1 through 4 (of 4 total)